[osg-users] transforming normals

Can Hosgor can.hosgor at simsoft.com.tr
Fri Mar 20 08:57:03 PDT 2009


Hi,

I'm writing a simple nodevisitor to compute the lightmap of a given node. This nodevisitor treats transforms and geodes specially, so that each vertex in the geometry is multiplied with the most recent transform matrix in order to obtain world coordinates. So far the above code works well except that i don't know how to transform the normals. Can I obtain the normal matrix directly from the transformation matrix, if so how?

Thank you,
Can

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








More information about the osg-users mailing list