Hi,

have you tried to set the render order explicitly on the cameras?
Do you get a valid result if you are rendering cam2 only?
Do they really bind the same texture?

Hi Sebastian,

thanks for the really quick reply.

cam1 is renderung a textured quad as static wallpaper and it's renderOrder is 
set to PRE_RENDER.
cam 2 is rendering a normal scene (i.e. the cow) an its clear mask is set to 
just GL_DEPTH_BUFFER_BIT.
This way cam2 doesn't destroy the background rendered by cam1.
On the screen it works perfect.
But as soon as I create a framebuffer or pixelbuffer object an set it as render 
targets to both cams it seems like the buffer is cleared before cam2 does it's 
work.

Thank you!

Cheers,
Werner

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to