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

Improve PerspectiveCamera rotation (upvector) #76

Open
louisponet opened this issue Aug 21, 2017 · 3 comments
Open

Improve PerspectiveCamera rotation (upvector) #76

louisponet opened this issue Aug 21, 2017 · 3 comments

Comments

@louisponet
Copy link
Collaborator

rotation = rotate_cam(theta_v, right_v, Vec3f0(0,0,1), dir)

Hi,
I think Vec3f(0,0,1) in this line should be changed to up_v. Previously the camera remained with the same upvector, causing left/right rotations to feel very weird after a while.
(also this was what I mentioned in my last comment in JuliaGL/GLVisualize.jl#190 , I edited that comment)

grtz

@jaakkor2
Copy link

jaakkor2 commented Nov 8, 2017

Any reason not to do the change?

I agree that if up-vector flips, then left-right rotations do not feel natural.

@SimonDanisch
Copy link
Member

Yes I think so, I should have added a comment there since I don't completely remember myself... But I think the rotations was getting super funky without a fixed upvector.

@louisponet
Copy link
Collaborator Author

If it's of any worth, I changed it locally on my pc since my post and haven't noticed any particular funkyness. Maybe I'm missing something though.

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

No branches or pull requests

3 participants