Actually, I have some more questions about using stencil buffer: - how can I clear stencil buffer on render bin? (in OpenGL tutorials everyone uses glClear(GL_STENCIL_BUFFER_BIT) - is it possible to disable stencil buffer at the begining of the render bin and enable it at the end? Or should I disable usage of the stencil buffer on previous render bin and enable it on next?
robertosfield wrote: > On 13 January 2016 at 18:49, Artem Ivanov <> wrote: > > > Thanks for your responses. > > Actually, I want only visual effect (like union operation on two > > geometries), so I think it is about pure rendering. > > It would be great if you can describe this method or provide some > > information about it. > > > > To understand the ideas behind managing the rendering It would > probably be easiest to just read up online one how to do such > rendering using OpenGL. Topics to look into would be OpenGL, Stencil > Buffer Consutrctive Solid Geometry. > > Perhaps members of the community have their favourite tutorials on this topic. > > The OSG fully supports stencilling, controls on depth+color buffers, > shaders, controls for managing multi-pass rendering. The osgreflect > example provide a very simple example of managing stencilling. > > 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=66027#66027 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

