<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi,</div>
<div> </div>
<div>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</div>
<div> </div>
<div>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.</div>
<div> </div>
<div> </div>
<div>Christian</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 03. Februar 2016 um 11:19 Uhr<br/>
<b>Von:</b> "Robert Osfield" <robert.osfield@gmail.com><br/>
<b>An:</b> "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org><br/>
<b>Betreff:</b> Re: [osg-users] osgViewer/Renderer ctor set wrong defaults for SceneView</div>
<div name="quoted-content">Hi Christian,<br/>
<br/>
I can't figure out exactly what change you are talking about, could<br/>
you have a look at the the github page to figure out the commit that<br/>
is relevant.<br/>
<br/>
Also could you explain the problems you are seeing in your<br/>
application, which version of the OSG worked, which ones now fail.<br/>
<br/>
Thanks,<br/>
Robert.<br/>
<br/>
On 3 February 2016 at 09:33, Christian Ehrlicher <Ch.Ehrlicher@gmx.de> wrote:<br/>
> Hi,<br/>
><br/>
> in r13604 osgUtils/SceneView got a new default value for<br/>
> SceneView::setDefaults():<br/>
><br/>
> Added SceneView::Options enum enetries APPLY_GLOBAL_DEFAULTS and<br/>
> CLEAR_GLOBAL_STATESET to control whether a _globalStateSet->clear() and<br/>
> _globalStateSet->setGlobalDefaults() should be called.<br/>
><br/>
> The problem seems to be that in osgViewer/Renderer.cpp those new enum values<br/>
> are not respected when sceneViewOptions for the scenes is calculated:<br/>
><br/>
> Renderer.cpp:399<br/>
><br/>
> unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;<br/>
> if (view)<br/>
> {<br/>
> switch(view->getLightingMode())<br/>
> {<br/>
> case(osg::View::NO_LIGHT): sceneViewOptions = 0; break;<br/>
> case(osg::View::SKY_LIGHT): sceneViewOptions =<br/>
> osgUtil::SceneView::SKY_LIGHT; break;<br/>
> case(osg::View::HEADLIGHT): sceneViewOptions =<br/>
> osgUtil::SceneView::HEADLIGHT; break;<br/>
> }<br/>
> }<br/>
> ...<br/>
> _sceneView[0]->setDefaults(sceneViewOptions);<br/>
> _sceneView[1]->setDefaults(sceneViewOptions);<br/>
><br/>
><br/>
><br/>
> This leads to a broken Scene in our application. As I've no idea about the<br/>
> internals of osg (I just searched this bug) I hope this is enough to fix the<br/>
> problem.<br/>
><br/>
><br/>
><br/>
> Thx,<br/>
><br/>
> Christian Ehrlicher<br/>
><br/>
><br/>
> _______________________________________________<br/>
> osg-users mailing list<br/>
> osg-users@lists.openscenegraph.org<br/>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br/>
><br/>
_______________________________________________<br/>
osg-users mailing list<br/>
osg-users@lists.openscenegraph.org<br/>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a></div>
</div>
</div>
</div></div></body></html>