Forum Discussion
superoculusplus
11 years agoHonored Guest
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
1 Reply
- superoculusplusHonored Guestor 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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago
- 8 months ago