Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.3, 2020.1

Votes

18

Found in

2019.3

2019.3.0f5

2020.1

Issue ID

1212234

Regression

No

[HDRP] [XRSDK] Camera does not respect near/far clipping plane settings

HD RP

-

How to reproduce:
1. Open attached project ("Repro-1212234.zip")
2. Open SampleScene scene
3. Enter Play mode
4. Select the Main Camera in Inspector window
5. Set Far Clipping plane value to anything bigger than 1170
6. Set Near Clipping plane to any value

Expected result: Near/Far Clipping plane settings are respected
Actual result: Near/Far Clippings plane settings aren't respected

Reproducible with: 2019.3.0f6 [HDRP 7.1.6] [XR Management 3.0.5], 2020.1.0a22 [HDRP 7.1.8] [XR Management preview.2 3.1.0]
Not tested with: 2019.2.21f1 and previous versions (XR SDK crashes HDRP, errors in code)

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fix for this issue is incoming

Comments (6)

  1. 22e660b1208fbb574a2f37398cd70b2e?d=mm

    coolnehuel

    May 05, 2020 16:09

    YAY! I am working on a game for the VR game jam 2020. I had this issue and spent ~5 hours on it. Setting the camera to main camera worked for me! Thanks alot @Foonix!

  2. 765dcbd722d296ff549dacc19c02f909?d=mm

    renekuhn

    Mar 31, 2020 10:50

    Tested it in 2019.3.7f1 and 2020.1.0b3
    Still the same behaviour

    Does it work for anyone ?

  3. 54ddacccdff3d249f296fb28ce7b58dd?d=mm

    icarus1564

    Mar 11, 2020 17:04

    I'm getting this issue even with a single camera tagged as MainCamera. I ported a non-HD VR app where the clipping worked as expected using the old-school Oculus two-camera setup. It seems that all other aspects of the camera work (at least for my use case) except the clipping planes.

  4. 22a378ecc5921624af03d5ed92ba5390?d=mm

    abenyamina

    Mar 09, 2020 16:19

    @Foonix The issue is there even with the camera tagged as MainCamera on our project

  5. 117a6e81f93634f0bb201369660a0cef?d=mm

    foonix

    Mar 09, 2020 12:56

    It turns out that this was issue triggered for me by not having the VR camera tagged as MainCamera. If you have this problem, check that the camera (and only the VR camera) is tagged as MainCamera.

    I'd still say this is a bug however. HDRP is calling XRDisplaySubsystem.GetCullingParameters() with the camera to use as a parameter. XRSDK should probably not be using something like Camera.main for this kind of call chain.

  6. 78b8bfd0eac359408fa3088386d0fe2b?d=mm

    TandT

    Mar 06, 2020 09:32

    I can confirm this issue, seems like a very extreme bug.
    I can't even imagine why it has so few votes. Is no one using HDRP and XR ?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.