I’d like to build the robot simulation using xith3d and odejava when I try to find the example for xith3d and odejava, I have found only basic example, so I’d like to know :
How can I build robot by xith3d ? I hava a problem that xith3d is not allow to add the same node to different parent. But I need the robot that can move at any joint and the other joint will move too.
If I build graphic from xith3d, Are they can be integrate to odejava ? I have seen the example that map cube in xith3d to geombox in odejava, but if I use my own shapes.Can I still map them from xith3d to odejava?
I’d like to see the example project not the basic but something similar to me, Can anyone give me a suggestion?
Well, the fact that you can’t add same node to different parents in Xith surelly doesn’t do any limitation for you.
BTW, have you seen that possible in other APIs? … just sounds strange to me such a “feature” because it is braking my understanding of scenagraph on its parent-to-child relations… ???
Anyhow, if you have on the mind “sharing the node” in the sence of sharing the geometry & appearance to avoid extra memory allocation xith’s node.sharedCopy() (or Shape3D.sharedCopy()) will do the trick for you.
The advantage is that transforming, positioning, rotating etc affect all of the children underneath the transform node. If the base node was repositioned all of the leg/arm nodes would like wise be repositioned. So the entire model could be moved by manipulating a single node… The reason a child node is restricted to a single parent is to reduce conflicts when performinfgmanipulations. If node “foot 1” was a child of “body” and of “legs” which parent node controls the position of “foot 1”