J�rgen Vansteelant wrote:

> Hello,
>
> I've written a vrml writer for my application but I have some problems with
> my Appearance. If anyone would like to check it out , I've putted the java
> file in an attachment.
> My output is:
> CapabilityNotSetException: Appearance: no capability to get
> transparencyAtrributes
> he stops at line 314( VrmlWriter.writeAppearance)
>
>

The simple answer is that you are missing the
ALLOW_TRANSPARENCY_ATTRIBUTES_READ capability.  But the real question I
think is how do you walk a scenegraph and read all its values.  For this
you will need to make the scenegraph non-live.  This can be done by
detaching the main branchgroup from the locale.

If you are using SimpleUniverse then you could do this:

Locale loc = universe.getLocale();
loc.removeBranchGroup(sceneRoot);


where universe is a SimpleUniverse and sceneRoot is the BranchGroup
containing your scene.

Then you can read/write all values in the scenegraph.


--
Alan Hudson
President: Yumetech, Inc.                      http://www.yumetech.com/
Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/

===========================================================================
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 include in the body of the message "help".

Reply via email to