Thanks for the suggestions, it works great.
Jason
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and
Jason Cheatham wrote:
> So, if you wanted to allow the user to add spheres to the scene in
different
> locations, then what is the best way to handle this?
Generally, just stick a BG on the top of whatever you want to add. So in
this case you would have something like
WorldBG
You can always add a TG to a new BG before you add the BG to the scene.
Jason.
>>> [EMAIL PROTECTED] 11/09/2002 15:32:19 >>>
I've seen some posts to the list before about how you can dynamically
add BranchGroups to the scene but not TransformGroups. So, if you
wanted to allow the user to add sp
I've seen some posts to the list before about how you can dynamically add BranchGroups
to the scene but not TransformGroups. So, if you wanted to allow the user to add
spheres to the scene in different locations, then what is the best way to handle this?
Should you add say 100 TransformGroups
You must put your geometry under a BranchGroup and then you can remove
and add BranchGroup; for starter, see
http://java.sun.com/products/java-media/3D/1_2_api/j3dguide/GroupNodes.doc.html#
49464. Or you can use the Switch class to turn objects rendering off and on;
for an example see
htt
Hi John,
Thanks for your speedy reply however I'm unsure as how to
modify the contents of the branch group... ie modifiy a child shape in one
of my transformGroups, which belongs to a branchGroup.
What i'm trying to do is allow the user to click a button, add a cube, so
its visible
Quoc,
That's correct, you can only detach BranchGroups. If you want to remove
something else you have to detach the BranchGroup first, then modify it,
then attach it again.
- John Wright
Starfire Research
Quoc Huynh wrote:
>
> Hi All,
>
> I'm new to java3d, I'm having trouble allowing
Hi All,
I'm new to java3d, I'm having trouble allowing the user to add and remove
objects in the scene. I'm not sure how to remove a child object from a
transform group. Whenever i use the removeChild() method, i get an error
message saying that I can only remove BranchGrouyp objects... o