ScottHerz Posted June 12, 2019 Share Posted June 12, 2019 Howdy. I've just started playing with the SRanipal Unity SDK for the Vive Pro Eye and am trying to understand some of the data I'm getting back. When I look at the SingleEyeData for the left eye, there's a field for gaze_origin_mm. First off, the comments say that's in Meter Miles, which I don't think is a thing ;) Second, how would I go about converting that to a point in world space? What is the origin which gaze_origin_mm is based around? The documentation for SingleEyeData makes it look like it's the center of the lens in front of that eye. If so, what is the relationship between the center of that lens and something like the main camera? Thanks. Link to comment Share on other sites More sharing options...
HackPerception Posted June 13, 2019 Share Posted June 13, 2019 Link to comment Share on other sites More sharing options...
Daniel_Y Posted June 17, 2019 Share Posted June 17, 2019 It is in reference to the System Origin shown in the diagram Link to comment Share on other sites More sharing options...
eyetracker Posted July 31, 2019 Share Posted July 31, 2019 I remember a picture posted by @VibrantNebula but it is no longer showing up when I view this page. Is there a more permanent location in the documentation where this diagram is hosted? @Cory_HTC @Daniel_Y Link to comment Share on other sites More sharing options...
Daniel_Y Posted August 1, 2019 Share Posted August 1, 2019 Post again. it will be included in later SDK document. 1 Link to comment Share on other sites More sharing options...
HackPerception Posted August 1, 2019 Share Posted August 1, 2019 @eyetracker - This is also already included in the current SDK's .HTML. The .PDF is only part of the overall documentation, there is also HTML documentation included in each folder. This is located at: Unity: /SRanipal_SDK_1.0.1.0_Eye/Eye/02_Unity/Document/html/struct_vive_s_r_1_1anipal_1_1_eye_1_1_single_eye_data.html Unreal: SRanipal_SDK_1.0.1.0_Eye/Eye/03_Unreal/Document/html/struct_vive_s_r_1_1anipal_1_1_eye_1_1_single_eye_data.html Link to comment Share on other sites More sharing options...
Tatiana_K Posted August 19, 2019 Share Posted August 19, 2019 Could you specify please, is the origin parameter of the SRanipal_Eye.GetGazeRay() equal to the Combined Gaze Origin on the picture? And does "local coordinates" in its description mean that its coordinates are with respect to the System Origin? Link to comment Share on other sites More sharing options...
Tatiana_K Posted August 19, 2019 Share Posted August 19, 2019 (edited) 30 minutes ago, Tatiana_K said: Could you specify please, is the origin parameter of the SRanipal_Eye.GetGazeRay() equal to the Combined Gaze Origin on the picture? And does "local coordinates" in its description mean that its coordinates are with respect to the System Origin? Ok, found an answer in the code, and it depends on the requested GazeIndex, so can be Combined Gaze Origin or the Gaze Origin of one of the eyes. Edited August 19, 2019 by Tatiana_K Link to comment Share on other sites More sharing options...
jboss Posted May 13, 2020 Share Posted May 13, 2020 How does this diagram relate to Unity's SteamVR CameraRig or Vive Input Utility's ViveCameraRig? Is System Origin equivalent to the camera's transform.position? @Daniel_Y @Corvus @Jad @Hank_Li Link to comment Share on other sites More sharing options...
jboss Posted May 25, 2020 Share Posted May 25, 2020 Ok, I thought I would be able to edit my previous post, but I can't seem to find that option. I did some more testing using VIU's ViveCameraRig and here's what I found. I am using the Combined ray and I use a LineRenderer to draw a line from the origin in the direction gazeDirectionLocal. gazeOriginLocal is fairly constant at (0.001, 0.007, -0.05). When I add that to camera.transform.position, it looks like the origin of the line is behind my eyes. If I look up or down the ray moves a lot more than when it would come from between my eyes. So I discarded the z-component of gazeOriginLocal. Then the ray was more natural, but still its origin seemed to be slightly too high. So I also discarded the y-component and now it looks quite ok. Since the x-component of gazeOriginLocal is very small I am inclined to say that camera.transform.position is in fact the position right between my eyes. That would mean that gazeOriginLocal has no added value, which sounds strange. Am I correct? I am now struggling with the rotation, since the direction is local. I notice that when I keep my head straight the line follows my eyes pretty ok. But when I tilt my head up or down, the line goes crazy, it seems to point in the vertically opposite direction (so the line goes up when I tilt my head down and look straight). I expect that it is relative to the hedaset, in other words relative the camera.transform.forward. Is that correct? It would really help if someone could give me some feedback or support on this. It is very hard to figure this out by myself, with the headset on. Whenever I try to look at what is happening I influence the gazedata of course. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now