Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    5,251
    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:
    7
    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:
    5,251
    If you use the latest version and force prepass it might be a bit better
     
  7. Cloudwalker_

    Cloudwalker_

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

    BRGames_

    Joined:
    Jun 24, 2021
    Posts:
    20
    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.
  9. imjusthere

    imjusthere

    Joined:
    Oct 12, 2012
    Posts:
    72
    Is there an update to this? I'm using Unity 2022.3 and I'm having the exact same problem. It works great in play mode via the link cable but when I do a build the decals go haywire. I've also tried "Force Prepass" and "Screen Space" as recommended above but that didn't do any good for me.
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    Do you use the same quality tier for both?
     
  11. imjusthere

    imjusthere

    Joined:
    Oct 12, 2012
    Posts:
    72
    Under project settings > quality settings both PC and Android are set to Ultra. So I think they are the same for both builds.
     
  12. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    Can you send a screenshot of the matrix of the quality settings?
     
  13. imjusthere

    imjusthere

    Joined:
    Oct 12, 2012
    Posts:
    72
    Is this what you wanted?
     

    Attached Files:

  14. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    Yeah, that looks good.
    Maybe disable HDR features from URP? Make it bare bones with just decals.
    Maybe use a custom decal shader graph

    Maybe check logcat for errors
     
  15. imjusthere

    imjusthere

    Joined:
    Oct 12, 2012
    Posts:
    72
    I stripped down all the URP settings like you suggested and it didn't make any difference. I found a plugin on the asset store called Easy Decal and using their shaders and decal component it is now rendering on my Quest 2. I guess that is my solution for now.
     
    DevDunk likes this.
  16. baggyg

    baggyg

    Joined:
    Nov 21, 2013
    Posts:
    30
    Personally Decals work for me on Single-Pass but not on multi-pass at all
     
  17. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    If it's reproducible on an up to date unity version, file a bug report
     
  18. mattiapompita

    mattiapompita

    Joined:
    Mar 16, 2022
    Posts:
    11
    I have some issue with the Decal Features.
    I'm using Unity 2022.3.10f1, URP 14.0.8

    I use these settings and already check the Quality
    In URP Renderer settings I'm using:
    - Depth texture mode -> "Force Prepass"

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

    In Play Mode from the editor via Quest Link all works fine but in build the decal it visible but it moves and cutted (video below)

     
  19. mattiapompita

    mattiapompita

    Joined:
    Mar 16, 2022
    Posts:
    11

    I solved it enabling Post-Process on my MainCamera. Maybe a newbie error but I havent read something about it anywhere.

    Hope this can help someone!