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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

HDRP Camera ViewportRect broken?

Discussion in 'Graphics Experimental Previews' started by joska, Aug 20, 2018.

  1. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    I converted my project into HDRP and stumbled on an issue with one of my cameras.

    It seems that the camera settings viewport Rect no longer render on the designated part of the screen.
    Now it renders the filled in Cordinates and project thats over the whole screen.

    Am i doing something wrong here?
     
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    645
    Hi,

    For the moment the viewport rect is not supported in HDRP (but planned).
    As a workaround you can use a render texture to mimic this functionality.
     
  3. ibrahim000

    ibrahim000

    Joined:
    Mar 16, 2017
    Posts:
    6
    Anyone know when they are going to fix this problem?
     
    Ruchir and CasperCoder like this.
  4. Ehredt

    Ehredt

    Joined:
    Jun 20, 2018
    Posts:
    79
    Yes, I had the same problem. I'm rendering an isolated 3D object, so I got it to render in the corner by making the camera orthographic and setting the position of the object relative to the camera, but obviously that won't work for everyone.
     
  5. iriguchi

    iriguchi

    Joined:
    Feb 1, 2016
    Posts:
    46
    I have same prblem.
    Please support viewport!!
     
  6. CasperCoder

    CasperCoder

    Joined:
    Jul 29, 2012
    Posts:
    13
    Can the Unity devs give us any prediction on when a fix is expected? We've been trying to make do with render-to-texture workaround but that really affects quality. If we are going to have to switch back to the built in pipeline and re-balance everything for that I'd rather do it now.
     
  7. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    932
    Hi,

    >Anyone know when they are going to fix this problem?
    it will be solve in 2019.1
     
    CasperCoder likes this.
  8. 00christian00

    00christian00

    Joined:
    Jul 22, 2012
    Posts:
    1,035
    Hi, will this also include support for multi layered cameras or that is not planned to come back?
     
  9. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    932
    Hi, no multi layered camera will not be allowed with LW or HD.
     
    00christian00 likes this.
  10. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,478
    Please can someone explain what the alternative to multi camera is and how it works?
     
    AkaLuuk likes this.
  11. CasperCoder

    CasperCoder

    Joined:
    Jul 29, 2012
    Posts:
    13
    I've noticed the HDRP changelog has now reached 6.0.0 preview but as far as I can tell I don't think there is a fix yet. Does this mean we aren't getting a fix in 2019.1? (As i understand it 6.x.x means 2019.2)
     
  12. iriguchi

    iriguchi

    Joined:
    Feb 1, 2016
    Posts:
    46
    I tested 2019.1.0a14 and HDRP 5.2.3 with PPS 2.1.2 yesterday.
    The Viewport rect problem is fixed.
     
    CasperCoder and hippocoder like this.
  13. CasperCoder

    CasperCoder

    Joined:
    Jul 29, 2012
    Posts:
    13
    Ah excellent! Yeah I just checked this and its working now. Woooo! Thanks Seb!
     
  14. Vadim-Andriyanov

    Vadim-Andriyanov

    Joined:
    Sep 22, 2015
    Posts:
    125
    Maybe I missing something, but it does not work for me neither in 2019.2.0a7 nor in 2019.1beta

    upload_2019-3-13_11-14-9.png

    EDIT: After updating HDRP to version 5.7.2 everything works as expected :)
    EDIT2: BUT, if I change background type of one of the cameras to none,
    I get this:
    BackgroundTypeNone.png
    As I understand multi-layered cameras will not be supported by HDRP?
     
    Last edited: Mar 13, 2019
  15. AkaLuuk

    AkaLuuk

    Joined:
    Jun 22, 2017
    Posts:
    1
    Have you found an alternative yet?
     
  16. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,478
    Im staying on classic renderer for now.
     
  17. Arano

    Arano

    Joined:
    Aug 29, 2019
    Posts:
    7
    So any alternatives? Mainly I need the multi layers to be able to draw an UI on left and right side of a stereoscopic 3D screen.. the other (very unfavorable) option is to copy the entire UI and sync objects through script (which is a lot of specific work for each type of UI element)

    p.s. I've made a bug post about this if interested (no comments so far at all tho..)
    https://github.com/Unity-Technologies/PostProcessing/issues/852
     
    Last edited: Jan 21, 2020
  18. RickshawDerpyDerp

    RickshawDerpyDerp

    Joined:
    Nov 6, 2018
    Posts:
    23
    Worse problem is that I can't change any of the "Physical" settings for the HD Camera component and get any feedback. NOTHING changes. WTF?
     
  19. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    927
    As far as I know, many features are related to post processing volume and they have to be enabled, there is an option to use physical camera properties, and for the field of view there is another toggle somewhere to use that instead of given angle