Skip to content

Turntable Camera #1414

Answered by robertosfield
nolankramer asked this question in Q&A
Mar 5, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nolankramer
Comment options

Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants