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
5971e8bd
Commit
5971e8bd
authored
Oct 15, 2015
by
Dalai Felinto
Browse files
Update addon for latest API changes
parent
b1854c9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/__init__.py
View file @
5971e8bd
...
@@ -136,7 +136,7 @@ class HMD_Base:
...
@@ -136,7 +136,7 @@ class HMD_Base:
"""
"""
try
:
try
:
for
i
in
range
(
2
):
for
i
in
range
(
2
):
self
.
_offscreen_object
[
i
]
=
gpu
.
offscreen
.
new
(
self
.
_width
[
i
],
self
.
_height
[
i
])
self
.
_offscreen_object
[
i
]
=
gpu
.
offscreen
.
new
(
self
.
_width
[
i
],
self
.
_height
[
i
]
,
0
)
self
.
_framebuffer_object
[
i
]
=
self
.
_offscreen_object
[
i
].
framebuffer_object
self
.
_framebuffer_object
[
i
]
=
self
.
_offscreen_object
[
i
].
framebuffer_object
self
.
_color_object
[
i
]
=
self
.
_offscreen_object
[
i
].
color_object
self
.
_color_object
[
i
]
=
self
.
_offscreen_object
[
i
].
color_object
...
...
space_view3d_virtual_reality/operator.py
View file @
5971e8bd
...
@@ -252,7 +252,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
...
@@ -252,7 +252,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
modelview_matrix
=
self
.
_hmd
.
modelview_matrix
modelview_matrix
=
self
.
_hmd
.
modelview_matrix
# drawing
# drawing
offscreen_object
.
draw
(
projection_matrix
,
modelview_matrix
)
offscreen_object
.
draw
_view3d
(
projection_matrix
,
modelview_matrix
)
self
.
_hmd
.
frameReady
()
self
.
_hmd
.
frameReady
()
...
...
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