[osg-users] material attributes of an object

Gordon Tomlinson gordon.tomlinson at sensor.com
Mon Jul 21 04:26:28 PDT 2008


Look around and in the examples for osg::Material and osg::StateSets ( The
OSG uses Materials just the same as OGL, )
 
You could apply a material state to a root node of your object
 
Have a root round the Examples and a search of the mail-list archives, there
have been some recent discussion on using material
 

  _____  

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of David _
Sent: Monday, July 21, 2008 6:59 AM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] material attributes of an object


Hi

i´ve got a problem concerning the material attributes of an illuminated
object

i want some of them to reflect only the ambient light, but not diffuse

i guess i can do it by setting the object diffuse color to zero but i don´t
know how to specify the material attributes of an object

any ideas???


  _____  

¡Atrévete con Abecedario, el juego del momento! Invita a tus contactos de
Messenger y demuéstrales lo que sabes demuéstrales lo que
<http://www.vivelive.com/abecedario> sabes 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080721/fa6b919f/attachment-0003.htm>


More information about the osg-users mailing list