Jump to content

VRandArchI

Verified Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by VRandArchI

  1. I've found another typo in Unity version of SRanipal SDK, version 1.0.1.0.
    File: ViveSR\Scripts\SRanipal_Eye.cs, line 162
    Function:

    SRanipal_Eye.GetEyeOpenness(EyeIndex eye, out float openness)

    Description: Function always returns true, despite code comments saying that it should return data validity.
    Solution: Change line

    return true;

    to

    return valid

    PS: While UE version of SDK doesn't have this error, it also doesn't check whether framework is active, while Unity current version does. This is also probably not intended behaviour.

  2. I've e-mailed it to 7invensun, guess I'll also share it here
     
    There is a small error in Unity version of SRanipal SDK, version 1.0.0.0, probably caused by copy-pasting error.
    File: ViveSR\Scripts\SRanipal_Eye.cs, line 366
    Function:
    SRanipal_Eye.Focus(GazeIndex index, out Ray ray, out FocusInfo focusInfo, float maxDistance)
    Description: maxDistance parameter is ignored in later call
    Solution: Change line
    return Focus(index, out ray, out focusInfo, 0, float.MaxValue);
    to
    return Focus(index, out ray, out focusInfo, 0, maxDistance);
×
×
  • Create New...