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

Robert Osfield robert.osfield at gmail.com
Tue Jul 2 03:22:12 PDT 2019


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190702/a3c26fec/attachment.html>


More information about the osg-users mailing list