Robert Osfield wrote on Saturday, February 07, 2009 5:32 AM: > Thanks for the example file, I was able to reproduce the problem and > apply a fix. The fix is now checked into the OSG-2.8 and svn/trunk. > This is after 2.8.0-rc2, so you'll need to test the 2.8 branch rather > than the 2.8.0-rc2 tag. Modified src/osgUtil/Optimizer.cpp also > attached.
I tested with 2.8.0-rc3 and it fixes the problem. Thanks! > On Fri, Feb 6, 2009 at 10:20 PM, Thrall, Bryan > <bryan.thr...@flightsafety.com> wrote: >> >> OSG version: 2.8 rc1 (svn 9676) >> OS: Windows XP >> Compiler: Visual Studio 2005 >> >> The OSG Optimizer::FlattenStaticTransformsVisitor appears to be altering >> StateSets when it shouldn't; when I run the following command (see >> attached, bzip2 compressed model), The StateSet at the top loses its Texture >> and Program: >> >> osgconv -s 10,10,10 cloud_surface.osg cloud_surface2.osg >> >> You can get similar results with >> >> osgviewer cloud_surface.osg.10,10,10.scale >> >> (of course, you need to have some actual shaders to load to see the >> difference there) >> >> Setting OSG_OPTIMIZER=OFF fixes the problem. >> >> I don't really have time to debug this further at the moment, but >> hopefully someone else can, or I'll get to it later. >> >> -- >> Bryan Thrall >> FlightSafety International >> bryan.thr...@flightsafety.com >> >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g -- Bryan Thrall FlightSafety International bryan.thr...@flightsafety.com _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org