[osg-users] A Question About Custom Camera Manipulators

Michael Chapman 08kabbotta80 at gmail.com
Mon Aug 10 19:59:41 PDT 2015


I'm trying to piece together a simple third-person camera manipulator for my project and I'm a bit confused. I've been reading through some of the examples like FirstPersonManipulator and OrbitManipulator, and I've got the basic class up and running, but I don't quite understand how the manipulator is supposed to actually affect the camera node's view matrix. In the existing implementations, certain variables like _eye and _rotation are set in the overriden pure virtual functions, but they never seem to be used to actually update the camera's view matrix. Is this supposed to happen in the handle method?

Thanks!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64712#64712








More information about the osg-users mailing list