Link+SharedGroup

hi, ich tried to render 1 Shape3D at 2 different positions. Xith just draw it once. So I tried the Link-class and the SharedGroup. But it didn’t work either.

  1. I created my scene
  2. I put a TransformGroup (t1) at the scene
  3. and a second one (t2) at the scene, too
  4. I created a SharedGroup (sg) and gave it my Shape3D as child
  5. I put a Link under t1 and gave it sg
  6. and a second link under t2
    Now Xith only draws the Shape3D at the position that is located last.
    What am I gonna do?
    Thx 4 help, cya

check out Node.sharedCopy()

http://xith.org/javadoc/com/xith3d/scenegraph/Node.html#sharedCopy()

Will.

hi and thx.
for normal nodes it works well, but e.g. when I want to make a copy of a md2-model I can see 2 figures, but they always have the same animation at the same time :(.
Maybe I find a way to solve the prob.
If someone knows anythinh, pls tell me, thx, cu

You should create a new MD2ModelInstance instead of using shared node


copy = md2Model.getInstance();

[quote]hi and thx.
for normal nodes it works well, but e.g. when I want to make a copy of a md2-model I can see 2 figures, but they always have the same animation at the same time :(.
Maybe I find a way to solve the prob.
If someone knows anythinh, pls tell me, thx, cu
[/quote]
I’m writing a 3DS loader that does this, currently animation doesn’t work but once it does then sharedcopies will contain unique animation. You can still make a sharedcopy right now, but nothing will animate, this should be fixed soon. You’d have to use 3DS instead of MD2 though :frowning:
(link in sig)

hi & thx to all.
itistoday, pls hurry :slight_smile:
we need it for our college-project. Otherwise our professor will tear our bodies in small pieces :slight_smile:

When’s your stuff due? I think I might be able to finish it tomorrow (hopefully) :slight_smile:

:slight_smile: itistoday, no stress. it’s not that due. I just meant it would be great if u completed it somewhen in the near future. thank u for your engagement :]