pailhead / three-instanced-mesh

wrapper around THREE.InstancedBufferGeometry
MIT License
109 stars 14 forks source link

working with transparent objects. #28

Open trusktr opened 4 years ago

trusktr commented 4 years ago

I have instanced objects spread around, along with individual non-instanced transparent boxes, and you can see that at certain angles the instanced objects are not visible or they are:

Screen Shot 2019-11-18 at 6 33 21 PM Screen Shot 2019-11-18 at 6 33 31 PM

Any tips or thoughts on how to handle this?

trusktr commented 4 years ago

Basically, it's the issue described in this forum comment: https://discourse.threejs.org/t/material-transparency-problem/3822/5

I suppose Three.js' new InstancedMesh probaly has the same issue? Because the "origin" of the InstancedMesh is in one place, while the instanced objects might be all over the place.