David HALLE wrote:
> In the attached document there is a simple scene: a cone with a sphere
> over it. I put a directionnal light over those objects and was expected
> to see the shadow of the sphere on the cone. There is no shadow. Could
> tell me what's wrong or missing in my code?
Java3D does not implement shadows. Shadow casting is a technique
typically implemented in ray casting and ray tracing type applications
(ie non-realtime renderers) because of the computational complexity. It
doesn't lend itself to hardware rendering particularly well (unless you
like spend mega-dollars on your computer)
When a light is defined, it lights every object within its scope. You
can use this to control shadow and highlighting type effects, but it
won't give true shadows.
--
Justin Couch Author, Java Hacker
Snr Software Engineer [EMAIL PROTECTED]
ADI Ltd, Systems Group http://www.vlc.com.au/~justin/
Java3D FAQ: http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"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 subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/