-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest.py
More file actions
executable file
·28 lines (25 loc) · 848 Bytes
/
test.py
File metadata and controls
executable file
·28 lines (25 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python
from openhmd import PyOpenHMD
foo = PyOpenHMD()
while True:
foo.poll()
print("rotation quat: %f %f %f %f" % (foo.rotation[0],
foo.rotation[1],
foo.rotation[2],
foo.rotation[3]))
print("left projection matrix: %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f" % (foo.leftprojectionmatrix[0],
foo.leftprojectionmatrix[1],
foo.leftprojectionmatrix[2],
foo.leftprojectionmatrix[3],
foo.leftprojectionmatrix[4],
foo.leftprojectionmatrix[5],
foo.leftprojectionmatrix[6],
foo.leftprojectionmatrix[7],
foo.leftprojectionmatrix[8],
foo.leftprojectionmatrix[9],
foo.leftprojectionmatrix[10],
foo.leftprojectionmatrix[11],
foo.leftprojectionmatrix[12],
foo.leftprojectionmatrix[13],
foo.leftprojectionmatrix[14],
foo.leftprojectionmatrix[15]))