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
454 stars 64 forks source link

fixed r3f example #173

Open alouis-jpg opened 3 months ago

alouis-jpg commented 3 months ago

Hello! Thanks for this great 3d tiles viewer. I could make it work in my r3f app after two small changes:

cyango commented 3 days ago

I bumped into this too. But i was trying to load the google api 3D tiles the same way. Is it possible just inserting something like this?

  <Loader3DTilesR3FAsset
            dracoDecoderPath={'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/libs/draco'}
            basisTranscoderPath={'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/libs/basis'}
            rotation={new Euler(-Math.PI / 2, 0, 0)}
            url="https://tile.googleapis.com/v1/3dtiles/root.json"
            maximumScreenSpaceError={48}
            googleApiKey="AIzaS....."