I guess I don't understand how you are telling me I should control the
transparency of my objects.
I need to be able to adjust the transparency of *all* my objects. As you
interact with the program you can adjust the transparency value of any one
of many objects you select.
For example, I have a "solid" sphere. You can pick the sphere and change
its transparency from, 0.0f to 0.5f to reveal that there is a small "solid"
cube inside the sphere. You can then pick the cube and change its
transparency to reveal that there is an octahedron inside the cube. So, if
I am not allowed to use
TransparencyAttributes TA = new
TransparencyAttributes(TransparencyAttributes.NICEST, 0.0f);
A.setTransparencyAttributes(TA);
with appropiate capability set to allow for transparency value changes,
then how do I control the transparency of each object independently of all
the others?
Bob Gray
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 24, 1999 12:30 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Major Problem
>Date: Tue, 24 Aug 1999 11:47:09 -0400
>From: Bob Gray <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Major Problem
>To: [EMAIL PROTECTED]
>Here is the code example to be put in 3 files. Sorry its so big. I don't
>yet understand Java 3D enough to know exactly how to cut it done further.
[snip]
> TransparencyAttributes TA = new
>TransparencyAttributes(TransparencyAttributes.NICEST, 0.0f);
> A.setTransparencyAttributes(TA);
The problem is that you are using transparency, which turns off
Z-buffer writes by default. You can control this behavior with the
View.setDepthBufferFreezeTransparent() method. Better still, don't
enable transparency for those objects that are not transparent (i.e.,
transparency value is 0.0).
--
Kevin Rushforth
Java 3D Team
Sun Microsystems
[EMAIL PROTECTED]
===========================================================================
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".