Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dalai Felinto
virtual_reality_viewport
Commits
4896ac0d
Commit
4896ac0d
authored
Oct 09, 2015
by
Dalai Felinto
Browse files
Small changes to Oculus Legacy
parent
19fedb1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/oculus_legacy.py
View file @
4896ac0d
...
...
@@ -2,11 +2,8 @@
Oculus Legacy
=============
Oculus (oculus.com) head mounted display
It uses a C app to connect with the SDK
The bridge code is hosted at Visgraf:
http://git.impa.br/dfelinto/oculus_sdk_bridge
Oculus (oculus.com) head mounted display for OSX and Linux
It uses a python wrapper to connect with the SDK
"""
from
.
import
HMD_Base
...
...
@@ -91,6 +88,10 @@ class HMD(wrapperHMD):
self
.
_eyeOffsets
[
eye
]
=
self
.
_eyeRenderDescs
[
eye
].
HmdToEyeViewOffset
# Bug in the SDK leaves a program bound, so clear it
import
bgl
bgl
.
glUseProgram
(
0
)
except
Exception
as
E
:
raise
E
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment