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

use quaternions to implement panorama rotation freely #1

Open
jasonChen1982 opened this issue Apr 17, 2018 · 2 comments
Open

use quaternions to implement panorama rotation freely #1

jasonChen1982 opened this issue Apr 17, 2018 · 2 comments

Comments

@jasonChen1982
Copy link
Contributor

use quaternions rotation to optimize SphereWorld's drag rotation, quaternions multiply a delta quaternions.

@jasonChen1982
Copy link
Contributor Author

jasonChen1982 commented Apr 17, 2018

pseudo code like follow:

sphereWorld.on('drag', delta => {
  const dq = getDeltaQuat(delta);
  sphereWorld.quaternions.multiply(dq);
});

implement like this way can avoid rotation lock.

@jasonChen1982 jasonChen1982 changed the title open use quaternions to implement panorama rotate freedom use quaternions to implement panorama rotation freely Apr 17, 2018
@Oldsooh
Copy link

Oldsooh commented Aug 13, 2018

Just take a look~

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

2 participants