Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ivmi-Builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Damien Marchal
Ivmi-Builder
Commits
9567b36f
Commit
9567b36f
authored
1 year ago
by
Florent Berthaut
Browse files
Options
Downloads
Patches
Plain Diff
Remove screenvr
parent
34614122
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/IvmiScene.gd
+6
-7
6 additions, 7 deletions
core/IvmiScene.gd
with
6 additions
and
7 deletions
core/IvmiScene.gd
+
6
−
7
View file @
9567b36f
...
...
@@ -25,9 +25,8 @@ var phase = 0
#XR variables
@
export_group
(
"XR"
)
enum
XRMode
{
Mono
,
OpenXr
,
ScreenVr
}
#@export var _xr_mode: XRMode = XRMode.Mono
@
export
var
_xr_mode
:
XRMode
=
XRMode
.
ScreenVr
enum
XRMode
{
Mono
,
OpenXR
}
@
export
var
_xr_mode
:
XRMode
=
XRMode
.
OpenXR
@
export
var
_open_xr_passthrough
:
bool
=
false
@
export_group
(
"ScreenVR"
)
...
...
@@ -78,11 +77,11 @@ func _ready():
_is_2D
=
true
match
_xr_mode
:
XRMode
.
OpenX
r
:
XRMode
.
OpenX
R
:
_xr_interface
=
XRServer
.
find_interface
(
"OpenXR"
)
if
_xr_interface
and
_xr_interface
.
initialize
():
#remove v-sync
#
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
DisplayServer
.
window_set_vsync_mode
(
DisplayServer
.
VSYNC_DISABLED
)
get_viewport
()
.
use_xr
=
true
#_xr_interface.play_area_changed.connect(_on_play_area_changed)
_is_2D
=
false
...
...
@@ -105,7 +104,7 @@ func _ready():
print
(
"Error : Could not activate OpenXR Passthrough"
)
else
:
print
(
"Error : Could not initialize OpenXR interface"
)
XRMode
.
ScreenVr
:
#
XRMode.ScreenVr:
# XRServer.add_interface(Gd4ScreenVR.new())
# _config = XRServer.find_interface("Gd4ScreenVR")
# if _config and _config.initialize():
...
...
@@ -121,7 +120,7 @@ func _ready():
# print("IVMI : Initialised ScreenVR Interface")
# else:
# print("Error : Could not activate ScreenVR")
pass
#
pass
# PureData mode
if
_pd_mode
==
PdMode
.
LIBPD
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment