Turntable Camera #1414
-
I'm curious if anyone here has implemented a Turntable camera controller. Camera controls are not exactly my expertise, and I've been trying to adapt the Trackball code, but with little luck. I started with trying to rewrite the I haven't even approached Gimbal lock yet. Any ideas/thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The vsg::Trackball isn't meant to be a general base class for camera manipulators so is likely ill suited to trying to co-opt into being something other than a trackball. My recommendation would be to just start from scratch. Like vsg::Trackball you'll want to subclass from vsg::Visitor and override the event related methods to handle the keyboard and mouse events to control the view point, then if you want to have animation support implement this by override the Frame event. |
Beta Was this translation helpful? Give feedback.
The vsg::Trackball isn't meant to be a general base class for camera manipulators so is likely ill suited to trying to co-opt into being something other than a trackball.
My recommendation would be to just start from scratch. Like vsg::Trackball you'll want to subclass from vsg::Visitor and override the event related methods to handle the keyboard and mouse events to control the view point, then if you want to have animation support implement this by override the Frame event.