nytimes / three-loader-3dtiles

This is a Three.js loader module for handling OGC 3D Tiles, created by Cesium. It currently supports the two main formats, Batched 3D Model (b3dm) - based on glTF Point cloud.
Other
449 stars 62 forks source link

Resulting 3D Object doesn't react to lighting #89

Open cyrilpreiss opened 1 year ago

cyrilpreiss commented 1 year ago

Hi, no matter what is the lighting (direction, color) the 3Dtiles object show exactly the same. Any idea how to fix this ? (using R3F) Here for example with a red up directionallight:

WhatsApp Image 2023-02-02 at 12 13 45

wanyanyan commented 1 year ago

same problem here, is there any ideas?

DerKorb commented 4 months ago

This is due to the face that the loader is using custom shaders that are missing all the magic threejs does in their shaders. You can add material: new PointsMaterial to the options then it will use a native threejs material that includes all stuff three does (clipping, lighting etc.)