Hi Nick, On Tue, 2 Jul 2019 at 10:58, Trajce Nikolov NICK < trajce.nikolov.n...@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@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org