I just remembered... There is an export option you might try:

lighting=<value> Specifies a default enable/disable state for lighting. By default, the exporter assumes lighting is enabled (GL_LIGHTING ON). Set this to either ON or OFF. Example: "lighting=OFF".

It's been a while since I looked at the code, but if you pass "lighting=OFF" in the Options string, then the exporter might handle materials differently. I'm not sure about this; check the code to see exactly what the effects of this option are.

Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466



Katharina Plugge wrote:
Hi Paul,

thanks for the fast answer and clarifications regarding handling of materials in osg, OpenGL and OpenFlight. Seems like I have not considered the whole picture. I made a few tests and everything looks fine indeed. So I aggree, this behaviour should be the default. For various reasons these 'added' materials are problematic for some of our applications, but I think I will find a workaround or will - as you suggested - implement and submit an alternative way for the Plugin. Have to rethink about this.

Thank you!

Cheers,
Katharina

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





_______________________________________________
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

Reply via email to