• Unity
  • Shadows not casting onto spine objects

Related Discussions
...

Hi Harald,

Spine 4.0.64
com.esotericsoftware.spine.urp-shaders-4.0-2019.1

I noticed that spine objects don't receive shadows anymore. I'm not sure why this is happening :scared:

I was reading this thread and enabled the "add normal" bool. But the shadows still didn't get cast onto spine mecanim objects.
http://en.esotericsoftware.com/forum/Unity-Receive-shadows-14298

Can you help? :wounded:



Thanks!

I'm sorry to hear you're having trouble. Your settings shown in the attached screenshots seem to be no problem as far as I have tried with Spineboy. Could you please send a minimal Unity project to us via email so that we can see the problem?: contact@esotericsoftware.com
Please briefly mention this forum thread URL in the email so that we know the context. Then we can have a look at what's going wrong.

Misaki a écrit

I'm sorry to hear you're having trouble. Your settings shown in the attached screenshots seem to be no problem as far as I have tried with Spineboy. Could you please send a minimal Unity project to us via email so that we can see the problem?: contact@esotericsoftware.com
Please briefly mention this forum thread URL in the email so that we know the context. Then we can have a look at what's going wrong.

Hi Misaki

I was preparing the package and made a new scene. In the new scene the shadows project properly . :think:

I'll do a bit more experimenting and see what was causing this weird bug.

Thanks for the help!

10 jours plus tard

The package com.esotericsoftware.spine.urp-shaders-4.0-2019.1 has not received any updates for quite some time (the last update was published on 2022-05-25), we only updated 4.1 and 4.2-beta packages recently. So I assume that your issue indeed lies elsewhere.

15 jours plus tard
Harald a écrit

The package com.esotericsoftware.spine.urp-shaders-4.0-2019.1 has not received any updates for quite some time (the last update was published on 2022-05-25), we only updated 4.1 and 4.2-beta packages recently. So I assume that your issue indeed lies elsewhere.

Hi Harald

The problem reared it's ugly head again.. I don't know what is causing it, but I uploaded a UNITY package and emailed you guys. Can you please take a look and let me know what I'm doing wrong? :wounded:



Thanks


I tried a test with a brand new URP project. Same result, no cast shadow on spine boy.. I'm not sure why it was working before for me. :wounded:


I also emailed this project to the Spine email.

Any help would be appreciated.

The issue you are facing is already fixed on the 4.1 branch, but not on 4.0, see this issue ticket:
https://github.com/EsotericSoftware/spine-runtimes/issues/2098

If you don't want to upgrade your project to the 4.1 runtime, you should be able to either manually integrate the changes of this commit into your project, or simply use the file content at the state of this specific commit, as it's the first commit on the 4.1 branch.

Ok I'll try to edit the shader first. Production is locked down, so I'm trying to avoid making big updates to tools. I'll report back if anything fails to turn out.

Thanks again !

You're welcome. It should be sufficient to replace the content of the single shader include file with the content linked above.