Hi Simon,

On Thu, Feb 4, 2010 at 9:58 AM, Simon Hammett
<[email protected]> wrote:
> I've attached a modified version of osgViewer.cpp which shows the issue.
> The codes works fine in 2.8.2 & 2.7.1
>
> I had a quick look at the code, but there's been way too many changes from
> 2.8.2 to 2.9.6 for me to find out what broke.

I rewrote the osg::Geometry::drawImplementation() to enable support of
OpenGL ES and OpenGL 3.x where there is no glBegin/glEnd support.  I
did do a lot of testing of the various slow paths though, but in for
you model I must have missed something.  The new code is alot cleaner
so it should be easier to track down the issue.

I'm currently completed focused on DatabasePager issues right now so
can't dive in to look at this regression right away.

> Also state set loading when opening .osg files seems to be broken as well.
> If I save the graph out in 2.8.2 and then load it with osgViewer I get a
> blue
> cube instead of a grey one.

The .osg reading/writing really didn't change much so there it may
well be that the reading/writing wasn't perfect in 2.8.2 either.
Check to see if the files written by 2.9.6 work OK with OSG-2.8.2. My
guess is that it's just the rendering differences that are the issue.

As a general note, the slow paths such as per normal bindings are
incredibly inefficient in the OSG and OpenGL and should be avoided.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to