-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from BastiaanOlij/baseline_300_alpha
Restructure plugin to include a baseline demo
- Loading branch information
Showing
29 changed files
with
898 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Workflow to automatically create deliverables | ||
name: Build on push | ||
|
||
on: | ||
[push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Assembling artifacts | ||
runs-on: ubuntu-20.04 | ||
|
||
# Note, to satisfy the asset library we need to make sure our zip files have a root folder | ||
# this is why we checkout into demo/godot-xr-tools | ||
# and build plugin/godot-xr-tools | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: demo/godot-xr-tools | ||
- name: Create XR tools plugin | ||
run: | | ||
mkdir plugin | ||
mkdir plugin/godot-xr-tools | ||
mkdir plugin/godot-xr-tools/addons | ||
cp -r demo/godot-xr-tools/addons/godot-xr-tools plugin/godot-xr-tools/addons | ||
cp demo/godot-xr-tools/LICENSE plugin/godot-xr-tools | ||
cp demo/godot-xr-tools/CONTRIBUTORS.md plugin/godot-xr-tools | ||
cp demo/godot-xr-tools/VERSIONS.md plugin/godot-xr-tools | ||
rm -rf demo/godot-xr-tools/.git | ||
rm -rf demo/godot-xr-tools/.github | ||
- name: Add OpenXR Plugin | ||
run: | | ||
wget --header "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://github.com/GodotVR/godot_openxr/releases/download/1.3.0/godot-openxr.zip" | ||
unzip -qq godot-openxr.zip | ||
cp -r godot_openxr_1.3.0/addons/godot-openxr demo/godot-xr-tools/addons | ||
- name: Create XR tools library artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: godot-xr-tools | ||
path: | | ||
plugin | ||
- name: Create XR tools demo artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: godot-xr-tools-demo | ||
path: | | ||
demo | ||
- name: Zip asset | ||
run: | | ||
cd plugin | ||
zip -qq -r ../godot-xr-tools.zip godot-xr-tools | ||
cd ../demo | ||
zip -qq -r ../godot-xr-tools-demo.zip godot-xr-tools | ||
cd .. | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
- name: Create and upload asset | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: "godot-xr-tools.zip,godot-xr-tools-demo.zip" | ||
omitNameDuringUpdate: true | ||
omitBodyDuringUpdate: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
*.o | ||
*.os | ||
# Godot files to ignore | ||
.import/ | ||
*.dblite | ||
*.exp | ||
*.lib | ||
*.obj | ||
*.TMP | ||
|
||
# Filesystem files to ignore | ||
logs | ||
Thumbs.db | ||
.DS_Store | ||
|
||
# Addons sourced externally | ||
addons/godot-openxr/ |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[gd_scene load_steps=13 format=2] | ||
|
||
[ext_resource path="res://addons/godot-openxr/scenes/first_person_controller_vr.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://addons/godot-xr-tools/assets/LeftHand.tscn" type="PackedScene" id=2] | ||
[ext_resource path="res://addons/godot-xr-tools/assets/RightHand.tscn" type="PackedScene" id=3] | ||
[ext_resource path="res://assets/wahooney.itch.io/green_grid.tres" type="Material" id=4] | ||
[ext_resource path="res://addons/godot-xr-tools/functions/Function_Direct_movement.tscn" type="PackedScene" id=6] | ||
[ext_resource path="res://addons/godot-xr-tools/assets/PlayerBody.tscn" type="PackedScene" id=7] | ||
[ext_resource path="res://addons/godot-xr-tools/functions/Function_Teleport.tscn" type="PackedScene" id=8] | ||
[ext_resource path="res://addons/godot-xr-tools/misc/VR_Common_Shader_Cache.tscn" type="PackedScene" id=9] | ||
|
||
[sub_resource type="ProceduralSky" id=1] | ||
|
||
[sub_resource type="Environment" id=2] | ||
background_mode = 2 | ||
background_sky = SubResource( 1 ) | ||
ambient_light_sky_contribution = 0.62 | ||
|
||
[sub_resource type="PlaneMesh" id=3] | ||
material = ExtResource( 4 ) | ||
size = Vector2( 200, 200 ) | ||
|
||
[sub_resource type="BoxShape" id=4] | ||
extents = Vector3( 100, 1, 100 ) | ||
|
||
[node name="Main" type="Spatial"] | ||
|
||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."] | ||
environment = SubResource( 2 ) | ||
|
||
[node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"] | ||
transform = Transform( -1, 0, -8.74228e-08, -5.44721e-08, 0.782152, 0.623088, 6.83779e-08, 0.623088, -0.782152, 0, 6.82119, 0 ) | ||
|
||
[node name="FPController" parent="." instance=ExtResource( 1 )] | ||
|
||
[node name="ARVRCamera" parent="FPController" index="1"] | ||
far = 1000.0 | ||
|
||
[node name="vr_common_shader_cache" parent="FPController/ARVRCamera" index="0" instance=ExtResource( 9 )] | ||
|
||
[node name="LeftHandController" parent="FPController" index="2"] | ||
hide_for_no_tracking_confidence = true | ||
|
||
[node name="LeftHand" parent="FPController/LeftHandController" index="0" instance=ExtResource( 2 )] | ||
|
||
[node name="Function_Teleport" parent="FPController/LeftHandController" index="1" instance=ExtResource( 8 )] | ||
|
||
[node name="RightHandController" parent="FPController" index="3"] | ||
hide_for_no_tracking_confidence = true | ||
|
||
[node name="RightHand" parent="FPController/RightHandController" index="0" instance=ExtResource( 3 )] | ||
|
||
[node name="Function_Direct_movement" parent="FPController/RightHandController" index="1" instance=ExtResource( 6 )] | ||
|
||
[node name="PlayerBody" parent="FPController" instance=ExtResource( 7 )] | ||
|
||
[node name="Floor" type="StaticBody" parent="."] | ||
|
||
[node name="MeshInstance" type="MeshInstance" parent="Floor"] | ||
mesh = SubResource( 3 ) | ||
|
||
[node name="CollisionShape" type="CollisionShape" parent="Floor"] | ||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) | ||
shape = SubResource( 4 ) | ||
|
||
[editable path="FPController"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Textures were created with: https://wahooney.itch.io/texture-grid-generator |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path.s3tc="res://.import/blue_grid.png-785a01a697c0777376608d81454e4958.s3tc.stex" | ||
path.etc="res://.import/blue_grid.png-785a01a697c0777376608d81454e4958.etc.stex" | ||
metadata={ | ||
"imported_formats": [ "s3tc", "etc" ], | ||
"vram_texture": true | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/wahooney.itch.io/blue_grid.png" | ||
dest_files=[ "res://.import/blue_grid.png-785a01a697c0777376608d81454e4958.s3tc.stex", "res://.import/blue_grid.png-785a01a697c0777376608d81454e4958.etc.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=2 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=true | ||
flags/filter=true | ||
flags/mipmaps=true | ||
flags/anisotropic=false | ||
flags/srgb=1 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=false | ||
svg/scale=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[gd_resource type="SpatialMaterial" load_steps=2 format=2] | ||
|
||
[ext_resource path="res://assets/wahooney.itch.io/blue_grid.png" type="Texture" id=1] | ||
|
||
[resource] | ||
albedo_texture = ExtResource( 1 ) | ||
uv1_offset = Vector3( 0.5, 0.5, 0.5 ) | ||
uv1_triplanar = true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/brown_grid.png-5cbd37038e3ea1da588854d56a43bef6.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/wahooney.itch.io/brown_grid.png" | ||
dest_files=[ "res://.import/brown_grid.png-5cbd37038e3ea1da588854d56a43bef6.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.