Hi,
your normals are being scaled with the geom. You can put something in
the stateset to rescale normals. I think, but check it up, GL_NORMALISE
will do, but you can also use GL_RESCALE_NORMALS if you are using same
scaling for all axes.
If you can't find osg code for this, ping the list again.
jp
Martin Großer wrote:
Hello,
when I load a STL-file and I scale this geometry up, it is black and
when I scale down it is white. It seems that is a problem with the
lighting.
Any ideas, what is my mistake?
Cheers
Martin
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org