Tunnel scene work + minor material fixes

This commit is contained in:
karl 2020-01-28 17:00:48 +01:00
parent edea7fc8b4
commit 5f9ae3450b
8 changed files with 1217 additions and 6 deletions

View File

@ -2,8 +2,7 @@
[ext_resource path="res://Resources/Models/Material_002.material" type="Material" id=1] [ext_resource path="res://Resources/Models/Material_002.material" type="Material" id=1]
[ext_resource path="res://Resources/Models/leaves.material" type="Material" id=2] [ext_resource path="res://Resources/Models/leaves.material" type="Material" id=2]
[ext_resource path="res://Resources/Models/Material_001.material" type="Material" id=3] [ext_resource path="res://Resources/Models/noppen.material" type="Material" id=3]
[ext_resource path="res://Resources/Models/noppen.material" type="Material" id=4]
[sub_resource type="ArrayMesh" id=1] [sub_resource type="ArrayMesh" id=1]
resource_name = "Cylinder.001" resource_name = "Cylinder.001"
@ -34,6 +33,13 @@ surfaces/1 = {
"vertex_count": 240 "vertex_count": 240
} }
[sub_resource type="SpatialMaterial" id=4]
resource_name = "Material.001"
params_cull_mode = 2
albedo_color = Color( 1, 0.764706, 0.992157, 1 )
metallic = 0.1
roughness = 0.47
[sub_resource type="ArrayMesh" id=2] [sub_resource type="ArrayMesh" id=2]
resource_name = "Cylinder" resource_name = "Cylinder"
surfaces/0 = { surfaces/0 = {
@ -43,7 +49,7 @@ surfaces/0 = {
"blend_shape_data": [ ], "blend_shape_data": [ ],
"format": 97559, "format": 97559,
"index_count": 828, "index_count": 828,
"material": ExtResource( 3 ), "material": SubResource( 4 ),
"name": "Material.001", "name": "Material.001",
"primitive": 4, "primitive": 4,
"skeleton_aabb": [ ], "skeleton_aabb": [ ],
@ -56,7 +62,7 @@ surfaces/1 = {
"blend_shape_data": [ ], "blend_shape_data": [ ],
"format": 97559, "format": 97559,
"index_count": 60, "index_count": 60,
"material": ExtResource( 4 ), "material": ExtResource( 3 ),
"name": "noppen", "name": "noppen",
"primitive": 4, "primitive": 4,
"skeleton_aabb": [ ], "skeleton_aabb": [ ],

View File

@ -301,7 +301,7 @@ transform = Transform( 0.422618, 0, -0.906308, 0, 1, 0, 0.906308, 0, 0.422618, 6
transform = Transform( -0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, -0.707107, 21, 0, 36 ) transform = Transform( -0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, -0.707107, 21, 0, 36 )
[node name="TreeTentacle3" parent="NavigationMeshInstance" instance=ExtResource( 14 )] [node name="TreeTentacle3" parent="NavigationMeshInstance" instance=ExtResource( 14 )]
transform = Transform( -0.34202, 0, -0.939693, 0, 1, 0, 0.939693, 0, -0.34202, 21, 0, -6 ) transform = Transform( 0.965926, 0, 0.258819, 0, 1, 0, -0.258819, 0, 0.965926, 21, 0, -6 )
[node name="TreeTentacle4" parent="NavigationMeshInstance" instance=ExtResource( 14 )] [node name="TreeTentacle4" parent="NavigationMeshInstance" instance=ExtResource( 14 )]
transform = Transform( -0.34202, 0, -0.939693, 0, 1, 0, 0.939693, 0, -0.34202, 5, 0, -6 ) transform = Transform( -0.34202, 0, -0.939693, 0, 1, 0, 0.939693, 0, -0.34202, 5, 0, -6 )

View File

@ -1,3 +1,77 @@
[gd_scene format=2] [gd_scene load_steps=6 format=2]
[ext_resource path="res://Characters/Player/Player.tscn" type="PackedScene" id=1]
[sub_resource type="SpatialMaterial" id=2]
params_cull_mode = 1
albedo_color = Color( 0, 0, 0, 1 )
metallic = 0.68
roughness = 0.42
[sub_resource type="ArrayMesh" id=1]
resource_name = "Cylinder"
surfaces/0 = {
"aabb": AABB( -0.866026, -1, -1, 1.73205, 2.00001, 2 ),
"array_data": PoolByteArray( 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 191, 63, 0, 147, 0, 147, 0, 193, 127, 0, 60, 0, 0, 217, 179, 93, 63, 0, 0, 128, 191, 0, 0, 0, 191, 63, 0, 147, 0, 147, 0, 193, 127, 170, 58, 0, 56, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 191, 63, 0, 147, 0, 147, 0, 193, 127, 0, 60, 0, 56, 217, 179, 93, 63, 0, 0, 128, 63, 0, 0, 0, 191, 127, 0, 0, 0, 0, 0, 129, 127, 170, 58, 0, 0, 215, 179, 93, 63, 0, 0, 128, 191, 2, 0, 0, 63, 127, 0, 0, 0, 0, 0, 129, 127, 85, 57, 0, 56, 217, 179, 93, 63, 0, 0, 128, 191, 0, 0, 0, 191, 127, 0, 0, 0, 0, 0, 129, 127, 170, 58, 0, 56, 215, 179, 93, 63, 0, 0, 128, 63, 2, 0, 0, 63, 63, 0, 109, 0, 109, 0, 193, 127, 85, 57, 0, 0, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 63, 0, 109, 0, 109, 0, 193, 127, 0, 56, 0, 56, 215, 179, 93, 63, 0, 0, 128, 191, 2, 0, 0, 63, 63, 0, 109, 0, 109, 0, 193, 127, 85, 57, 0, 56, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 63, 193, 0, 109, 0, 109, 0, 63, 127, 0, 56, 0, 0, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 62, 193, 0, 109, 0, 109, 0, 63, 127, 85, 53, 0, 56, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 193, 0, 109, 0, 109, 0, 63, 127, 0, 56, 0, 56, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 191, 0, 127, 0, 0, 126, 0, 0, 127, 0, 52, 20, 56, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 62, 0, 127, 0, 0, 127, 0, 0, 127, 101, 41, 245, 58, 215, 179, 93, 63, 0, 0, 128, 63, 2, 0, 0, 63, 0, 127, 0, 0, 127, 0, 0, 127, 83, 55, 245, 58, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 62, 129, 0, 0, 0, 0, 0, 127, 127, 85, 53, 0, 0, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 190, 129, 0, 0, 0, 0, 0, 127, 127, 85, 49, 0, 56, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 62, 129, 0, 0, 0, 0, 0, 127, 127, 85, 53, 0, 56, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 190, 193, 0, 147, 0, 147, 0, 63, 127, 85, 49, 0, 0, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 191, 193, 0, 147, 0, 147, 0, 63, 127, 0, 0, 0, 56, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 190, 193, 0, 147, 0, 147, 0, 63, 127, 85, 49, 0, 56, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 62, 0, 129, 0, 0, 127, 0, 0, 129, 86, 56, 245, 58, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 190, 0, 129, 0, 0, 127, 0, 0, 129, 86, 56, 10, 57, 217, 179, 93, 63, 0, 0, 128, 191, 0, 0, 0, 191, 0, 129, 0, 0, 127, 0, 0, 129, 169, 59, 10, 57, 217, 179, 93, 63, 0, 0, 128, 63, 0, 0, 0, 191, 63, 0, 147, 0, 147, 0, 193, 127, 170, 58, 0, 0, 217, 179, 93, 63, 0, 0, 128, 63, 0, 0, 0, 191, 127, 0, 0, 0, 0, 0, 129, 127, 170, 58, 0, 0, 215, 179, 93, 63, 0, 0, 128, 63, 2, 0, 0, 63, 127, 0, 0, 0, 0, 0, 129, 127, 85, 57, 0, 0, 215, 179, 93, 63, 0, 0, 128, 191, 2, 0, 0, 63, 127, 0, 0, 0, 0, 0, 129, 127, 85, 57, 0, 56, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 63, 63, 0, 109, 0, 109, 0, 193, 127, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 63, 193, 0, 109, 0, 109, 0, 63, 127, 0, 56, 0, 0, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 62, 193, 0, 109, 0, 109, 0, 63, 127, 85, 53, 0, 0, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 62, 193, 0, 109, 0, 109, 0, 63, 127, 85, 53, 0, 56, 217, 179, 93, 63, 0, 0, 128, 63, 0, 0, 0, 191, 0, 127, 0, 0, 127, 0, 0, 127, 83, 55, 10, 57, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 191, 0, 127, 0, 0, 127, 0, 0, 127, 0, 52, 20, 56, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 190, 0, 127, 0, 0, 127, 0, 0, 127, 101, 41, 10, 57, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 62, 0, 127, 0, 0, 127, 0, 0, 127, 101, 41, 245, 58, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 63, 0, 127, 0, 0, 127, 0, 0, 127, 0, 52, 235, 59, 217, 179, 93, 191, 0, 0, 128, 63, 253, 255, 255, 190, 129, 0, 0, 0, 0, 0, 127, 127, 85, 49, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 128, 191, 193, 0, 147, 0, 147, 0, 63, 127, 0, 0, 0, 0, 217, 179, 93, 191, 0, 0, 128, 191, 253, 255, 255, 190, 0, 129, 0, 0, 127, 0, 0, 129, 86, 56, 10, 57, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 191, 0, 129, 0, 0, 127, 0, 0, 129, 0, 58, 20, 56, 217, 179, 93, 63, 0, 0, 128, 191, 0, 0, 0, 191, 0, 129, 0, 0, 127, 0, 0, 129, 169, 59, 10, 57, 215, 179, 93, 63, 0, 0, 128, 191, 2, 0, 0, 63, 0, 129, 0, 0, 127, 0, 0, 129, 169, 59, 245, 58, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 0, 129, 0, 0, 127, 0, 0, 129, 0, 58, 235, 59, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 0, 129, 0, 0, 127, 0, 0, 129, 0, 58, 235, 59 ),
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 3, 0, 5, 0, 4, 0, 6, 0, 8, 0, 7, 0, 9, 0, 11, 0, 10, 0, 12, 0, 14, 0, 13, 0, 15, 0, 17, 0, 16, 0, 18, 0, 20, 0, 19, 0, 21, 0, 23, 0, 22, 0, 0, 0, 1, 0, 24, 0, 25, 0, 27, 0, 26, 0, 6, 0, 7, 0, 28, 0, 29, 0, 31, 0, 30, 0, 14, 0, 12, 0, 32, 0, 33, 0, 35, 0, 34, 0, 13, 0, 14, 0, 36, 0, 15, 0, 16, 0, 37, 0, 18, 0, 19, 0, 38, 0, 39, 0, 41, 0, 40, 0, 41, 0, 43, 0, 42, 0, 44, 0, 23, 0, 21, 0 ),
"blend_shape_data": [ ],
"format": 97559,
"index_count": 60,
"primitive": 4,
"skeleton_aabb": [ ],
"vertex_count": 45
}
[sub_resource type="ConcavePolygonShape" id=3]
data = PoolVector3Array( 0, 1, -1, 0, -1, -1, 0.866, -1, -0.5, 0.866, 1, -0.5, 0.866, -1, -0.5, 0.866, -1, 0.5, 0.866, 1, 0.5, 0.866, -1, 0.5, 0, -1, 1, 0, 1, 1, 0, -1, 1, -0.866, -1, 0.5, 0, 1, -1, 0.866, 1, 0.5, -0.866, 1, 0.5, -0.866, 1, 0.5, -0.866, -1, 0.5, -0.866, -1, -0.5, -0.866, 1, -0.5, -0.866, -1, -0.5, 0, -1, -1, -0.866, -1, 0.5, 0.866, -1, -0.5, -0.866, -1, -0.5, 0, 1, -1, 0.866, -1, -0.5, 0.866, 1, -0.5, 0.866, 1, -0.5, 0.866, -1, 0.5, 0.866, 1, 0.5, 0.866, 1, 0.5, 0, -1, 1, 0, 1, 1, 0, 1, 1, -0.866, -1, 0.5, -0.866, 1, 0.5, 0.866, 1, 0.5, 0, 1, -1, 0.866, 1, -0.5, 0, 1, -1, -0.866, 1, 0.5, -0.866, 1, -0.5, -0.866, 1, 0.5, 0.866, 1, 0.5, 0, 1, 1, -0.866, 1, 0.5, -0.866, -1, -0.5, -0.866, 1, -0.5, -0.866, 1, -0.5, 0, -1, -1, 0, 1, -1, -0.866, -1, -0.5, 0.866, -1, -0.5, 0, -1, -1, 0.866, -1, -0.5, 0, -1, 1, 0.866, -1, 0.5, 0, -1, 1, 0.866, -1, -0.5, -0.866, -1, 0.5 )
[sub_resource type="SphereShape" id=4]
radius = 12.1331
[node name="Tunnel" type="Spatial"] [node name="Tunnel" type="Spatial"]
[node name="Cylinder" type="MeshInstance" parent="."]
transform = Transform( -0.95051, 99.5472, 0, -9.95472, -9.5051, 0, 0, 0, 10, 0, 9, 0 )
layers = 3
material_override = SubResource( 2 )
mesh = SubResource( 1 )
material/0 = null
[node name="StaticBody" type="StaticBody" parent="Cylinder"]
collision_layer = 3
collision_mask = 3
[node name="CollisionShape" type="CollisionShape" parent="Cylinder/StaticBody"]
shape = SubResource( 3 )
[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 92, 0, 0 )
layers = 2
light_color = Color( 1, 0.501961, 0.898039, 1 )
omni_range = 343.436
[node name="OmniLight2" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -94, 18, 0 )
light_color = Color( 0.501961, 0.894118, 1, 1 )
omni_range = 343.436
[node name="Player" parent="." instance=ExtResource( 1 )]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -81, 17, 0 )
IsOutside = false
IsInLabyrinth = true
[node name="LabyrinthPort" type="Area" parent="." groups=[
"LabyrinthEntry",
]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 93, 0, 0 )
[node name="CollisionShape" type="CollisionShape" parent="LabyrinthPort"]
shape = SubResource( 4 )
[node name="HousePort" type="Area" parent="." groups=[
"OutsideEntry",
]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -101, 18, 0 )
[node name="CollisionShape" type="CollisionShape" parent="HousePort"]
shape = SubResource( 4 )

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<asset>
<contributor>
<author>Blender User</author>
<authoring_tool>Blender 2.80.75</authoring_tool>
</contributor>
<created>2020-01-28T16:49:41</created>
<modified>2020-01-28T16:49:41</modified>
<unit name="meter" meter="1"/>
<up_axis>Z_UP</up_axis>
</asset>
<library_images/>
<library_geometries>
<geometry id="Cylinder-mesh" name="Cylinder">
<mesh>
<source id="Cylinder-mesh-positions">
<float_array id="Cylinder-mesh-positions-array" count="36">0 1 -1 0 1 1 0.8660255 0.5 -1 0.8660255 0.5 1 0.8660254 -0.5000001 -1 0.8660254 -0.5000001 1 0 -1 -1 0 -1 1 -0.8660255 -0.4999999 -1 -0.8660255 -0.4999999 1 -0.8660255 0.4999999 -1 -0.8660255 0.4999999 1</float_array>
<technique_common>
<accessor source="#Cylinder-mesh-positions-array" count="12" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Cylinder-mesh-normals">
<float_array id="Cylinder-mesh-normals-array" count="48">0.5 0.8660255 0 1 0 0 0.5 -0.8660255 0 -0.5000001 -0.8660253 0 0 0 1 -1 0 0 -0.5000001 0.8660255 0 0 0 -1 1 -1.19209e-7 0 0.5 -0.8660255 0 -0.5000001 -0.8660254 0 0 0 1 1.37651e-7 0 1 0 0 1 1.37651e-7 0 -1 1.37651e-7 0 -1</float_array>
<technique_common>
<accessor source="#Cylinder-mesh-normals-array" count="16" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Cylinder-mesh-map-0">
<float_array id="Cylinder-mesh-map-0-array" count="120">1 1 0.8333333 0.5 1 0.5 0.8333333 1 0.6666666 0.5 0.8333333 0.5 0.6666666 1 0.5 0.5 0.6666666 0.5 0.5 1 0.3333333 0.5 0.5 0.5 0.25 0.49 0.04215389 0.13 0.4578461 0.1299999 0.3333333 1 0.1666666 0.5 0.3333333 0.5 0.1666666 1 0 0.5 0.1666666 0.5 0.5421539 0.13 0.5421539 0.37 0.9578461 0.37 1 1 0.8333333 1 0.8333333 0.5 0.8333333 1 0.6666666 1 0.6666666 0.5 0.6666666 1 0.5 1 0.5 0.5 0.5 1 0.3333333 1 0.3333333 0.5 0.4578461 0.1299999 0.4578461 0.37 0.25 0.49 0.25 0.49 0.04215389 0.37 0.04215389 0.13 0.04215389 0.13 0.25 0.00999999 0.4578461 0.1299999 0.3333333 1 0.1666666 1 0.1666666 0.5 0.1666666 1 0 1 0 0.5 0.5421539 0.37 0.75 0.49 0.9578461 0.37 0.9578461 0.37 0.9578461 0.1299999 0.75 0.00999999 0.75 0.00999999 0.5421539 0.13 0.9578461 0.37</float_array>
<technique_common>
<accessor source="#Cylinder-mesh-map-0-array" count="60" stride="2">
<param name="S" type="float"/>
<param name="T" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="Cylinder-mesh-vertices">
<input semantic="POSITION" source="#Cylinder-mesh-positions"/>
</vertices>
<triangles count="20">
<input semantic="VERTEX" source="#Cylinder-mesh-vertices" offset="0"/>
<input semantic="NORMAL" source="#Cylinder-mesh-normals" offset="1"/>
<input semantic="TEXCOORD" source="#Cylinder-mesh-map-0" offset="2" set="0"/>
<p>1 0 0 2 0 1 0 0 2 3 1 3 4 1 4 2 1 5 5 2 6 6 2 7 4 2 8 7 3 9 8 3 10 6 3 11 1 4 12 9 4 13 5 4 14 9 5 15 10 5 16 8 5 17 11 6 18 0 6 19 10 6 20 8 7 21 10 7 22 2 7 23 1 0 24 3 0 25 2 0 26 3 8 27 5 8 28 4 8 29 5 9 30 7 9 31 6 9 32 7 10 33 9 10 34 8 10 35 5 11 36 3 11 37 1 11 38 1 12 39 11 12 40 9 12 41 9 13 42 7 13 43 5 13 44 9 5 45 11 5 46 10 5 47 11 6 48 1 6 49 0 6 50 10 14 51 0 14 52 2 14 53 2 15 54 4 15 55 6 15 56 6 7 57 8 7 58 2 7 59</p>
</triangles>
</mesh>
</geometry>
</library_geometries>
<library_visual_scenes>
<visual_scene id="Scene" name="Scene">
<node id="Cylinder" name="Cylinder" type="NODE">
<matrix sid="transform">-0.9505103 0 199.0945 0 0 10 0 0 -9.954723 0 -19.01021 9 0 0 0 1</matrix>
<instance_geometry url="#Cylinder-mesh" name="Cylinder"/>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#Scene"/>
</scene>
</COLLADA>

File diff suppressed because it is too large Load Diff