-
Notifications
You must be signed in to change notification settings - Fork 3
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
maxDistance is never set and defaults to 10 #20
Comments
True, I see its purpose. A few points that come to mind:
I see 3 options:
orbiter.set({
maxDistance: vec3.add(aabb.size(scene.bounds), aabb.center(scene.bounds))
})
minDistance: Number.EPSILON,
maxDistance: Infinity, Thoughts? |
It's convenience to protect you from inertia scrolling on Mac but pain on bigger scenes like Expo.
In most cases you set your camera outside of the scene if you use orbiter to rotate around it. 10x was good guesstimate to prevent it shrinking to 1x1 px if you zoom out too far.
That's ok. Because if you know what you want you just provide |
I think we should probably disable it by default, remove to automagic guessing on position set and let user set it manually if really needed.
Cases where you zoom out too far should be handled on the user side by e.g. having reset camera button. |
It got lost here and causes large gilt scenes to be zoomed in into the mesh.
6e2881c#diff-78aa8fa08464681459d97cd46fe608ab83a8944ec030fa9796ad452ddaa8d1cfL80
The text was updated successfully, but these errors were encountered: