Adding shapes at runtime

Hello fellow programmers,

I'm also new to j3d, and I have a question about the creation of shapes at runtime. I heard it's possible to do this via a BranchGroup object.

Now, the shapes I would like to add are lines, and they have to be positionned exactly. To position them on the coordinates I want, I'm using a TransformGroup, so my BranchGroup has a TransformGroup child, which has the lines as children.

So now, after I added the BranchGroup to the SimpleUniverse, how do I have to add more positioned lines to the universe?

The idea is a 3d mapping program, which adds lines at runtime.

Any help would be greatly appreciated.

Thanks

[683 byte] By [Dytea] at [2007-11-27 5:40:55]
# 1

I'm sorry for bothering, I found a good reference page myself

http://archives.java.sun.com/cgi-bin/wa?A2=ind0307&L=java3d-interest&F=&S=&P=21679

describing several possibilities to dynamically add objects to a scene.

Apparently it's not that evident in java3d.

Cheers now

Dytea at 2007-7-12 15:17:53 > top of Java-index,Security,Cryptography...