[osg-users] Show part of geometry which intersects a specific area
Robert Osfield
robert.osfield at gmail.com
Tue Mar 27 08:56:37 PDT 2018
Hi Ali,
On 27 March 2018 at 13:55, Ali Ozdin <alinailozdin at gmail.com> wrote:
> Thanks for your answer. I have solved the problem with Robert's advice by using clipNode. However in my geometry, there are a lot of osgText. ClipNode does not effect on the osgText; so all the text in my geometry is still seen on the screen although the text is not inside the clipBox.
>
> How can I solve this ?
I haven't tested this specific combination of features, but in
principle it should be just a case of enabling the GL_CLIP_PLANEi mode
for the text subgraphs.
Which version of the OSG are you using and what GL versions?
The new osgText implementation in master/OSG-3.6 branch uses shaders
so out of the box, looking at the shader I don't see any setting of
the gl_ClipVertex so this could be a problem. I will look into this.
Robert.
More information about the osg-users
mailing list