Search Unity

Question MARS Room X-Ray shader pink with URP 7.3.1

Discussion in 'Unity MARS' started by matUnity75, Jun 4, 2020.

  1. matUnity75

    matUnity75

    Joined:
    Dec 24, 2017
    Posts:
    2
    HI,
    is there a way to solve this problem ?

    SimEnvironment_Wall material was not upgraded. There's no upgrader to convert MARS/Room X-Ray shader to selected pipeline
    UnityEditor.Rendering.Universal.UniversalRenderPipelineMaterialUpgrader:UpgradeSelectedMaterials() (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Editor/UniversalRenderPipelineMaterialUpgrader.cs:37)

    Thanks
    Mat.
     
  2. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    669
    Looks like they need to write a URP/shadergraph version of the shader, as it's not one of the ones the auto-upgrader can work with.

    I have the same problem issue with URP 9.0.0 preview.
     
  3. JonathanNUnity

    JonathanNUnity

    Unity Technologies

    Joined:
    Sep 27, 2016
    Posts:
    14
    Hi, unfortunately we were not able to create an x-ray shader solution that works outside of the built in renderer. We are looking to improve Unity MARS's rendering compatibility with URP in upcoming releases. Till then you can apply the base material shader for the SRP you are using to not see the magenta shader error on the materials. If the walls are getting in the way of the view you can disable the Mesh Render component on that game object. Look in the MARS Panel -> Environment Hierarchy and find the Walls Game Object. You can also your the ">" to open the prefab for the environment and edit it that way.
     
  4. matUnity75

    matUnity75

    Joined:
    Dec 24, 2017
    Posts:
    2
    @JonathanNUnity :
    thanks, your answer is ok for the Walls object but what about the GeneratedSimulatedPlane(Clone) material, who is still pink. Where do you change the shader for the SimulatedPlaneMaterial ?
    Mat.
     
  5. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    297
    @matUnity75 The SimulatedPlaneMaterial Material is located inside the packages under
    Packages/com.unity.mars/Runtime/Materials/SimulatedPlaneMaterial.mat
     
  6. wintermuute

    wintermuute

    Joined:
    May 12, 2017
    Posts:
    16
    Since these materials are part of the package none of them are editable in the editor (Unity 2019.3.13). Any suggestions are how to change them so they are not pink with URP?

    EDIT ----

    For now, I have switched my project over to the built-in renderer, but since my project is targeting mobile platforms ideally I'll be able to convert it to URP in the future. Hopefully the MARS team gets the URP issue resolved sooner than later.
     
    Last edited: Jun 18, 2020
  7. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    297
    Did you try updating that shader with the shader upgrader that comes with URP?
     

    Attached Files: