Thanks Glenn, fix now merged and submitted to svn/trunk and OSG-2.8 branch

On Wed, Mar 25, 2009 at 8:09 PM, Glenn Waldron <[email protected]> wrote:

> Attached is a patch for osgUtil::Optimizer. If you run the
> SpatializeGroupsVisitor on a scene graph containing Geodes, StateSets
> attached to Geodes can be lost.
>
> The problem is in SpatializeGroupsVisitor::divide(osg::Geode*, unsigned
> int) where the code creates a new Group and divides up the input Geode into
> one Geode per Drawable.
>
> I fixed the problem by assigning the Geode's stateset to the new parent
> group.
>
> To replicate the bug, see attached osg/dds files:
>
> osgviewer b.osg -- model renders correctly
> set OSG_OPTIMIZER="SPATIALIZE_GROUPS"
> osgviewer b.osg -- textures are missing.
>
>
>
>
> Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
> +1.703.652.4791
>
> _______________________________________________
> 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