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:

> 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 
> <robert.osfi...@gmail.com>wrote:
>
>> 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 2013 09:17, Trajce Nikolov NICK <
>> trajce.nikolov.n...@gmail.com> wrote:
>>
>>> 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 override it with a shader still lighting is applied to
>>> the whole scene. I see changes when pressing 'l' in the osgviewer (extended
>>> sample)
>>>
>>> Any clue, hints?
>>>
>>> Thanks a bunch!
>>>
>>> Nick
>>>
>>> --
>>> trajce nikolov nick
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> trajce nikolov nick
>



-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to