Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a scene with an added point light the shapes are not casting shadows on each other. Is anything required to cause them to cast shadows?

share|improve this question
up vote 2 down vote accepted

There is nothing in the latest distribution of JavaFX that would suggest a 3D shadow middleware being incorporated in Java3D. See here for the reference. The DropShadow classes are unrelated.

Java3D is not in the business of implementing game/model engine implementations for you. Light and shadows are among the most complex topics in 3D graphics programming, and the chosen algorithm should meet your task requirement.

Here would be a code-start for the absolute simplest of cases.

enter image description here

I hope this helps.

share|improve this answer
This is quote from Oracle: "See the JavaFX 8 API documentation for more information." Getting Started with JavaFX 3D Graphics Is it inaccurate? – ajeh Nov 7 '13 at 15:08
Interesting, I saw that mentioned in the JavaOne 2013 Conference. But that is very recent -i.e. only weeks ago. Still, please provide me with a link that made you think that 3D shadows are an inclusive feature? – Lo Sauer Nov 7 '13 at 19:39
I never said I had such a link... – ajeh Nov 7 '13 at 19:43
Then please consider accepting this unfortunate situation / answer and in doing so move towards a middleware. My (aged) bookmark unfortunately doesn't seem to work anymore? Good luck. – Lo Sauer Nov 7 '13 at 19:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.