Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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 games-middleware.dev.java.net unfortunately doesn't seem to work anymore? Good luck. –  Lo Sauer Nov 7 '13 at 19:51

Your Answer

 
discard

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.