Message: 9
Date: Mon, 23 Jun 2008 14:41:55 -0400
From: Gordon Tomlinson [EMAIL PROTECTED]
Subject: Re: [osg-users] Quick question: how to change the color of a
node.
To: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;
Hi,
simple case:
load node with no material (create yourself or delete material from .osg
file)
call getorcreatestateset on node to get stateset
add material to stateset
change material colour
more difficult case:
load node
write visitor to find material and change
even more difficult...
jp
Some possibilities
1) Could use a shader
2) You could apply a material color
3) You traverse the nodes scene graph, finds it geometry, retrieves the
color arrays and change their values
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of hui
Sent: Monday, June 23,
3 matches
Mail list logo