Newbie need help ?

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 :

  1. 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.

  2. 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?

  3. I’d like to see the example project not the basic but something similar to me, Can anyone give me a suggestion?

sorry for my bad english.

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.

Well, I can’t advice on that really, as I never tried odejava myself, but William Dennis (do search for his posts, see http://www.java-gaming.org/forums/index.php?topic=10386.0 for instance) was successfully using it in his projects (see http://williamdenniss.com/lineriders/ for instance).
Anyhow, as far as my understanding goes you can always do you own mapping!..

your english is good enough, not much worse that mine ;D, so no worries

Bohdan.

Thank you for your help :wink:

I do not understand the scennegraph concept very well, so I don’t know that the other APIs cannot do this too.

For my english, I think it’s bad because I cannot understand some pharse of your reply,
but your suggestion is enough for me to move on.

Thank you.

Scenegraph is a hierarchy of objects that form a tree

base------body--------arm 1
| |------------arm 2
|
---------legs --------leg 1
|-----------leg 2

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”

To get a better appreciation of this and to view some truely well written tutorials look at http://fivedots.coe.psu.ac.th/~ad/jg/ch115/index.html for an example of what you want to do.

look at http://fivedots.coe.psu.ac.th/~ad/jg/ for additional information

Thank you for your help.
I still try it.
But I have another hard work :-[

You said “phrase” instead of “sentence”. Are you french ? I can answer you in french.