RenderBins is an advanced topic beyond the scope of the Quick Start Guide. Fortunately, RenderBins comes up quite often in the mail list, so I suggest you search the archives: http://groups.google.com/group/osg-users?hl=en Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> +1 303 859 9466
_____ From: [email protected] [mailto:[email protected]] On Behalf Of Vladimir Karmisin Sent: Wednesday, January 14, 2009 8:51 AM To: [email protected] Subject: [osg-users] OSG, RenderBins, Stencil and multipass render Hello ! I'm a bit newbie to OSG, so please excuse me, if my question a bit dumb. I've ordered a OSG Reference Book, read a QuckStart book, but in fact none of them covering the questions I'd like to ask. I have to make reflective mapping on liquid objects. Since these objects are not planar ones, I decided to use stencil-ed approach. I want to render a scene without water objects, to fill up the stencil buffer, and also at this pass do a rendering of the scene to off-screen surface with FRAMEBUFFER_OBJECT-ed Camera/Texture, to get a reflection texture. Then, at the next pass I'd like to render a water, with applied GLSL shader, and reflection texture, but only these regions, which stencil allows. This approach make me think I'll have to use two separate rendering passes, to render the same scene twice, but with different parameters. But I have no clue about how RenderBins and multi-pass rendering are working. If someone could drop me a note, about a logic behind multipass rendering, any help will be highly appreciated! -- Vladimir Karmishin ASTRA Development Inc.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

