Skip to content

fixed r3f example - #173

Open
alouis-jpg wants to merge 1 commit into
nytimes:devfrom
Iconem:dev
Open

fixed r3f example#173
alouis-jpg wants to merge 1 commit into
nytimes:devfrom
Iconem:dev

Conversation

@alouis-jpg

@alouis-jpg alouis-jpg commented Jul 3, 2024

Copy link
Copy Markdown

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

  • runtime.update() signature changed but old one was still used, removed viewport height param from function call in useFrame()
  • resetTransform props of loader manager set to true so the tileset position is in the middle of the scene in front of the camera (default [0,0,0])

@alouis-jpg
alouis-jpg requested a review from Avnerus as a code owner July 3, 2024 16:15
@joaomelorodrigues

Copy link
Copy Markdown

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/[email protected]/examples/jsm/libs/draco'}
            basisTranscoderPath={'https://cdn.jsdelivr.net/npm/[email protected]/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....."

@subashcs

Copy link
Copy Markdown

This works ! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants