Hi all,
i have an flt model that in Creator shows a structure similar to the following:
db
|
--->Default
|
--->sw01
|
--->First_Switch_Alternative
|
--> dof01
--> dof02
--> ...
|
--->Second_Switch_alternative
|
--> dof01_1
--> dof02_2
--> ...
I have loaded it in OpenSceneGraph and i have enabled switch and dof
nodes towards keyboards commands. At the moment I'm not capable of
implement the association dof - switch (i load them in an independent
manner).
Now i like to enable dof management of a switch only when it is
enabled. To do so i need to understand what is the relationship
between opensceneGraph nodes and SwitchSet index. When i enable switch
i specify an int representing the SwitchSet in the function void
setActiveSwitchSet (unsigned int switchSet).
Traversing the scenegraph i found a node with name
First_Switch_Alternative, another the name Second_Switch_Alternative,
ecc.. but I have not understood if there is a relationship between
these nodes and the unsigned int switchSet.
Another thing that i have not understood: is if there is a manner to
enable a switch with the name of the children?
Thanks in advance
Francesco Argese
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org