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. Dismiss Notice

URP UNITY TUTO FOR RENDERER

Discussion in 'Universal Render Pipeline' started by vamosfa, Apr 14, 2020.

  1. vamosfa

    vamosfa

    Joined:
    May 15, 2016
    Posts:
    52
    Hi, I just left this comment in the next Learn Premium tutorial:
    Custom Render Passes with URP https://learn.unity.com/tutorial/custom-render-passes-with-urp#

    "Hey Unity! This awesome is only for LWRP, but the shaders do not work in URP, so it is not compatible with the recommended version 2019.3. You can probe it as the link to github you provide has shaders only compatible with LWRP, and they can not be updated automatically with Editor to URP. You have lot of negative votes in the Github section. Moreover, for any reason you can not download the files from Github, just copy the info from shaders, but you can not use the materials, so you can not make this tuto work in no way. Just take an eye on it as it is Premium content. Cheers!"

    I always used this renderer in al LWRP versions (2019.2 or before), but these shaders are not compatible with URP.
    I received this message regarding to ToonBasicOutline shader:
    Shader error in 'Toon/Basic Outline': failed to open source file: 'Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl' at line 22 (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_RGBM_ENCODING

    And I received this message regarding to SobelFilter shader:
    Shader error in 'Unlit/SobelFilter': failed to open source file: 'Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/SurfaceInput.hlsl' at line 19 (on d3d11)
    Compiling Vertex program with POSTERIZE
    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_RGBM_ENCODING

    This errors make the shaders do not work in their materials, the materials not working in Forward Renderer, and Forward Renderer not working in Pipe Line Asset.

    Despite the Github links are not available to download, the project link is in the Unity youtube video, also I will point again: it does not work in URP despite it is supposed to be for so in Unity Learn.


    I will appreciate any help to make this renderer work in URP.

    Thanks.
     
  2. erikabar

    erikabar

    Unity Technologies

    Joined:
    Jan 26, 2017
    Posts:
    36
    hey @vamosfa! Your error messages point to Lightweight package, however the master branch in this project has Universal RP package only (you can check that in the manifest.json file in the Packages folder).
    Perhaps something went wrong when you were cloning or upgrading the project from 2019.2?
    Please try to clone the project again, open with 2019.3.9f1 and upgrade the Universal RP package to 7.3.1 (which latest right now) in the Package Manager. You can find the full project here: https://github.com/Unity-Technologies/UniversalRenderingExamples
    I just double checked and it works for me.
    And let me know if you have any further questions!
     
  3. vamosfa

    vamosfa

    Joined:
    May 15, 2016
    Posts:
    52
    Hi erikabar thanks for fast replying as you solved my issue!

    I will add that for any reason the performance is the expected but not the way to achieve it. I explain:

    . Thanks to this link you provided https://github.com/Unity-Technologies/UniversalRenderingExamples/tree/release/2019.3 I can work in my project that was 2019.3.9f1 and 7.3.1 URP before asking, but by any reason, I can not set up the process myself and I tried for hours, so I will work on the template of the project. Maybe it is something related to Project Settings or PostProcess Data, I do not know but I used to set up myself in different projects the Outline Toon as in youtube videos, always ok. I guess one step is missing in the Learn Premium guide, that is why there are people in comments asking about it.

    Anyway, thanks!
     
  4. vamosfa

    vamosfa

    Joined:
    May 15, 2016
    Posts:
    52
    Hi @erikabar I guess I found the solution to make this process work in any URP without having to work on the template.
    From my point, it SHOULD be said in the Unity tutorial: the renderer set in Edit/Project Settings/Quality/Rendering, overlaps the renderer set in Edit/Project Settings/Graphics/Scriptable Render Pipeline Settings, so if in the Quality section there's a different renderer, this will be the renderer used by Unity, and in the tutor is only mentioned the second in priority: the one in Graphic section.
    Moreover, as in Unity versions previous to 2019.3 (first one to can use URP and so for this tutorial) does not exist this Rendering socket in the Quality section, it should be mentioned in the tutorial. That is why people comment they fail to set up the renderer.
    Say me if I am right.
    Thanks!!
     
    bruceweir1 and DJByun like this.