[osg-users] updating osg::TexMat relative to camera position

Peter Wraae Marino osghelp at gmail.com
Wed Mar 4 00:48:56 PST 2009

Hi users,

We are having some troubles setting the osg::TexMat relative to the current
camera position.
The problem arises when we have multiple cameras. We have for example a main
camera and
a RTT camera.

We tried to use the setCullCallback expecting that before the object that
uses the texture is drawn
we could modify the osg::TexMat,... but... it appears that following is what
happens (when running
single threaded):

-Camera Main: cull callback
-Camera RTT: cull callback

what we would like to have happen is

 -Camera Main: cull callback
 -Camera RTT: cull callback

Apparently (of course we assuming here) this is how osg is designed.

Can someone tells us if we understand this correctly now?
and if someone has an idea how to solve this would be much appreciated.

Peter Wraae Marino

www.osghelp.com - OpenSceneGraph support site
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090304/8f7c99d4/attachment-0002.htm>

More information about the osg-users mailing list