[osg-users] two pass rendering without enhancing osg::Drawable

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Tue Jul 2 03:46:09 PDT 2019


Thanks Robert :). Sometimes I struggle :-))) ... Thanks again !

On Tue, Jul 2, 2019 at 12:22 PM Robert Osfield <robert.osfield at gmail.com>
wrote:

> Hi Nick,
>
> On Tue, 2 Jul 2019 at 10:58, Trajce Nikolov NICK <
> trajce.nikolov.nick at gmail.com> wrote:
>
>> is there any elegant way to have multipass rendering then inheriting and
>> enhancing osg::Drawable? Thanks a bunch for any hint
>>
>
> Have you forgotten how the OSG works?
>
> There are dozens of examples in the OpenSceneGraph/example that use
> mulit-pass and multi-stage rendering without ever subclassing Drawable or
> using callbacks. One simple uses osg::Camera to manage mulit-stage
> rendering, like render to texture. and using StateSet's::RenderBin details
> when you want to have multiple bins, or you can just put the same subgraph
> into the scene graph multiple times and decorate each branch with different
> state to select what you want.
>
> Robert.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190702/1db64ef2/attachment.html>


More information about the osg-users mailing list