networked-aframe / naf-valid-avatars

Example of using realistic animated avatars in networked-aframe.
https://naf-valid-avatars.glitch.me
MIT License
10 stars 0 forks source link

Issue with frustum culling of haircut and eyes #8

Closed vincentfretin closed 8 months ago

vincentfretin commented 8 months ago

When too close of another avatar, the eyes and haircut disappear.

image Just moving a bit to the left, the eyes disappears image Moving a bit more to the left, haircut disappears image

From behind it's even from far away. image

vincentfretin commented 8 months ago

The issue seems related to the man Idle animation. If the man has no animation, there is no such issue. Probably the bounding box calculated with the Idle animation is too large?

vincentfretin commented 8 months ago

I fixed the issue simply with:

     this.avatarEl.object3D.traverse((obj) => {
        if (obj.isMesh) {
          obj.frustumCulled = false;
        }
      });