Forum

Global rotation instead of local - Roll(Transform)

hi
what i want to do:
rotate a sphere with the mouse using a global coordinate system,
not the spheres local one.

i found svens Roll(Transform), which almost does the job.
http://vvvv.org/tiki-index.php?page=UserPagesven

the Roll node offers Rotations per Second.
how would it be done according to the mouse position?!
thanks

try it with FrameDifference (Animation) and multiply it with a value to get the rotation speed you want. if you installed svens roll module in vvvv’s \modules\sven the following patch should do what you want:

ArcBall.v4p (7.1 kB)

thank you: works great.
i got the idea, wouldnt have
come up with it myself, though.

partikel.:
thank you: works great.
i got the idea, wouldnt have
come up with it myself, though.

As a beginner with vvvv i don’t really understand what is going on in the Roll Patch.
What i want to do is nearly the same as partikel: Rotate a sphere on the global axis and not on its own axis - because these will rotate with it when i perform another rotation.
The Roll patch does exactly this but depending on rotations per second. Is there any way to rotate to a exact position?