[JAVA3D] getParent question

2003-09-14 Thread dafna gordon
Hi All,   i have a scene which contains many spheres. every Sphere is a child of a TransformGroup, and everyTransformGroup is a child of a BranchGroup which is then compiled and added to the simpleUniverse. i save my spheres in hashTable which i then use in another method. in the other method

Re: [JAVA3D] getParent question

2003-09-14 Thread Serge Bernier
Hey you have to set the capability of the BranchGroup and the TransformGroup. To have access to all the TransformGroup you have to write: TransformGroup TG = new TransformGroup(); TG.setCapability(TransformGroup.ALLOW_CHILDREN_READ); TG.setCapability(TransformGroup.ALLOW_CHILDREN_WRITTE); and f

Re: [JAVA3D] getParent question

2003-09-14 Thread dafna gordon
Hi serge, i already did that. but still i can't get the parent (i want to retrieve the TransformGroup from the Sphere). what else should i do? thanks Dafna - Original Message - From: "Serge Bernier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 5:10 PM Subj

Re: [JAVA3D] getParent question

2003-09-14 Thread Serge Bernier
What is the Exception exactly? Selon dafna gordon <[EMAIL PROTECTED]>: > Hi serge, > > i already did that. > but still i can't get the parent (i want to retrieve the TransformGroup from > the Sphere). > what else should i do? > > thanks > Dafna > > - Original Message - > From: "Serge B

Re: [JAVA3D] getParent question

2003-09-14 Thread dafna gordon
RestrictedAccessException . the explanation for throwing the exception is: if this object is part of live or compiled scene graph. i tried doing detach but it didn't solve the problem. - Original Message - From: "Serge Bernier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Se

Re: [JAVA3D] getParent question

2003-09-14 Thread Serge Bernier
Did you have set the capability of the sphere primitive to??? First things I would do is to save the TransformGroup in the hashtable insted of the sphere. Then call the getChild() method to get the sphere. Serge Selon dafna gordon <[EMAIL PROTECTED]>: > RestrictedAccessException . > the expla

Re: [JAVA3D] getParent question

2003-09-14 Thread dafna gordon
what kind of capability do i have to set for the sphere? - Original Message - From: "Serge Bernier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 5:41 PM Subject: Re: [JAVA3D] getParent question > Did you have set the capability of the sphere primitive to?

Re: [JAVA3D] getParent question

2003-09-14 Thread Serge Bernier
try: Sphere sphere = new Sphere(aRadius); sphere.setCapability(Sphere.ALLOW_CHILDREN_READ); check this link more info : http://javalab.chem.virginia.edu/lab3d/docs/external/java3d/com/sun/j3d/utils/g eometry/Sphere.html Serge Selon dafna gordon <[EMAIL PROTECTED]>: > what kind of capability

Re: [JAVA3D] getParent question

2003-09-14 Thread dafna gordon
Serge, tried it, it didn't work. i'm trying now the getChild(). Thanks a lot for all your help. Dafna - Original Message - From: "Serge Bernier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 5:48 PM Subject: Re: [JAVA3D] getParent question > try: > > Sph

[JAVA3D] AWT or SWING with J3D ?

2003-09-14 Thread Aaron Lim
Hi ppl!   I'd like to know if Java 3D applications work better with the regular java using AWT applications or swing? Is there any sample program online that uses the desktop menu feature with an integrated Java 3D feature available online?   I'm developing a similar application with a simple anima