Hi,

Martin Großer wrote:
Hello jp

it works fine! Thank you. But when I load a osg-file, I don't have this problem. What is the reason?

mmm, not sure... maybe the osg file has this in already or is doing lighting in a different way (e.g. textures with lighting disabled).

jp


Cheers

Martin

Am 08.03.2010 09:23, schrieb J.P. Delport:
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


_______________________________________________
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

Reply via email to