Hello to all,
I hope someone out there can help me with this problem. Basically, I have built
a universe and add a shape3D using one of the primitives (Box, Cylinder, and so
on...) to my content branch. I have ensured, before adding it to the live scene
graph, that I have set all the capability bits to all the nodes involved.
However, after the shape3D object has been added to the live universe, my
attempt to read/write coloring attributes from the appearance of the shape3D
object resulted in Java 3D Run-time displaying the NotSetCapabilityException on
the Appearance node from which I was trying to read the coloring attributes. I
could, however, create a new Appearance node and use the setAppearance() of the
Shape3D object to set the new appearance for the shape3D object successfully.
The basic content scene graph minus the view branch can be shown here:
Universe Node
Locale Node
BranchGroup content node (all Capability bits set before becoming
live)
TransformGroup node (all Capability bits set before
becoming live)
BranchGroup Parent node for Shape3D Node (all Capability
bits set before live)
TransformGroup node (all Capability bits set
before live)
Shape3D object (all Capability bits set
before live)
[ Geometry node via addGeometry() - all
capability bits set before adding]
[Appearance node via addAppearance - all
capability bits set before adding]
[ColoringAttributes node via
addColoringAttributes() - all bits set before
adding]
I could getAppearance() from the Shape3D object but got the infamous exception
when I tried to read coloring attributes from the appearance node I obtained
earlier from the Shape3D object. I could write a new Appearance node via the
Shape3D object's setAppearance() without any problem.
Your help will be greatly appreciated.
-Veasna
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
[java3d] Got NotSetCapabilityException while trying to read coloring attributes on shape3D in a live scene graph...
HENG,VEASNA (HP-Corvallis,ex1) Wed, 19 May 1999 14:03:09 -0700
