Re: [osg-users] Make text ignore polygonmode

2010-03-29 Thread Farshid Lashkari
Hi Paul, On Mon, Mar 29, 2010 at 1:45 PM, Paul Martz wrote: > > I think you'll want to OR in the PROTECTED flag, right? > You shouldn't have to, unless the top level polygon mode is applied with the OVERRIDE flag, which I don't believe is the case. Cheers, Farshid __

Re: [osg-users] Make text ignore polygonmode

2010-03-29 Thread Martin Beckett
That works perfectly Thank you! Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26256#26256 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listin

Re: [osg-users] Make text ignore polygonmode

2010-03-29 Thread Paul Martz
Martin Beckett wrote: I have some text labels in my scene, but when I switch the polygon mode (eg with the 'w' key in osgviewer) the text is rendered broken (in line mode) and dissapears (in point mode). How do I force osg::PolygonMode::FILL, or force text to ignore it? I tried: Code: lab

Re: [osg-users] Make text ignore polygonmode

2010-03-29 Thread Farshid Lashkari
Hi Martin, I use the osg::PolygonMode attribute to prevent certain subgraphs from going into wireframe mode. The following code should work in your case: osg::PolygonMode *poly = new osg::PolygonMode( osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::FILL ); label->getOrCreateStateSet()->setAtt

[osg-users] Make text ignore polygonmode

2010-03-29 Thread Martin Beckett
I have some text labels in my scene, but when I switch the polygon mode (eg with the 'w' key in osgviewer) the text is rendered broken (in line mode) and dissapears (in point mode). How do I force osg::PolygonMode::FILL, or force text to ignore it? I tried: Code: label->getOrCreateStateSet()