Bruno Sousa Caiado wrote:

>     The problem occurs when i rotate the scene.At a certain point
> (when the square�s front face is not facing me..) i stop seeing the
> square!! It only appears back again when i rotate it back to the
> initial position.
>     I would to see the square all the time (even without ligths).
>     How can i do this and what am i missing?

This is called back face culling. When you define a polygon, by default,
you only show one side of it - it is not a 2 sided object. The side that
is shown, is the one where the normal points away from the surface. The
other side is not shown.

To have both sides showing, you need to tell the class to use both
sides. This can be done by setting CULL_NONE in PolygonAttributes.

--
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                             [EMAIL PROTECTED]
rbuzz.net                           http://www.vlc.com.au/~justin/
Java3D FAQ                                 http://www.j3d.org/faq/
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

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