I have not used setVisible().

The Switch node approach I use all the time.  It mostly works, but I have
run into problems when the Switch is part of a SharedGroup and I add
new/more nodes to the SharedGroup.  Seems the Switch "forgets" what its
settings are so what I have turned off becomes visible.

I have had lots of problems getting TransparencyAttributes to "work".  It
functions according to spec, I guess, but that doesn't mean it works
*easily* the way one would like.  For example, setting an object's
appearance to be completely transparent makes the object disappear, but can
leave a big black nothing in the scene.  That is, what is behind the
"transparent" object is not coming through the "transparent" object.  So you
might have a lot of "adjustments" to make to the scene to make in  look
correct.

Cheers,
Bob Gray

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:JAVA3D-INTEREST@;JAVA.SUN.COM]On Behalf Of Andrew Davison
Sent: Tuesday, November 05, 2002 9:13 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Invisibility Differences


Dear All,

There seem to be three ways to make something 'invisible':

* use setVisible() on its rendering attributes
* use setWhichChild() on a Switch above the shape
* use TransparencyAttributes

I was wondering what differences there are between these approaches,
if any?

- Andrew

----------------------------------------------------------------------------
-
Dr. Andrew Davison             E-mail: [EMAIL PROTECTED]
Dept. of Computer Engineering  Fax: +66 74 212895 (then 201 after office
hrs)
Prince of Songkla University      Tel: +66 74 211030 x2240 (then x316)
Hat Yai, Songkhla 90112, Thailand  or: +66 74 212895 x316
http://fivedots.coe.psu.ac.th/~ad

===========================================================================
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".

===========================================================================
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