Hi Ali, One way of constraining rendering is to use osg::ClipNode - this allows you to place one or more osg::ClipPlane (wrapper around glClipPlane). Have a look at the osgclip example, to run it use:
osgclip cow.osgt Robert. On 26 March 2018 at 15:39, Ali Ozdin <[email protected]> wrote: > I draw a complex geometry. I am changing the position of that geometry with a > nodecallback by giving random position values on the screen. There is no > problem until here. > > I dont want to show whole geometry to the user. I want to define a rectangle > and I want to show only the geometry's specific part inside a rectangle on > the screen. In other words, I want to show only geometry's specific part > intersects that rectangle. > > > > How can I achieve this? > > Thanks, > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=73173#73173 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

