My initial confusion was: Should the shadows be cast ‘on’ something. But after reading about it, it’s just another mesh.
So, do I understand it correctly, that to ‘do’ shadows in JME, I could use a ShadowFilter (com.jme3.post.Filter
) added as a filter in a FilterPostProcessor
and then add that processor to the viewport. In the filter, I’d then override postFrame
and go through all casters/occluders, keeping track of and positioning the shadow-meshes correctly?
I would need to keep track of all the lights in this filter as well, in order to colour/tint the shadows correctly.