Hi Conan, You can either use the Camera's RenderOrderNum to determine which order the cameras are rendered in, or simply nest the Camera that you want to drawn first. You should still use PRE_RENDER RenderOrder in both approaches.
Robert. On Mon, Sep 5, 2011 at 10:03 PM, Conan Doyle <[email protected]> wrote: > I have not been able to determine how to set up the following scenario. > > > I want to set up my app to hve 3 cameras. Basically, I want to have two RTT > pre-render stages. Camera 0 Render ->Camera 1 Render->Main Camera Render. > Each RTT node would have it's own shader to render the scene, and then render > the target texture to a quad for display for the next render stage. My > problem is that I am not sure how to set this up... For example, where do I > attach the RTT nodes? Currently, I create a group node and add each child as > children of this group node, and add the scene to each camera node. If I > only add one camera or the other, I see what I expect, but if I add both, I > only see the first camera added. When I create the RTT cameras I do specify > PRE_RENDER and render # 0 for the first pre-render camera and render # 1 for > the other, which I thought was correct. Any help is greatly appreciated. > > Thanks, > CD > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=42430#42430 > > > > > > _______________________________________________ > 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

