Hi Keith, Have a look at the osgdistortion example, this inherits the main cameras project and view matrices down onto the RTT camera so you don't need to attach the camera manipulator to the local RTT camera.
Robert. On 11/29/06, Keith Parkins <[EMAIL PROTECTED]> wrote:
I was trying to figure out how to add a manipulator that I wrote for using a gamepad to an arbitrary camera. I am projecting onto a curved screen, so to compensate for the distortions, I am prerendering into a FBO and applying the resulting texture to a surface to compensate for the distortions. I saw that there was a discussion about this in the list archives, but dburns.dhs.org seems to be down. I am currently trying to attach the Manipulator to the pre-render camera by using gpadmanipulator->setNode(cameraNode), where gpadmanipulator is a class derived from MatrixManipulator, setNode() method is copied from DriveManipulator source, and cameraNode is a CameraNode that is used to render the scene into the FBO. The gamepad manipulator works fine when attached to the Viewer with addCameraManipulator(). Thanks, Keith -- Keith Parkins U of R Center for Visual Science [EMAIL PROTECTED] Meliora Hall, Room 236 office: (585) 275-3938 lab: (585) 275-2230 _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
