Hi all I have a prerender RTT camera that renders part of my scenegraph, and i set reference_frame to RELATIVE_RF, the view direction of the camera is identical to the main camera. The output of the prerender camera is then applied in a postprocessing step. Everything works fine and is displayed correctly.
Now I added uniforms to each node of the sub scenegraph of this prerender camera, in order to have a per node control of a particular property in the shader. To update the uniform, I installed a cullcallback on each node, to update the particular uniform. So far still so good. The problem is, that in my calculations of my uniform, I need the ViewMatrix of the camera in world coordinates. When I get the viewmatrix of the current camera (which is the prerender camera) in my cull visitor, it get a identiy matrix. I guess this is due to the fact that this camera is child of the main camera. How can I calculate the correct ViewMatrix ? Regards Danoo
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

