-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3d] Fixes camera movement when it is looking from further away
At around ~70km distance of camera from terrain the updates of camera view centers didn't work correctly and the whole view got locked, unable to pan camera around until zoomed closer. The reason is that QVector3D::unproject() has "is fuzzy zero" tolerance too high (1e-5) and was returning incorrect vectors. This commit also adds a routine for ray-plane intersection which isn't used in the end, but may be useful at some point later for simplified ray vs terrain tile tests.
- Loading branch information
Showing
3 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters