Skip to main content

xrhandloading

Description

This event is emitted by xrhand when when loading begins for additional hand AR resources.

xrhandloading.detail : {maxDetections, pointsPerDetection, rightIndices, leftIndices}

PropertyDescription
maxDetectionsThe maximum number of hands that can be simultaneously processed.
pointsPerDetectionNumber of vertices that will be extracted per hand.
rightIndices: [{a, b, c}]Indexes into the vertices array that form the triangles of the hand mesh.
leftIndices: [{a, b, c}]Indexes into the vertices array that form the triangles of the hand mesh.

Example

const initMesh = ({detail}) => {
const {pointsPerDetection} = detail
this.el.object3D.add(generateMeshGeometry({pointsPerDetection}))
}
this.el.sceneEl.addEventListener('xrhandloading', initMesh)