[osg-users] Show part of geometry which intersects a specific area

Robert Osfield robert.osfield at gmail.com
Tue Mar 27 00:35:21 PDT 2018


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 <alinailozdin at gmail.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list