Hi Ali,

On 27 March 2018 at 13:55, Ali Ozdin <[email protected]> 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.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to