Hi Alejandro,

   When  Box redbox = new  Box(.3f,.3f,.3f, ap0);

is used, the primFlags is set to GENERATE_NORMALS
by default. For other constructor, should add
GENERATE_NORMALS if lighting is used.
i.e.

  Box box = new  Box(.3f,.3f,.3f,
   Box.ENABLE_GEOMETRY_PICKING|Box.GENERATE_NORMALS
   ,ap0);

- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.

>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>Date: Tue, 28 Aug 2001 17:54:05 -0700
>From: Alejandro Terrazas <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Possible bug in Box class
>To: [EMAIL PROTECTED]
>
>Hi-
>
>If I specify capability bits in the Box constructor, I lose the effects of
>the Appearance.
>
>For example, when I construct a Box with
>
>   Box box = new  Box(.3f,.3f,.3f, Box.ENABLE_GEOMETRY_PICKING,ap0);
>
>The box has no Appearance.
>
>When I do:
>
>   Box redbox = new  Box(.3f,.3f,.3f, ap0);
>
>I see the Appearance.
>
>I also don't see the Appearance if I do:
>
>  Box redbox = new  Box(.3f,.3f,.3f, Box.ENABLE_GEOMETRY_PICKING |
>Box.ENABLE_APPEARANCE_MODIFY,ap0);
>   redbox.setAppearance(ap0);
>
>
>Thanks--
>
>Alex
>
>===========================================================================
>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