I have created a demoscene to learn the abilities of JME3. In scene I have added a DirectionalLight and a SpotLight (Torchlight in the camera view direction oriented). But I see only shadows from the DirectionalLight. See the screenshot:
@capdevon It doesn’t affect on the shadows. It affects only on the position and direction of the spot light source. The light from the SpotLight makes only yellow circle (see screenshot) but no shadows, like from the DirectionalLight.
The shadows depend on the position, direction and the angles of the SpotLight. Your SpotLight configuration code snippet is not in a continuous synchronization update cycle with the camera, so I can assume that your character is far away from the light source and that’s why you don’t see the effects of his shadow on objects.
Take a look at this demo to see if there are any errors in your configuration.
Sorry, it was my mistake. I have tried to get shadows also in an another project where my spot light source was too far away from the nearest wall and the performance of the directional light was too high and the spotRange was not enough to shot to the nearest wall. As the result - I have not watched the shadows. In this project I have found the shadows. Thanks. And I have changed the spotRange in my another project and have received the shadows also there. Thank you very much!