Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed r3f example #173

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

fixed r3f example #173

wants to merge 1 commit into from

Conversation

alouis-jpg
Copy link

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

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
@cyango
Copy link

cyango commented Sep 29, 2024

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....."

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.

2 participants