If you're referring to a "shadow", Java3D doesn't do that. It involves ray tracing 
which
isn't even contained in OpenGL(at least I think not). You can do it on your
own if you use immediate-mode rendering but it's a very lengthy calculation.

If you're referring to shading from directional lighting then you need to 
setLightingEnable(true) in
the Material object in the Appearance for that shape.

Jeffrey A. Kardatzke
[EMAIL PROTECTED]

-----Original Message-----
From:   Jonathan Rautaeschlein [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, December 16, 1998 10:59 AM
To:     [EMAIL PROTECTED]
Subject:        [java3d] shade problem java 3d


hi,

i got 3 branchgroups, one "floor", one cube, one for light, and add it to
another - but there is no shade on the "floor"; the cube is a little bit in
the floor. So what i'm doing wrong? Does the shade to be created by me or is
there any capability to set i forgot  - or do i have to do it my own ?
thanx
joni)

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to