Thanks Robert, it makes things clear to me, too. :-)

Wang Rui



2013/9/9 Robert Osfield <[email protected]>

> Thanks Rui, I've merged the changes, but removed the extra comments added
> as I felt for new programmers it'd make things less clear.  FYI, a bug fix
> to the Viewer setup is what caused this behaviour change - osgViewer now
> honours the state set up on osg::View rather than overriding it behind the
> scenes, so if no settings are provided then none are set.  osg::StateSet
> has a function to set the global defaults and this is called by the View
> constructor, but only visible if you don't apply your own osg::Camera as
> the example was doing.
>
> Changes now merged and submitted to svn/trunk and OSG-3.2
>
>
> On 7 September 2013 09:57, Wang Rui <[email protected]> wrote:
>
>> Hi Robert,
>>
>> Some developers report that the osgviewerMFC example is broken in 3.2, in
>> which depth test is not enabled by default so all models loaded look
>> awkward. I submit this patch to make it work again. I haven't gone deep to
>> check why previous example goes wrong in newer version but I believe the
>> problem was because the newly created camera object missed some important
>> global statesets before set as the main camera.
>>
>> Cheers,
>>
>> Wang Rui
>>
>>
>> _______________________________________________
>> osg-submissions mailing list
>> [email protected]
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to