Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help with BOOK OF THE DEAD DEMO

Discussion in 'Editor & General Support' started by joshwren, Sep 7, 2018.

  1. joshwren

    joshwren

    Joined:
    Apr 2, 2018
    Posts:
    9
    I've downloaded the Book of the Dead environment demo and whenever I import any prefabs it puts a bright pink color instead of the material. I would like to be able to interact with this environment and use some prefabs I already have built. Can someone guide me on how to make my existing prefabs cooperate with this environment. I'm sure its something fairly easy, but I'm new to unity and could really use some guidance.
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,153
    What version of Unity are you using? Book of the Dead requires 2018.2 or higher
     
  3. joshwren

    joshwren

    Joined:
    Apr 2, 2018
    Posts:
    9
    Thanks for your response Jeff

    Currently on version 2018.2.6f1

    I can see the environment just fine and can move the trees/grass/sticks etc. What I would like to do is drop in prefabs that are either free from the store or that I have created and use them with this environment. When I drop my prefabs into a totally different Project the materials all come thru just like normal. When i put the same prefab into this environment it shows the bright pink for the materials. It auto switches any existing prefab to this bright pink.

    I really just want to know if this is a setting or if i can resolve this, because I would love to experiment more with my prefabs in this environment.
     
  4. joshwren

    joshwren

    Joined:
    Apr 2, 2018
    Posts:
    9
    I am getting these errors as well I'm not sure if they will help you see what the issue is?
     

    Attached Files:

  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,153
    You will need to look at the shaders these prefabs are using.
     
  6. joshwren

    joshwren

    Joined:
    Apr 2, 2018
    Posts:
    9
    the shaders aren't an issue in any other project I put them into. I have even re exported them from C4D to ensure the textures weren't messed up. If i drop them into any other existing project or new project the shaders all come thru no issue. Do they just not want people using prefabs in this environment or is it just an error?
     
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,153
    It looks to be an error, as "they" want you to use the environment! Can you spot the issue in the shader compilation? I believe the environment does put up a warning about this, if I recall.
     
  8. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    1,915
    Ignore those warnings (errors are red, by the way). They're not the cause of why your objects are rendered pink.
    Keep in mind that the 'Book of the Dead' environment uses a customized version of the HDRP, so the Shaders are likely some customized ones, too... Pick a working asset from the scene and see what Shader is it using.
     
  9. tcourbet

    tcourbet

    Joined:
    Oct 5, 2017
    Posts:
    46
    Hi,

    I've been trying to open Book of the Dead in Unity 2018.3.0b12 and I seem to have a few errors which prevents from seeing anything in the demo scene. (see attachment)
    I've tried in Unity 2018.2.18f1 and I have no problem at all. Anyone knows what the problem is? (for info I've tried reimporting a few times and it's a blank project)

    Thanks in advance!

     
    Gabriel_SG, ajsh and emir3100 like this.
  10. kev42100

    kev42100

    Joined:
    Apr 17, 2010
    Posts:
    56
    Same problem, like tcourbet. Exact same errors.
    I started with an empty 3D template.

    And even with the ShaderGraph HDR demo (butterfly).
    I have a GTX 970 with driver updated.
     
  11. Gabriel_SG

    Gabriel_SG

    Joined:
    Apr 7, 2017
    Posts:
    198
    Having the same problem in 2018.3.6f1 (Currently latest build).
    I suppose the custom version of the HD RP is it using is simply not compatible with 2018.3+
     
  12. tcourbet

    tcourbet

    Joined:
    Oct 5, 2017
    Posts:
    46

    Actually I managed to open it in 2018.3+

    In the DepthOfFieldAutoFocus.cs file, in the lines 53 and 57, change:

    [Min(0.1f)] to [UnityEngine.Rendering.PostProcessing.Min(0.1f)]

    That did the trick for me!
    (I didn't come up with that, found it somewhere online but forgot to update the answer here, sorry!)
     
    Gabriel_SG likes this.
  13. Gabriel_SG

    Gabriel_SG

    Joined:
    Apr 7, 2017
    Posts:
    198
    That fix worked brilliantly! It's now working fine in 2018.3.6f1. Thanks for posting the fix (even though it was from somewhere else). I'm sure that will help many of us looking in here for help. :)
     
    tcourbet likes this.
  14. Brewmeister90

    Brewmeister90

    Joined:
    Apr 19, 2019
    Posts:
    1
    How do you implement those script changes? I changed the lines in Visual Studio, and then what? Save and reload Unity scene... I'm new to Unity and Visual Studio.
     
  15. Gabriel_SG

    Gabriel_SG

    Joined:
    Apr 7, 2017
    Posts:
    198
    Yes. Save and reload. but you probably already know that.
     
  16. RustyCarbon

    RustyCarbon

    Joined:
    Dec 29, 2019
    Posts:
    1
    Hmm.. 4 errors? You are cute guys.
    Annotation 2020-08-19 143829.png
    I just opened it and it filled my screen with errors. I have no idea what to do.
     
  17. Gabriel_SG

    Gabriel_SG

    Joined:
    Apr 7, 2017
    Posts:
    198
    Check that you are using the latest version of HDRP for your version of Unity.
    Then under Edit tab -> Render Pipeline, select Update HDRP materials to Latest Version

    upload_2020-8-20_17-58-5.png

    Start with that. :)
     
  18. Gabriel_SG

    Gabriel_SG

    Joined:
    Apr 7, 2017
    Posts:
    198
  19. traitorgamingop

    traitorgamingop

    Joined:
    Sep 6, 2020
    Posts:
    1
    will it also workfor non hdrp files \\
    \\
     
unityunity