Forum rules - please read before posting.

2.5D Tutorial 'Adding Shadows' issue

I'm having an issue with shadows not working. I've got a fresh install of Unity 2022.3.36f1 and I added AC and NaniNovel packages. I've been following the 2.5D tutorial to the letter (this tutorial). I actually made some comments on that video and was directed here.

When I dragged MatteShadow into the 'Wharf' Mesh Renderer, no shadows appeared in my game window. As far as I know I'm using the built-in render pipeline (screenshot of graphics settings below). I haven't messed with any project settings outside of the tutorial so it's all using default settings.

Graphics settings

Wharf Inspector

Hierarchy/Game/Scene

Background Inspector

Comments

  • Welcome to the community, @docark.

    It may be that the original shader code isn't quite right for the more recent version of Unity than the one it was originally written for - thanks for raising the issue here.

    I've updated the TutorialFiles package used by the tutorial with an amendment to the shader code - try re-downloading and importing it to see if that helps. You only need to re-import the MatteShadow material and shader files, to avoid overwriting any changes you may have made to the other files.

    I have noticed that there can be a difference in the shader when viewed in the Scene window vs the Game window. Do shadows appear in the Scene window? Though this should be the case by default, double-check also that the scene's Directional Light has shadows enabled.

  • edited August 2024

    Ok I got that new TutorialFiles package and only imported the MatteShadow material and shader. Unfortunately that didn't fix it for me. I do not see shadows in either game or scene windows. I checked the directional light to confirm that shadows are on.

    Game and Scene windows

    Directional Light

    Side note related to this forum. I'm unable to embed an image in these posts via the Image tool. There's no OK/Cancel buttons like the Links tool. Not sure if that's intentional or not.

  • edited August 2024

    Another side note: The new package shows the animation folder in there but it's not selected and does not have a checkbox to select it.

  • Got another issue and I'm putting it in this thread as I think it's related to the material issue. I'm in the 'Creating a Player' section of the tutorial. When i drag the Girl object into the scene, the wharf material turns white. You can see it happening in this video.

  • Thanks for the details.

    I suspect the "wharf turning white" issue is related to the original - there's something clearly screwy with the MatteShadow material in your project.

    Unfortunately, I cannot recreate either problem in Unity 2022.3 on my end. So far, I can't determine if this is an issue with the shader itself, or with Unity.

    Apologies for the hassle. Would you be able to PM me a .zip of your project? I think the only way I'll be able to get to the bottom of this would be to have a look at the project itself.

    I'm unable to embed an image in these posts via the Image tool. There's no OK/Cancel buttons like the Links tool. Not sure if that's intentional or not.

    Pasting the link into the box should be enough for it to become embedded. Which browser are you using?

    The new package shows the animation folder in there but it's not selected and does not have a checkbox to select it.

    Thanks - in my haste I missed a few key files by accident. I've corrected this now.

  • I am using google chrome. I send you a DM with a link to the project.

  • Thanks for the project.

    It seems this is down to the project's "Rendering Path" - the issue is gone in my copy your project if I open up the Graphic settings, and set the path from Deferred to Forward.

    I'll add a note to the tutorial about this requirement - thank you for your patience and help in tracking this down.

  • That fixed it! Thank you for figuring that out :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.