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
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
