Proscene Rolling
in
Contributed Library Questions
•
8 months ago
I'm using Proscene to handle some of the camera work for a rendering/video.
There's some issues with the camera rolling as I have it look left or right using Camera.lookAt().
There's some issues with the camera rolling as I have it look left or right using Camera.lookAt().
Above is what it looks like. The object I'm following is near the x-axis, and when I turn the camera towards the center (the sun), the horizon (xy-axis) is tilted onto its side.
CAD_CAM does exactly what I'd like it to do, but it only applies to user interaction and not procedural/programmed camera work.
I can use scene.camera().setUpVector(new PVector(0,0,1)), but it's preventing pitching (rotate forward/backward) as well as rolling (rotate around forward-direction). I just want the XY axis to stay horizontal.
Camera.setViewDirection's description says: " The Camera is rotated so that the horizon (defined by its
However, the xy-axis still rotates when I use it.
CAD_CAM does exactly what I'd like it to do, but it only applies to user interaction and not procedural/programmed camera work.
I can use scene.camera().setUpVector(new PVector(0,0,1)), but it's preventing pitching (rotate forward/backward) as well as rolling (rotate around forward-direction). I just want the XY axis to stay horizontal.
Camera.setViewDirection's description says: " The Camera is rotated so that the horizon (defined by its
upVector()
) is preserved."
However, the xy-axis still rotates when I use it.
I've tried using setOrientation, but I'm admittedly not that familiar with Quaternions.
1