Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

HDRP Template project not showing anything

Discussion in 'Editor & General Support' started by yemiskillz, Sep 26, 2018.

  1. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7
    Hello
    This is what I get whenever I choose the hdrp template even after upgrading the materials to hd and the light, the template displays no object or anything just the gizmos. Can HDRP.jpg any one pls help me with this? I'm using Acer Predator Helios 300.
     
  2. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    See that red line at the very botton? It means you have an error (or several of them) in your project! Which ones exactly, you can see in the Console Window (access it via Window > General > Console) :)

    Copy the content of the Console and post it here in the thread.
     
  3. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7
    There are a lot of error messages that popped up, here are some of them.




    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Direct_Fptl at Deferred.compute(77) (on d3d11)
    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Direct_Fptl_DebugDisplay at Deferred.compute(77) (on d3d11)
    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Direct_ShadowMask_Fptl at Deferred.compute(77) (on d3d11)
    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Direct_ShadowMask_Fptl_DebugDisplay at Deferred.compute(77) (on d3d11)
    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Indirect_Fptl_Variant0 at Deferred.compute(77) (on d3d11)
    Shader error in 'Deferred.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel Deferred_Indirect_ShadowMask_Fptl_Variant0 at Deferred.compute(77) (on d3d11)
    Shader error in 'lightlistbuild-clustered.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel ClearAtomic at lightlistbuild-clustered.compute(9) (on d3d11)
    Shader error in 'lightlistbuild-clustered.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel TileLightListGen_DepthRT at lightlistbuild-clustered.compute(9) (on d3d11)
    Shader error in 'lightlistbuild-clustered.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel TileLightListGen_DepthRT_MSAA at lightlistbuild-clustered.compute(9) (on d3d11)
    Shader error in 'lightlistbuild-clustered.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel TileLightListGen_DepthRT_MSAA_SrcBigTile at lightlistbuild-clustered.compute(9) (on d3d11)
    Shader error in 'lightlistbuild-clustered.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel TileLightListGen_DepthRT_SrcBigTile at lightlistbuild-clustered.compute(9) (on d3d11)
    Shader error in 'SubsurfaceScattering.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel SubsurfaceScatteringMQ at SubsurfaceScattering.compute(41) (on d3d11)
    Shader error in 'VolumetricLighting.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel VolumetricLightingBruteforceReprojHQ at VolumetricLighting.compute(36) (on d3d11)
    Kernel 'KMainTopRight' not found
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    ArgumentException: Kernel 'KMainTopRight' not found.
    UnityEngine.Experimental.Rendering.TexturePadding..ctor (UnityEngine.ComputeShader cs) (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.core@2.0.6-preview/CoreRP/CoreResources/TexturePadding.cs:20)
    UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..ctor (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset asset) (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@2.0.6-preview/HDRP/RenderPipeline/HDRenderPipeline.cs:232)
    UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.InternalCreatePipeline () (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@2.0.6-preview/HDRP/RenderPipeline/HDRenderPipelineAsset.cs:17)
    UnityEngine.Experimental.Rendering.RenderPipelineAsset.CreatePipeline () (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineAsset.cs:19)
    UnityEngine.Experimental.Rendering.RenderPipelineManager.PrepareRenderPipeline (IRenderPipelineAsset pipe) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:54)
    UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, IntPtr loopPtr) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:27)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    Kernel 'KMainTopRight' not found
    ArgumentException: Kernel 'KMainTopRight' not found.
    UnityEngine.Experimental.Rendering.TexturePadding..ctor (UnityEngine.ComputeShader cs) (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.core@2.0.6-preview/CoreRP/CoreResources/TexturePadding.cs:20)
    UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..ctor (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset asset) (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@2.0.6-preview/HDRP/RenderPipeline/HDRenderPipeline.cs:232)
    UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.InternalCreatePipeline () (at C:/Users/MEMORA/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@2.0.6-preview/HDRP/RenderPipeline/HDRenderPipelineAsset.cs:17)
    UnityEngine.Experimental.Rendering.RenderPipelineAsset.CreatePipeline () (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineAsset.cs:19)
    UnityEngine.Experimental.Rendering.RenderPipelineManager.PrepareRenderPipeline (IRenderPipelineAsset pipe) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:54)
    UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, IntPtr loopPtr) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:27)
    Shader error in 'HDRenderPipeline/Lit': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at line 356 (on d3d11)

    Compiling Vertex program
    Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
     
  4. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7
    The same thing is happening to the Lightweight template. I need help pls
     
  5. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    For some reason, the current path for the various #include lines is:
    "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"

    whereas before it was:
    "CoreRP/ShaderLibrary/Common.hlsl"

    Not sure if this is permanent or not.
     
  6. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7

    thanks for responding,
    should i move the whole files to the aforementioned directory?
     
    ediwinwang likes this.
  7. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Hmmm... I was getting the same "failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl" console error on one particular shader when using HDRP. In the shader code, I changed the one line:

    #include "CoreRP/ShaderLibrary/Common.hlsl"

    to

    #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"

    and the console error went away. For all the #include lines in the shader code that had the path "CoreRP/ShaderLibrary/", I changed them to "Packages/com.unity.render-pipelines.core/ShaderLibrary/".

    I didn't move any files.
     
  8. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7

    I'll give it try. Thanks
     
  9. yemiskillz

    yemiskillz

    Joined:
    Jul 10, 2018
    Posts:
    7


    i edited a lot of the files with the one you wrote up there but it didn't work, please can you do a screenshot of where the file you edited is located and the particular line of code you changed.

    Thanks alot
     
  10. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Not at my project computer so can't take any screenshots, but there's an example in the HDRP GitHub docs:
    https://github.com/Unity-Technologies/ScriptableRenderPipeline/wiki/Writing-A-Custom-Sky-Renderer

    In the above link, at the bottom of that page, the code for a skybox shader is given. You can see the #include lines about 7 lines down. When I tried to use that shader as is today, I was getting the console error:
    failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl'

    When I changed the 3 include lines in that shader to what I wrote several posts above, the error went away. I'm not sure if it's the same problem as what you have, but that's all I did.