You'll need to debug this yourself. Here's how.
After you add the Material and StateSet, dump out a node file and do the
following:
1) Check to make sure your Material and StateSet were added correctly.
2) Look at child nodes and make sure they don't override the Material
you set.
3) Make sure other lighting-related state is correct. (E.g., make sure
the scene graph isn't turning lighting off, has correct normals, etc.)
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466
Miguel Lokida wrote:
Hello,
When using readNodeFile method to charge an object, I have try to set a material on this node ( creating a stateset, addinf the material and attribute the stateset to the node).
But, when it works for other geometry with readNodeFile, the material is not on the geometry.
Is it possible to add a material when a node is created using readNodeFile ?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17722#17722
_______________________________________________
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