Files
OpenSceneGraph/src/osgPlugins
Robert Osfield 89cf88f2a9 From Chris Denham, "This is a submission to fix a problem with use of mode GL_RESCALE_NORMAL for geometries below a scaling transform which is not equal in X, Y & Z components. In this case, the 'slow' method of mode GL_NORMALIZE should be used to perform the normalization.
I have attached a correction to daeRTransforms.cpp based on trunk at [12892] which corrects this problem.

This is the changed section:

Code:
       if (scale.x() == scale.y() && scale.y() == scale.z())
       {
           // This mode may be quicker than GL_NORMALIZE, but ONLY works if x, y & z components of scale are the same.
           ss->setMode(GL_RESCALE_NORMAL, osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE);
       }
       else
       {
           // This mode may be slower than GL_RESCALE_NORMAL, but does work if x, y & z components of scale are not the same.
           ss->setMode(GL_NORMALIZE, osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE);
       }"
2012-02-09 14:11:36 +00:00
..
2011-05-06 09:20:06 +00:00
2011-11-01 10:30:18 +00:00
2011-05-06 10:28:24 +00:00
2011-05-05 12:39:35 +00:00
2012-01-24 15:44:58 +00:00
2010-08-16 14:24:12 +00:00
2011-07-17 16:24:47 +00:00
2011-06-24 15:04:16 +00:00
2011-01-28 11:07:51 +00:00
2010-11-22 11:22:03 +00:00
2010-11-22 11:22:03 +00:00
2010-11-22 11:22:03 +00:00
2011-07-17 16:24:47 +00:00
2010-11-22 11:22:03 +00:00
2011-07-17 16:24:47 +00:00
2010-11-22 11:22:03 +00:00