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

Question Oculus Quest 2 URP Decal Projector shows in play mode but not in build

Discussion in 'VR' started by unity_sMk-smw1krQD8g, Jun 6, 2022.

  1. unity_sMk-smw1krQD8g

    unity_sMk-smw1krQD8g

    Joined:
    May 23, 2022
    Posts:
    1
    Hi
    I'm making a VR game for the Oculus Quest 2 and I'm using the Decal Projector to make a blob shadow with a image for my character.
    The thing is when I'm trying it in play mode everything is fine and it does what I want but when I build it. Nothing show. Everything else works fine but the blob shadow doesn't appear.

    I'm probably doing something wrong but I don't know what...

    I'm using Unity 2021.3.1f1.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,242
    In the URP decal feature, change the method and try again. Screen space worked on android for me but the other did not
     
  3. JanFuri

    JanFuri

    Joined:
    Jan 23, 2022
    Posts:
    6
    Any idea?
     
  4. nilagard

    nilagard

    Joined:
    Jan 13, 2017
    Posts:
    77
    Last time i checked the decal projector is not really supported by Unity VR. And if you magically get it to work it would in most cases only show for 1 eye when using Multi Pass in the stereo rendering mode selection. There is however a fix to this, but sadly it's not free. You can download the fix in the asset store using Lux URP Essentials. Should work right out of the box.
     
    JanFuri likes this.
  5. juan-jo

    juan-jo

    Joined:
    May 15, 2010
    Posts:
    162
    I think it forces you to use depth texture, which has a huge performance impact in Quest
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,242
    If you use the latest version and force prepass it might be a bit better
     
  7. Cloudwalker_

    Cloudwalker_

    Joined:
    Jan 3, 2014
    Posts:
    130
    Has the performance with Quest 2 URP decals been fixed yet?
     
  8. BRGames_

    BRGames_

    Joined:
    Jun 24, 2021
    Posts:
    18
    In URP Renderer settings I'm using:
    - Depth texture mode -> "Force Prepass"

    And in the Decal feature:
    - Technique -> "Screen Space"

    I hope this might help fixing the issue with this shader too.
    (Testing it today with Unity 2021.3.12f it is working without any problem)
     
    beard-or-die likes this.