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
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
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
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
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
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
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?
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
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
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
10 matches
Mail list logo