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?


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.

| improve this answer | |
  • \$\begingroup\$ This is quote from Oracle: "See the JavaFX 8 API documentation for more information." Getting Started with JavaFX 3D Graphics Is it inaccurate? \$\endgroup\$ – ajeh Nov 7 '13 at 15:08
  • \$\begingroup\$ 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? \$\endgroup\$ – Lorenz Lo Sauer Nov 7 '13 at 19:39
  • 1
    \$\begingroup\$ I never said I had such a link... \$\endgroup\$ – ajeh Nov 7 '13 at 19:43
  • \$\begingroup\$ Then please consider accepting this unfortunate situation / answer and in doing so move towards a middleware. My (aged) bookmark games-middleware.dev.java.net unfortunately doesn't seem to work anymore? Good luck. \$\endgroup\$ – Lorenz Lo Sauer Nov 7 '13 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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