Hi everyone,
Finished the Zombie Tutorial Survival shooter today.
Everything looks fine and exported to an EXE file . No problems.
Noticed one glitch though. The shadows for the enemies do not seem to be casting. Anyone have any ideas how to fix this.?
The only shadowing they have appears to be from the tips of their ears.
I am using unity 5
Thnaks for the reply.
This is one of the first things i had to switch off due to Shadow errors causing the scene to look really dark.
Would it make any difference if i rebake the scene as the last time i baked was before the enemies were placed in the level?
Or is my understanding of baking well off?
Wouldnât hurt to try. Although baking is typically done for static objects. The problem lies somewhere else. This only happens on the .exe - but works fine in the editor?
Sounds like a mix of quality settings removing shadows and some part of the upgrade process. First step - switch on continuous and let the scene bake. If its too dark then try tweaking the ambient settings in the Lighting panel or try increasing the intensity of the directional lights slightly til it looks how you want it to. But check Edit > Project Settings > Quality to ensure youâre building to a setting that includes shadows on lights.
Go to Project\Materials\ and see ZombunnyMaterial.
Change Shader to âLegacy Shaders/Bumped Specularâ from âcustom/Rim Lit Bumped Specularâ at Inspector tab.
(I just found that PlayerMaterial shader was legacy shaders/bumped specular.)
Do it same at ZombearMaterial and HellephantMaterial.
That might be a good solution. The âcustom rim lit bumped specâ is based on the legacy bumped spec. You could also try using the standard shader, and see how well that works out.
The custom shader I wrote in 4.6 isnât compatible with the many changes to rendering and shadows introduced since 5.0 launched, so Elaha and Adam are on the money with whatâs causing the lack of shadow-casting. Good catch! Hopefully we can get a 5.0 version out soon so people stop hitting weird little backwards-compatibility issues like thisâŚ