First 3D Game: Advanced Tutorial — Shadow problem

Hi! I’m in stuck with the tutorial part about shadows.
I try to follow all the steps but here is the problem:

  1. It seems like some properties have different naming this days.
  2. I can’t get the result they show: there is a shadow that casts behind the main character (Capsule). I can’t see the same result.

I can imagine the tutorial maybe old. But, unfortunately, I don’t have enough experience to fix such things on my own. Can you help me? What options I must turn on/off to see the same shadow behind the Capsule as in the tutorial?

  • I’ve turned ON Body — cc.MeshRenderer — Dynamic Shadow Settings — Cast Shadow
  • I’ve adjusted Main Light — Node — Rotation just as in tutorial (-10, 17, 0)
  • I’ve managed Scene — Shadows properties like this:

Enabled = true
Type = Planar
Shadow Color = 191919
Plane Direction: 0, 0, 1 (I hope this property’s just the same as Normal in tutorial)
Plane Height = -1 (I hope this property’s just the same as Distance in tutorial)
Plane Bias = 1 (I don’t know what that property mean)

Feel free to ask me for any additional information I can give you to clarify what is going on at my Scene. And thank you for your time.

Creator: 3.8.4

Well, I have to answer this question myself. After several tests I suddenly found the answer.

To turn on shadows you have to go to Main Light — cc.DirectionalLight — Dynamic Shadow Settings and check Shadow Enabled.

The problem was that when you turn on Planar shadows in Scene settings THERE IS NO such checkbox to turn on shadows in Directional Light settings. The whole block called Dynamic Shadow Settings is missing.

To see it you have to choose ShadowMap option in Scene settings (cc.ShadowInfo — Type). Just after that you can go to Directional Light settings and turn on shadows. Than you can go back to Scene settings and choose Planar shadows.

I think it is a bug.

Platform: MacOS
Creator: 3.8.4