Re: [osg-users] disabling lighting in RTT scene

2013-12-09 Thread Trajce Nikolov NICK
Actually, it is the on screen quad that was causing the lighting issue. Works fine after setting the mode to the quad itself. Sorry for the false bug report Nick On Mon, Dec 9, 2013 at 2:00 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Hi Robert, I tried this in osgprerender

Re: [osg-users] disabling lighting in RTT scene

2013-12-09 Thread Trajce Nikolov NICK
Hi Robert, I tried this in osgprerender to disable the lighting on the camera with PROTECTED and I can confirm it doesn't it. Can you try on your end and confirm, seam like a bug somewhere Thank You. Nick On Mon, Dec 9, 2013 at 1:18 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote

Re: [osg-users] disabling lighting in RTT scene

2013-12-09 Thread Trajce Nikolov NICK
I tried that Robert as well. I have PROTECTED on the RTT camera but the lighting is still active from the main view. I can make a sample to demonstrate this Nick On Mon, Dec 9, 2013 at 1:14 PM, Robert Osfield wrote: > Hi Nick, > > You use OVERRIDE when you want to override the state below that

Re: [osg-users] disabling lighting in RTT scene

2013-12-09 Thread Robert Osfield
Hi Nick, You use OVERRIDE when you want to override the state below that StateSet in the scene graph, and you use PROTECTED when you want to avoid a subgraph being overridden from above. So for your usage case I think PROTECTED would be appropriate rather than OVERRIDE. Robert. On 9 December 2

[osg-users] disabling lighting in RTT scene

2013-12-09 Thread Trajce Nikolov NICK
Hi Community, for some reason I can not disable lighting in the RTT scene. The scene is being rendered with the main scene lighting ON. I tried the basics things like geode->getOrCreateStateSet()->setMode( GL_LIGHTING, osg::StateAttribute::OFF|osg::StateAttribute::OVERRIDE ); I even tried to ove