Search Unity

URP + ARFoundation + Post Processing: Exclude the ARCameraBackground

Discussion in 'General Graphics' started by dimitris_baud, Jan 17, 2020.

  1. dimitris_baud

    dimitris_baud

    Joined:
    Jan 15, 2018
    Posts:
    31
    Hi,

    I have a project on 2019.3.x with URP and the new URP Post Processing enabled with a bloom effect. It works fine on the iPhone with the latest AR Foundation (all packages are in the latest preview versions).

    However the bloom gets applied to everything, including my 3D objects and the AR camera background. What is the best way to exclude the camera background from it? I read that in URP camera stacking is broken so that doesn't seem to be an option.

    Thank you.
     
  2. astratakis

    astratakis

    Joined:
    Mar 18, 2019
    Posts:
    10
    Create a layer for your background camera and exclude that from post process.
     
  3. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    While searching for this issue I found out the following explanation.

    Post Processing works for every object on the scene.Bloom effect in Unity is actually a post effect which means it works after all the GameObjects have been rendered by the camera, and it can't be seperately affected.

    Should I use multiple cameras?
     
  4. asa989

    asa989

    Joined:
    Dec 18, 2015
    Posts:
    52
    I recommend multiple cameras. its fast and easy!
     
  5. elhongo

    elhongo

    Joined:
    Aug 13, 2015
    Posts:
    47
    Hi, I am facing the same problem.
    I am at Unity 2019.3.5f1 + URP 7.2.0 + ARFoundation 3.0.0

    Using multiple cameras (both as Render Type: Base) doesn't work because the second camera overrides everything from the first, in URP.

    So I made the background camera Render Type: Base, and the items camera as Overlay (stacked on the background cam).
    Setting a layer for the background camera and excluding it from the second camera (which has the postprocessing) doesn't avoid the background being affected by the postprocessing.

    I dropped a comment here waiting for solutions: https://forum.unity.com/threads/glitching-with-multiple-cameras-lwrp.592477/page-3

    Pablo.
     
    Last edited: Apr 8, 2020
  6. rajshekarreddy

    rajshekarreddy

    Joined:
    Sep 20, 2018
    Posts:
    8
    Has there been a solution to this? I just tried with the 2019.4 LTS version with camera stacking. Does not work.
     
  7. shibi2017

    shibi2017

    Joined:
    Jan 18, 2018
    Posts:
    153
    have you solved it? really appreciate.
     
  8. shibi2017

    shibi2017

    Joined:
    Jan 18, 2018
    Posts:
    153
    not work with me in urp. The bloom effect on both cam
     
  9. shibi2017

    shibi2017

    Joined:
    Jan 18, 2018
    Posts:
    153
    multiple cameras no use in 2022.
     
  10. sam_stitch

    sam_stitch

    Joined:
    Jun 6, 2023
    Posts:
    8
    I have multiple cameras but bloom is applying itself to every camera. How do I remove the bloom from just one camera?
     
  11. faysalfdt

    faysalfdt

    Joined:
    Jul 11, 2023
    Posts:
    4
    Was anyone able to get a setup working? I'm facing this issue in our app
     
  12. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
  13. g1zeonik

    g1zeonik

    Joined:
    Aug 9, 2022
    Posts:
    6
    Any luck with this? Facing the same issue :'(