Hello there,
Let's say I want two cars in the scene. What I currently do is I load the car
file once, but I give it two matrix transform parents, like so:
http://imgur.com/kuSBu.gif
This works well for me (the small graph stemming from the word 'car' is just
there to emphasis that the car is
Frank Sullivan wrote:
But I want to make the wheels look as though they are turning as well. I
accomplish this with a simple texture matrix. I simply find the node that
represents each wheel, and I add a texture matrix to each of them that will
slide the s/t coordinates of the wheels' textures
On 14 May 2010 22:18, Paul Martz wrote:
> Frank Sullivan wrote:
>
>> But I want to make the wheels look as though they are turning as well. I
>> accomplish this with a simple texture matrix. I simply find the node that
>> represents each wheel, and I add a texture matrix to each of them that will
Hi Frank,
I you find that you need to use deep copy, then remember that it is
possible to deep copy the state sets only and share everything else.
This is also useful of you want your cars to have different
colors/textures as well:
Ref:http://www.openscenegraph.org/documentation/OpenSceneGra
The way how it is done in the simulator of my client is, to have the body
part od the vehicle shared, and the movable parts (the wheels) separate.
When you load the model you can find the parts you want to control and
attach to a separate scenegraph so you can control them individually
-Nick
On S
Brilliant ideas! Thanks everyone!
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27915#27915
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/
6 matches
Mail list logo