[osg-users] Scaling an Object - Normals

2010-06-11 Thread Thomas Canipel
Hi,

I would like to know how I can re-scale the normal of an object loaded after 
scale the object ?

Thank you!

Cheers,
Thomas

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28840#28840





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Scaling an Object - Normals

2010-06-11 Thread Ben Cain
// Normalize normals to correct lighting from the scaling operation.
object-getOrCreateStateSet()-setMode(GL_NORMALIZE, osg::StateAttribute::ON);

On Fri, Jun 11, 2010 at 4:27 PM, Thomas Canipel
thomas.cani...@gmail.com wrote:
 Hi,

 I would like to know how I can re-scale the normal of an object loaded after 
 scale the object ?

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Scaling an Object - Normals

2010-06-11 Thread Ben Cain
Mail got formated oddly ... trying again.

// Normalize normals to correct lighting from the scaling operation.
object-getOrCreateStateSet()-setMode(GL_NORMALIZE,osg::StateAttribute::ON);


On 6/11/10, Ben Cain brca...@gmail.com wrote:
 // Normalize normals to correct lighting from the scaling operation.
 object-getOrCreateStateSet()-setMode(GL_NORMALIZE,
 osg::StateAttribute::ON);

 On Fri, Jun 11, 2010 at 4:27 PM, Thomas Canipel
 thomas.cani...@gmail.com wrote:
 Hi,

 I would like to know how I can re-scale the normal of an object loaded
 after scale the object ?


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org