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

Update ArcBallCamera.h #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update ArcBallCamera.h #88

wants to merge 2 commits into from

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Jul 5, 2020

Change the frustum clip distance. The current 'far' clip is too small, thus some large objects can be cut off.

Change the frustum clip distance. The current 'far' clip is too small, thus some large objects can be cut off.
@mosra mosra added this to the 2020.0b milestone Jul 5, 2020
@mosra
Copy link
Owner

mosra commented Jul 5, 2020

Hmm, this could cause depth precision issues on certain browsers / platforms which use a 16-bit depth buffer by default. I'm not sure what's the situation right now but not so long ago Firefox suffered quite a lot from this (see #34, https://bugzilla.mozilla.org/show_bug.cgi?id=1202387).

Maybe a better option would be to make this configurable from outside? So you extend it where needed and leave in safe bounds where the default is enough.

Add near/far parameters for the frustum.
@ttnghia
Copy link
Contributor Author

ttnghia commented Jul 6, 2020

Sure. I changed that. Now the near/far parameters are optional.
This is the prerequisite for my next example.

@ttnghia ttnghia mentioned this pull request Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants