Hi Sebastian,


seb wrote:
> 
> I did what you suggest, and I have a black screen, like there was no root. I 
> have one question about your graph, did you mean that the main camera node 
> has 2 children : the osgPPU processor and the custom FBO camera with your 
> graph ?
> 

Have you tried just to remove osgPPU completly and set the main camera's 
implementation to FBO. This should give you also black screen. Or did you tried 
to make the graph, I proposed to you?

Yes, I mean that the main root node has two children. One is the slave camera 
and another one is the ppu's processor.  The slave camera has to be used by the 
processor through setCamera(). Try it first in your application before going to 
the host application.


> 
> I have set the FBO camera with RELATIVE_RF transform and I didnt set the view 
> and projection matrices. I guess the view matrix will be update by its parent 
> and osgPPU will set the projection matrix with a 2 projection. Am I right ?
> 

osgPPU didn't change anything within your camera, it just uses camera's texture 
as input nothing else. So you have to setup your projection matrices by your 
self. With RELATIVE_RF only the view matrix should be updated. 

art

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to