Thanks Sergey, that was what I feared.

It will not be easy to get these rendertarget  parameters at the nested 
camera level.
I have searched for a way to 'copy' the render target from a camera in 
parent nodepath, but the Camera class does not seem to be taylored for 
that,
I will probably use a visitor to propagate RTT parameters to nested 
cameras.

       Luc 



De :
Sergey Polischuk <[email protected]>
A :
OpenSceneGraph Users <[email protected]>
Date:
31/08/2012 16:04
Objet :
Re: [osg-users] RTT camera and nested camera
Envoyé par :
[email protected]



 
 
Hi

>During the traversal of a scene rendered through a RTT camera, how the 
nested cameras behave ?
 
Same as usual, render to framebuffer by default. 
>Do they automatically acquire the RTT camera target ? Do I have to set up 
something ?
 
Yes, you should specify rendertarget if you dont want to get result on 
framebuffer.
You should explicitly attach same rtt to both your cameras.
 
Cheers.
31.08.2012, 16:48, "Luc Frauciel" <[email protected]>:
Hi everybody,

I'm stuck with a problem when trying to render to RTT camera.

I want to render a scene to a RTT camera (the way osgposter does it).
In my scene, I've got a osgephemeris SkyNode.
To avoid culling problems, the skynode is rendered with it's own Camera 
( see : http://osdir.com/ml/OpenSceneGraph-Users/2009-04/msg01170.html the 
suggestion of J-S Guay)

While rendering directly to frame buffer my scene is ok  : scene + skydome
While rendering to a RTT camera, the objects below the Skydome camera are 
not rendered in the texture.
I've tried to play with different parameters (render order etc...) but I 
don't understand how it work (or should work).

During the traversal of a scene rendered through a RTT camera, how the 
nested cameras behave ?
Do they automatically acquire the RTT camera target ? Do I have to set up 
something ?

      Luc

=
_______________________________________________
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




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

Reply via email to