Search Unity

Question Hand models disappear when they come close to the HMD...

Discussion in 'AR/VR (XR) Discussion' started by laptsirhc, May 15, 2020.

  1. laptsirhc

    laptsirhc

    Joined:
    Jan 27, 2018
    Posts:
    4
    Hi all,

    I'm pretty new to using the toolkit, and I'm having an issue where the hand models are disappearing when they come close to the HMD. I'm using an HTC Vive.

    The main problem is that the hands disappear too soon, when they're not even that close to your face. I've looked for options to change or disable this, but I couldn't find anything in the XR Rig. Is there an easy way to change this?

    Thanks in advance.
     
    Proid likes this.
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Is it just getting clipped by the camera's near clipping plane?

    Check that on the camera settings. For VR you need a nearer near plane than for desktop games. Try 0.1 for starters.
     
    TheMasked19 and Proid like this.
  3. Matt_D_work

    Matt_D_work

    Unity Technologies

    Joined:
    Nov 30, 2016
    Posts:
    202
    sounds like a near clip plane issue. make sure you set it quite small!
     
    TheMasked19 likes this.
  4. laptsirhc

    laptsirhc

    Joined:
    Jan 27, 2018
    Posts:
    4
    Thank you, that did it!
     
  5. laptsirhc

    laptsirhc

    Joined:
    Jan 27, 2018
    Posts:
    4
    Thanks, that worked! I knew there had to be an easy fix!
     
  6. TheMasked19

    TheMasked19

    Joined:
    Mar 5, 2023
    Posts:
    1
    Ahh yes, old forums out to help. Thanks!
     
  7. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,445
    (Just be aware, that setting the near clipping plane to be TOO close to zero will ruin any z-depth resolution, which is based on the ratio of far/near.)

    Regardless of game type, set your NEAR plane as far away as you can while avoiding unacceptable near-clipping, which in VR may be 0.1f or so, or overhead mobile games maybe even 1.0f. Set your FAR plane as close as you can while avoiding unacceptable far-clipping, which for VR might be 10f, but most games will be in the 500f to 1000f range. To illustrate this, try setting near to 0.00001f and far to 1000000f.