SHARE
TWEET

Untitled

a guest Jul 6th, 2017 556 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 19:19 < spm_Draget> Java3D: If I use a MouseRotate behavior in my viewingplatform transformgroup, I can use my mouse to nativagte. I have that working. But when rotating to the
  2.                     side and up, the camera gets tilted (so to say rotated along the viewing-vector). Can I prevent this somehow?
  3. 19:19 -!- gngrwzrd [~gngrwzrd@c-98-234-85-17.hsd1.ca.comcast.net] has quit [Quit: gngrwzrd]
  4. 19:21 -!- gngrwzrd [~gngrwzrd@c-98-234-85-17.hsd1.ca.comcast.net] has joined ##java
  5. 19:23 < Planck_> spm_Draget: You can lock the up-vector, if that's what you want
  6. 19:23 -!- ktx2 [~ktx@unaffiliated/ktx] has joined ##java
  7. 19:23 < Planck_> E.g. instead of having a general orientation quaternion or matrix, just use two Euler angles
  8. 19:24 < spm_Draget> Planck_: Any hint on how to do that? (sounds like what I want)
  9. 19:26 -!- RenatoSilva [~Renato@187.13.179.141] has quit [Read error: Connection reset by peer]
  10. 19:27 -!- RenatoSilva [~Renato@187.13.165.106] has joined ##java
  11. 19:28 -!- teralaser [~teralaser@unaffiliated/teralaser] has quit [Quit: Sleep! The only thing you don't want but do need.]
  12. 19:28 < Planck_> I don't recall the Java3D specifics, but you basically adjust two azimuth & elevation Euler angles, and use those to set the transformation for the view platform
  13.                 instead of a matrix or quaternion
  14. 19:28 -!- homie [~user@xdsl-78-35-140-89.netcologne.de] has joined ##java
  15. 19:29 < cbeust> Planck_: you just single handedly elevated the intellectual level of this channel to levels yet unseen
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top