Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions demo/Main.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dmr8l2aqcs5wd
6 changes: 3 additions & 3 deletions demo/Main.tscn
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[gd_scene load_steps=15 format=3 uid="uid://ylx5afjemhln"]

[ext_resource type="Script" path="res://Main.gd" id="1"]
[ext_resource type="Script" uid="uid://dmr8l2aqcs5wd" path="res://Main.gd" id="1"]
[ext_resource type="Material" uid="uid://cok6b068i8j3m" path="res://assets/wahooney.itch.io/green_grid.tres" id="2"]
[ext_resource type="PackedScene" uid="uid://c1lwn8ckewvro" path="res://addons/godot-openvr/scenes/ovr_first_person.tscn" id="3_0jmmx"]
[ext_resource type="Environment" uid="uid://ba8m5tewuolm" path="res://environment.tres" id="4"]
[ext_resource type="Script" path="res://player/HUD_Anchor.gd" id="4_n1047"]
[ext_resource type="Script" uid="uid://cuko4lhs6sfdc" path="res://player/HUD_Anchor.gd" id="4_n1047"]
[ext_resource type="PackedScene" path="res://misc/Table.tscn" id="7"]
[ext_resource type="PackedScene" path="res://misc/Box.tscn" id="8"]
[ext_resource type="Script" path="res://player/right_controller.gd" id="8_oqay4"]
[ext_resource type="Script" uid="uid://brq5oxy5rwgx8" path="res://player/right_controller.gd" id="8_oqay4"]
[ext_resource type="PackedScene" uid="uid://7q2uyb55p6e5" path="res://misc/Cup.tscn" id="11"]

[sub_resource type="BoxMesh" id="BoxMesh_jxy6n"]
Expand Down
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/EditorPlugin.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bwbwse1aabquu
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/OpenVRExportPlugin.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://b7rl7a2hoyato
16 changes: 10 additions & 6 deletions demo/addons/godot-openvr/godot_openvr.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ compatibility_minimum = 4.1

[libraries]

linux.x86_64.debug="res://addons/godot-openvr/bin/x11/libgodot_openvr_debug.so"
linux.x86_64.release="res://addons/godot-openvr/bin/x11/libgodot_openvr_release.so"
windows.x86_64.debug="res://addons/godot-openvr/bin/win64/libgodot_openvr_debug.dll"
windows.x86_64.release="res://addons/godot-openvr/bin/win64/libgodot_openvr_release.dll"
linux.x86_64.debug="bin/x11/libgodot_openvr_debug.so"
linux.x86_64.release="bin/x11/libgodot_openvr_release.so"
windows.x86_64.debug="bin/win64/libgodot_openvr_debug.dll"
windows.x86_64.release="bin/win64/libgodot_openvr_release.dll"

[dependencies]

