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
f5131b34
Commit
f5131b34
authored
Oct 06, 2015
by
Dalai Felinto
Browse files
use different width and height for each eye
parent
bf028be8
Changes
2
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/__init__.py
View file @
f5131b34
...
...
@@ -63,8 +63,8 @@ class HMD_Base:
self
.
_name
=
name
self
.
_error_callback
=
error_callback
self
.
_current_eye
=
0
self
.
_width
=
0
self
.
_height
=
0
self
.
_width
=
[
0
,
0
]
self
.
_height
=
[
0
,
0
]
self
.
_projection_matrix
=
[
Matrix
.
Identity
(
4
),
Matrix
.
Identity
(
4
)]
self
.
_modelview_matrix
=
[
Matrix
.
Identity
(
4
),
Matrix
.
Identity
(
4
)]
self
.
_framebuffer_object
=
[
0
,
0
]
...
...
space_view3d_virtual_reality/hmd/oculus.py
View file @
f5131b34
...
...
@@ -52,8 +52,10 @@ class Oculus(HMD_Base):
self
.
_hmd
=
HMD
()
# gather arguments from HMD
self
.
_width
=
self
.
_hmd
.
width
self
.
_height
=
self
.
_hmd
.
height
self
.
_width
[
0
]
=
self
.
_hmd
.
width_left
self
.
_height
[
0
]
=
self
.
_hmd
.
height_left
self
.
_width
[
1
]
=
self
.
_hmd
.
width_right
self
.
_height
[
1
]
=
self
.
_hmd
.
height_right
self
.
_projection_matrix
[
0
]
=
self
.
_hmd
.
projection_matrix_left
self
.
_projection_matrix
[
1
]
=
self
.
_hmd
.
projection_matrix_right
...
...
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