takahirox / three-gltf-extensions

Unofficial Three.js glTF loader/exporter plugins
MIT License
123 stars 20 forks source link

MSFT_LOD LOD scales and render is inconsistent #65

Open Wellan-Arthur opened 2 years ago

Wellan-Arthur commented 2 years ago

Hello, I noticed a strange behavior with a 3D model that contain a lot of LOD in Aframe (threejs 0.137.0). The model is made internally using gltf-transform and a custom extension and is compliant to MSFT_LOD spec afaik.

The issue is that levels (color coded) are not presented with the same size, and are not hidden correctly. See for example that the threejs representation show both red and green models at the same distance, while both represent a different level.

I suspect that this is correlated with the nesting of the 3D model

Blender representation of the model : image

Threejs representation of the model : image

Blender scene representation of the model : image The red arrow point to the node hosting MSFT_screencoverage and the extension.

GLTF model arbre_output.zip

How can I fix this ?