Exported the test rooms into props.

This commit is contained in:
Relintai 2021-08-18 19:02:32 +02:00
parent efd0a54d8c
commit 861676531b
4 changed files with 148 additions and 5 deletions

View File

@ -0,0 +1,61 @@
[gd_resource type="PropData" load_steps=13 format=2]
[ext_resource path="res://test_rooms/test2_tiledwalldata.tres" type="TiledWallData" id=1]
[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_dungeon_1_albedo.png" type="Texture" id=4]
[ext_resource path="res://modules/core_models/wall_zn.gltf" type="MeshDataResource" id=8]
[sub_resource type="PropDataPortal" id=1]
transform = Transform( -1, 0, -9.61651e-07, 0, 1, 0, 9.61651e-07, 0, -1, 2, 1, 0 )
points = PoolVector2Array( -1, 1, -1, -1, 0, -1, 0, 1 )
[sub_resource type="PropDataTiledWall" id=2]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5, 0, 0 )
width = 6
heigth = 3
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=3]
transform = Transform( 1.19249e-08, 0, -1, 0, 1, 0, 1, 0, 1.19249e-08, 0, 0, -6 )
width = 6
heigth = 3
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=4]
transform = Transform( -1, 0, 3.17865e-08, 0, 1, 0, -3.17865e-08, 0, -1, 5, 0, -6 )
width = 5
heigth = 3
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=5]
transform = Transform( -1, 0, 3.17865e-08, -3.17865e-08, -5.96046e-08, -1, 2.66454e-15, -1, 5.96046e-08, 5, 0, 0 )
width = 5
heigth = 6
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=6]
transform = Transform( -1, 0, 3.17865e-08, 3.17865e-08, 5.96046e-08, 1, -1.77636e-15, 1, -5.96046e-08, 5, 3, -6 )
width = 5
heigth = 6
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=7]
transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 0, 0, 0 )
width = 2
heigth = 3
data = ExtResource( 1 )
[sub_resource type="PropDataTiledWall" id=8]
transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 3, 0, 0 )
width = 2
heigth = 3
data = ExtResource( 1 )
[sub_resource type="PropDataMeshData" id=9]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 2, 0 )
mesh = ExtResource( 8 )
texture = ExtResource( 4 )
[resource]
props = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ]
is_room = true
room_bounds = PoolVector3Array( 5.01, -0.01, -6.01, 5.01, -0.01, 0.00999975, 5.01, 3.01, 0.00999975, 5.01, 3.01, -6.01, -0.0100001, -0.01, -6.01, -0.0100001, 3.01, -6.01, -0.0100001, -0.01, 0.00999975, -0.0100001, 0.745, 0.00999975, -0.0100001, 3.01, 0.00999975, 0.826667, 3.01, 0.00999975, 0.826667, 0.745, 0.00999975 )

View File

@ -0,0 +1,68 @@
[gd_resource type="PropData" load_steps=16 format=2]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_spine2.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/core_models/wall_zn.gltf" type="MeshDataResource" id=2]
[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_dungeon_1_albedo.png" type="Texture" id=3]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple.png" type="Texture" id=4]
[ext_resource path="res://test_rooms/test2_tiledwalldata.tres" type="TiledWallData" id=5]
[sub_resource type="PropDataPortal" id=1]
transform = Transform( -1, 0, -9.61651e-07, 0, 1, 0, 9.61651e-07, 0, -1, 2, 1, 0 )
points = PoolVector2Array( -1, 1, -1, -1, 0, -1, 0, 1 )
[sub_resource type="PropDataTiledWall" id=2]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5, 0, 0 )
width = 6
heigth = 3
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=3]
transform = Transform( 1.19249e-08, 0, -1, 0, 1, 0, 1, 0, 1.19249e-08, 0, 0, -6 )
width = 6
heigth = 3
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=4]
transform = Transform( -1, 0, 3.17865e-08, 0, 1, 0, -3.17865e-08, 0, -1, 5, 0, -6 )
width = 5
heigth = 3
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=5]
transform = Transform( -1, 0, 3.17865e-08, -3.17865e-08, -5.96046e-08, -1, 2.66454e-15, -1, 5.96046e-08, 5, 0, 0 )
width = 5
heigth = 6
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=6]
transform = Transform( -1, 0, 3.17865e-08, 3.17865e-08, 5.96046e-08, 1, -1.77636e-15, 1, -5.96046e-08, 5, 3, -6 )
width = 5
heigth = 6
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=7]
transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 0, 0, 0 )
width = 2
heigth = 3
data = ExtResource( 5 )
[sub_resource type="PropDataTiledWall" id=8]
transform = Transform( 1, 0, 5.56363e-08, 0, 1, 0, -5.56363e-08, 0, 1, 3, 0, 0 )
width = 2
heigth = 3
data = ExtResource( 5 )
[sub_resource type="PropDataMeshData" id=9]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 2, 0 )
mesh = ExtResource( 2 )
texture = ExtResource( 3 )
[sub_resource type="PropDataMeshData" id=10]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.43392, 0.435857, -1.65536 )
mesh = ExtResource( 1 )
texture = ExtResource( 4 )
[resource]
props = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ]
is_room = true
room_bounds = PoolVector3Array( 5.01, -0.01, -6.01, 5.01, -0.01, 0.00999975, 5.01, 3.01, 0.00999975, 5.01, 3.01, -6.01, -0.0100001, -0.01, -6.01, -0.0100001, 3.01, -6.01, -0.0100001, -0.01, 0.00999975, -0.0100001, 0.745, 0.00999975, -0.0100001, 3.01, 0.00999975, 0.826667, 3.01, 0.00999975, 0.826667, 0.745, 0.00999975 )

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://test_rooms/Room1.tres" type="PropData" id=1]
[node name="Spatial" type="Spatial"]
[node name="PropInstanceMerger" type="PropInstanceMerger" parent="."]
prop_data = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.94334, 1.30619, -0.907624 )
current = true
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( -0.271161, -0.49368, -0.826288, 0.22214, -0.867374, 0.445328, -0.93655, -0.0627965, 0.344864, -3.51848, 4.16025, -2.59115 )