Hi Nick,

On 12 January 2015 at 09:54, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:

> yes, I know that, but thanks. I was looking for some setDefaults or
> something similar. I can not clearly recall the change you made in the
> later osg to explicitly set some defaults so I was shooting in the fog
> hoping someone will remember it better.
>

What is appropriate totally depends upon the context and needs.  In
osg::StateSet there is a setGlobalDefaults() method that gets set for the
master Camera or a View(er) so you don't need to set this.
setGlobalDefaults() sets some OpenGL state that is off by default such as
depth test.

A default constructed osg::Camera doesn't have an osg::StateSet assigned
though, so if you create our own osg::Camera and assign this to the
View(er) then you'll need to call StateSet::setGlobalDefaults().

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

Reply via email to