Currently, my project is focused on incorporating instancing in Aframe using the ThreeJs InstancedMesh. I'm following the example provided in this link: https://github.com/mrdoob/three.js/blob/master/examples/webgl_instancing_dynamic.html
Highlighted segment of code:
init: function() {
const {count, radius, scale, colors, positions} = this.data;
this.start = true;
this.dummy = new THREE.Object3D();
// Rest of the initialization code...
},
setMatrix: function (start) {
if conditions for setting matrix
},
tick: function() {
calling setMatrix()
},
I am not encountering any errors or informative messages at the moment. However, even though the number of triangles being drawn significantly increases when I integrate this component, none of the instanced objects are visibly rendering. Unfortunately, I am unable to provide a specific example. Does anyone have insights into where I might be going wrong? Thank you in advance!
Note: Although the objects appear to be rendered due to the spike in triangle count, they are not visible anywhere and do not show up in the aframe inspector as well.