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
451 stars 62 forks source link

The problem of plug-in loading on mapbox #74

Open qqq888481 opened 1 year ago

qqq888481 commented 1 year ago

Use plug-ins to load tilt photography on the mapbox, but tilt photography appears dark no matter how you try it. I tried to add directional light global light point light source and mapbox's own light with three

qqq888481 commented 1 year ago

Use plug-ins to load 3d tiles on the mapbox, but tilt photography appears dark no matter how you try it. I tried to add directional light global light point light source and mapbox's own light with three

qqq888481 commented 1 year ago

Use this plug-in to load 3dTiles without being affected by light

Avnerus commented 1 year ago

Hi @qqq888481, This might be a colorspace issue. Try to either add or remove this:

    import {  sRGBEncoding } from 'three'; 
...
    renderer.outputEncoding = sRGBEncoding;
qqq888481 commented 1 year ago

it's useful! thank you very much!