linux.x86_64=[ "res://addons/godot-openvr/bin/x11/libopenvr_api.so" ]
windows.x86_64=[ "res://addons/godot-openvr/bin/win64/openvr_api.dll" ]
linux.x86_64 = {
"bin/x11/libopenvr_api.so": ""
}
windows.x86_64 = {
"bin/win64/openvr_api.dll": ""
}
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/godot_openvr.gdextension.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://buke30w6wk0wl
6 changes: 6 additions & 0 deletions demo/addons/godot-openvr/icon.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ dest_files=["res://.godot/imported/icon.png-a89ecb8be28ea6c50eeae0c3cb0cd271.cte
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
6 changes: 6 additions & 0 deletions demo/addons/godot-openvr/meshes/hands_albedo.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ dest_files=["res://.godot/imported/hands_albedo.png-149a10baba7906560a9f9eab8fad
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
6 changes: 6 additions & 0 deletions demo/addons/godot-openvr/meshes/hands_normal.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ dest_files=["res://.godot/imported/hands_normal.png-eab7a86e959f13e1294e8f67904a
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ dest_files=["res://.godot/imported/vr_glove_left_model_slim.glb-8eb4d606fd297e3e

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
Expand All @@ -31,6 +34,9 @@ animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
gltf/naming_version=0
gltf/embedded_image_handling=1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ dest_files=["res://.godot/imported/vr_glove_right_model_slim.glb-c6782795f1fc323

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
Expand All @@ -31,6 +34,9 @@ animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
gltf/naming_version=0
gltf/embedded_image_handling=1
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/openvr_autoloader.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://w84k1wpoejyb
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/framecounter_in_3d.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c3wq0tsolui5t
32 changes: 12 additions & 20 deletions demo/addons/godot-openvr/scenes/framecounter_in_3d.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=5 format=3 uid="uid://cuy0i2k5ro28e"]

[ext_resource path="res://addons/godot-openvr/scenes/framecounter_in_3d.gd" type="Script" id=1]
[ext_resource type="Script" uid="uid://c3wq0tsolui5t" path="res://addons/godot-openvr/scenes/framecounter_in_3d.gd" id="1"]

[sub_resource type="Shader" id=2]
[sub_resource type="Shader" id="2"]
code = "shader_type spatial;
render_mode unshaded;

uniform sampler2D viewport_texture : hint_albedo;
uniform sampler2D viewport_texture : source_color;

void fragment() {
vec4 color = texture(viewport_texture, UV);
Expand All @@ -15,38 +15,30 @@ void fragment() {
}
"

[sub_resource type="ShaderMaterial" id=3]
shader = SubResource( 2 )
[sub_resource type="ShaderMaterial" id="3"]
render_priority = 0
shader = SubResource("2")

[sub_resource type="PlaneMesh" id=1]
material = SubResource( 3 )
[sub_resource type="PlaneMesh" id="1"]
material = SubResource("3")
size = Vector2(0.3, 0.15)
subdivide_width = 10
subdivide_depth = 10

[node name="FPS" type="Node3D"]
script = ExtResource( 1 )
script = ExtResource("1")

[node name="Display" type="MeshInstance3D" parent="."]
transform = Transform3D(0.991445, 0.130526, -5.70548e-09, 0, -4.37114e-08, -1, -0.130526, 0.991445, -4.33374e-08, -0.5, 0.5, -2)
mesh = SubResource( 1 )
surface_material_override/0 = null
script = null
mesh = SubResource("1")

[node name="Viewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(200, 100)
render_target_update_mode = 3
script = null

[node name="Label" type="Label" parent="Viewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
rect_scale = Vector2(3, 3)
custom_colors/font_color = Color(1, 1, 1, 1)
text = "FPS"
structured_text_bidi_override_options = []
script = null
__meta__ = {
"_edit_use_anchors_": false
}
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/ovr_controller.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cco3v1m5yqtcv
2 changes: 1 addition & 1 deletion demo/addons/godot-openvr/scenes/ovr_controller.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=3 format=3 uid="uid://858xxqdsip2m"]

[ext_resource type="Script" path="res://addons/godot-openvr/scenes/ovr_controller.gd" id="1"]
[ext_resource type="Script" uid="uid://cco3v1m5yqtcv" path="res://addons/godot-openvr/scenes/ovr_controller.gd" id="1"]
[ext_resource type="PackedScene" path="res://addons/godot-openvr/scenes/ovr_render_model.tscn" id="2"]

[node name="OVRController" type="XRController3D"]
Expand Down
4 changes: 2 additions & 2 deletions demo/addons/godot-openvr/scenes/ovr_first_person.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[ext_resource type="PackedScene" path="res://addons/godot-openvr/scenes/ovr_shader_cache.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://858xxqdsip2m" path="res://addons/godot-openvr/scenes/ovr_controller.tscn" id="2"]
[ext_resource type="Script" path="res://addons/godot-openvr/scenes/ovr_main.gd" id="3"]
[ext_resource type="Script" path="res://addons/godot-openvr/scenes/ovr_hud_anchor.gd" id="3_ow4cb"]
[ext_resource type="Script" uid="uid://c5f155xyq8l7m" path="res://addons/godot-openvr/scenes/ovr_main.gd" id="3"]
[ext_resource type="Script" uid="uid://c33q6mgtm0qt3" path="res://addons/godot-openvr/scenes/ovr_hud_anchor.gd" id="3_ow4cb"]

[node name="OVRFirstPerson" type="XROrigin3D"]
script = ExtResource("3")
Expand Down
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/ovr_hud_anchor.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c33q6mgtm0qt3
149 changes: 104 additions & 45 deletions demo/addons/godot-openvr/scenes/ovr_left_hand.tscn

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/ovr_main.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c5f155xyq8l7m
1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/ovr_render_model.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://d4f24gkv32pub
8 changes: 4 additions & 4 deletions demo/addons/godot-openvr/scenes/ovr_render_model.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=2 format=3 uid="uid://t4kcjt8ym32v"]

[ext_resource path="res://addons/godot-openvr/scenes/ovr_render_model.gd" type="Script" id=1]
[ext_resource type="Script" uid="uid://d4f24gkv32pub" path="res://addons/godot-openvr/scenes/ovr_render_model.gd" id="1"]

[node name="OVRRenderModel" type="MeshInstance"]
script = ExtResource( 1 )
[node name="OVRRenderModel" type="MeshInstance3D"]
script = ExtResource("1")
149 changes: 104 additions & 45 deletions demo/addons/godot-openvr/scenes/ovr_right_hand.tscn

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demo/addons/godot-openvr/scenes/ovr_shader_cache.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://wt678jltxh78
19 changes: 8 additions & 11 deletions demo/addons/godot-openvr/scenes/ovr_shader_cache.tscn
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=3 format=3 uid="uid://2fq7dh5kr0i6"]

[ext_resource path="res://addons/godot-openvr/scenes/ovr_shader_cache.gd" type="Script" id=1]
[ext_resource type="Script" uid="uid://wt678jltxh78" path="res://addons/godot-openvr/scenes/ovr_shader_cache.gd" id="1"]

[sub_resource type="PlaneMesh" id=1]
size = Vector2( 0.001, 0.001 )

[sub_resource type="SpatialMaterial" id=2]
[sub_resource type="PlaneMesh" id="1"]
size = Vector2(0.001, 0.001)

[node name="ovr_shader_cache" type="Node3D"]
script = ExtResource( 1 )
script = ExtResource("1")

[node name="Controller" type="MeshInstance" parent="."]
transform = Transform3D( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 )
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="Controller" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2)
mesh = SubResource("1")
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ dest_files=["res://.godot/imported/wasteland_clouds_2k.hdr-35430424592ade5f398ad
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
26 changes: 12 additions & 14 deletions demo/assets/kenney.nl/mug.tres

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions demo/assets/texturehaven.com/brown_planks_03/brown_planks_03.tres
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[gd_resource type="SpatialMaterial" load_steps=5 format=2]
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://b5dvlv50ovmkd"]

[ext_resource path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_diff_1k.jpg" type="Texture" id=1]
[ext_resource path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_Nor_1k.jpg" type="Texture" id=2]
[ext_resource path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_rough_1k.jpg" type="Texture" id=3]
[ext_resource path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_spec_1k.jpg" type="Texture" id=4]
[ext_resource type="Texture2D" uid="uid://3awgamogameb" path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_diff_1k.jpg" id="1"]
[ext_resource type="Texture2D" uid="uid://1sbfv53go2om" path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_Nor_1k.jpg" id="2"]
[ext_resource type="Texture2D" uid="uid://dnsotgw2grocv" path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_rough_1k.jpg" id="3"]
[ext_resource type="Texture2D" uid="uid://dyoa6te43i7pq" path="res://assets/texturehaven.com/brown_planks_03/brown_planks_03_spec_1k.jpg" id="4"]

[resource]
albedo_texture = ExtResource( 1 )
albedo_texture = ExtResource("1")
metallic = 1.0
metallic_texture = ExtResource( 4 )
roughness_texture = ExtResource( 3 )
metallic_texture = ExtResource("4")
roughness_texture = ExtResource("3")
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 2 )
normal_texture = ExtResource("2")
uv1_triplanar = true
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ dest_files=["res://.godot/imported/brown_planks_03_AO_1k.jpg-082c5e9917d7c760773
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ dest_files=["res://.godot/imported/brown_planks_03_Disp_1k.jpg-f3a540369537c2dc8
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ dest_files=["res://.godot/imported/brown_planks_03_Nor_1k.jpg-94844aa022c7abafe2
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
Expand Down
Loading
Loading