Re: [osg-users] Multipass RTT stage setup?
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 o...@celticblues.com 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Multipass RTT stage setup?
I am already using the RenderOrderNum, I guess my question is more along the lines of where do I place the cameras in the scenegraph? Should one be the parent of the other, or should they be siblings? Or is that what nesting means, i.e. one a child of the other Thanks for the reply. CD [quote=robertosfield]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. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42450#42450 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Multipass RTT stage setup?
Hi Conan, On Tue, Sep 6, 2011 at 2:42 PM, Conan Doyle o...@celticblues.com wrote: I am already using the RenderOrderNum, I guess my question is more along the lines of where do I place the cameras in the scenegraph? Should one be the parent of the other, or should they be siblings? Or is that what nesting means, i.e. one a child of the other If you are using RenderOrderNum then you can put all the cameras alongside each other. If you make a render to texture Camera a child of another then that child will get rendered before the parent as long as it's RenderOrder to PRE_RENDER. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Multipass RTT stage setup?
Ok. got it. Thanks, CD robertosfield wrote: Hi Conan, On Tue, Sep 6, 2011 at 2:42 PM, Conan Doyle wrote: I am already using the RenderOrderNum, I guess my question is more along the lines of where do I place the cameras in the scenegraph? Should one be the parent of the other, or should they be siblings? Or is that what nesting means, i.e. one a child of the other If you are using RenderOrderNum then you can put all the cameras alongside each other. If you make a render to texture Camera a child of another then that child will get rendered before the parent as long as it's RenderOrder to PRE_RENDER. Robert. ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42460#42460 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org