Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
superoculusplus's avatar
superoculusplus
Honored Guest
11 years ago

positionning problem c#

Hello everybody

I am codding a C# application with windows SDK to pilot a PTZ camera with my Oculus Rift DK2.
But, I have problem, I am using the fonction to get the angle of the oculus and it never works. I always have x = 0 and Y = 0.

float xx;
float yy;
float zz=0;

xx = oculus.Orientation.X;
yy = oculus.Orientation.Y;



Vector3 vec = new Vector3(xx, yy, zz);


oculus.Orientation.ToAxisAngle(out vec, out vec.X);
oculus.Orientation.ToAxisAngle(out vec, out vec.Y);

when I display vec.X and vec.Y, t is always the same position. Before, I use the fonction "Isconnect" to see if my program detect the oculus and it works. So Why could not get the position in real time ?

Please help me

1 Reply

  • or if someone know how to get x and y position of oculus in space in C# program, could him tell me what is the method or code please ?

    Thank you