Hi folks,
I have a camera responsible for updating some texture by rendering to it.
What is the preferred way/callback to let the camera run only every
10th frame or so.
I know I can use the the nodevisitor to get the framenumber, but I'm
puzzled which callback to use to skip the camera all
Hi Sebastian,
I struggled with the same problem. The way how I resolved this was by
keeping reference to the camera and working with the NodeMask (the camera
was turned on at each N-th frame, otherwise was off). And the framebuffer
was kept this way
Hope this helps
Nick
On Tue, Dec 3, 2013 at
Hi Sebastian,
You could use an osg::Sequence node above the RTT osg::Camera that makes
sure it's only traversed are certainly times, or use a custom cull callack
attached to an osg::Group that decorates your RTT osg::Camera and decides
whether to traverse or not to the interval you want.
Robert.
3 matches
Mail list logo