Hi,
I thought svn is the master, and not git. The git commit-id is eb7929b85ad87316a2437da03b4bb810cded7366 - it's between osg3.1.8 and 3.1.9
The problem we've is that mostly all of our models in the terrain are displayed transparent in the middle of the screen when using osgViewer class. Using the osgviewer executable all looks find so I assume osgviewer does not use osgViewer class.
Christian
Gesendet: Mittwoch, 03. Februar 2016 um 11:19 Uhr
Von: "Robert Osfield" <[email protected]>
An: "OpenSceneGraph Users" <[email protected]>
Betreff: Re: [osg-users] osgViewer/Renderer ctor set wrong defaults for SceneView
Von: "Robert Osfield" <[email protected]>
An: "OpenSceneGraph Users" <[email protected]>
Betreff: Re: [osg-users] osgViewer/Renderer ctor set wrong defaults for SceneView
Hi Christian,
I can't figure out exactly what change you are talking about, could
you have a look at the the github page to figure out the commit that
is relevant.
Also could you explain the problems you are seeing in your
application, which version of the OSG worked, which ones now fail.
Thanks,
Robert.
On 3 February 2016 at 09:33, Christian Ehrlicher <[email protected]> wrote:
> Hi,
>
> in r13604 osgUtils/SceneView got a new default value for
> SceneView::setDefaults():
>
> Added SceneView::Options enum enetries APPLY_GLOBAL_DEFAULTS and
> CLEAR_GLOBAL_STATESET to control whether a _globalStateSet->clear() and
> _globalStateSet->setGlobalDefaults() should be called.
>
> The problem seems to be that in osgViewer/Renderer.cpp those new enum values
> are not respected when sceneViewOptions for the scenes is calculated:
>
> Renderer.cpp:399
>
> unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;
> if (view)
> {
> switch(view->getLightingMode())
> {
> case(osg::View::NO_LIGHT): sceneViewOptions = 0; break;
> case(osg::View::SKY_LIGHT): sceneViewOptions =
> osgUtil::SceneView::SKY_LIGHT; break;
> case(osg::View::HEADLIGHT): sceneViewOptions =
> osgUtil::SceneView::HEADLIGHT; break;
> }
> }
> ...
> _sceneView[0]->setDefaults(sceneViewOptions);
> _sceneView[1]->setDefaults(sceneViewOptions);
>
>
>
> This leads to a broken Scene in our application. As I've no idea about the
> internals of osg (I just searched this bug) I hope this is enough to fix the
> problem.
>
>
>
> Thx,
>
> Christian Ehrlicher
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
I can't figure out exactly what change you are talking about, could
you have a look at the the github page to figure out the commit that
is relevant.
Also could you explain the problems you are seeing in your
application, which version of the OSG worked, which ones now fail.
Thanks,
Robert.
On 3 February 2016 at 09:33, Christian Ehrlicher <[email protected]> wrote:
> Hi,
>
> in r13604 osgUtils/SceneView got a new default value for
> SceneView::setDefaults():
>
> Added SceneView::Options enum enetries APPLY_GLOBAL_DEFAULTS and
> CLEAR_GLOBAL_STATESET to control whether a _globalStateSet->clear() and
> _globalStateSet->setGlobalDefaults() should be called.
>
> The problem seems to be that in osgViewer/Renderer.cpp those new enum values
> are not respected when sceneViewOptions for the scenes is calculated:
>
> Renderer.cpp:399
>
> unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;
> if (view)
> {
> switch(view->getLightingMode())
> {
> case(osg::View::NO_LIGHT): sceneViewOptions = 0; break;
> case(osg::View::SKY_LIGHT): sceneViewOptions =
> osgUtil::SceneView::SKY_LIGHT; break;
> case(osg::View::HEADLIGHT): sceneViewOptions =
> osgUtil::SceneView::HEADLIGHT; break;
> }
> }
> ...
> _sceneView[0]->setDefaults(sceneViewOptions);
> _sceneView[1]->setDefaults(sceneViewOptions);
>
>
>
> This leads to a broken Scene in our application. As I've no idea about the
> internals of osg (I just searched this bug) I hope this is enough to fix the
> problem.
>
>
>
> Thx,
>
> Christian Ehrlicher
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

