Adding a refernce box of 1mx1mx1m and a reference grid texture for previewer

This commit is contained in:
yannk 2019-04-25 23:10:14 +02:00
parent c6b6c6ed2a
commit b937558dc7
3 changed files with 135 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,103 @@
[gd_scene load_steps=1 format=2]
[sub_resource id=1 type="ArrayMesh"]
resource_name = "Cube"
surfaces/0 = {
"primitive":4,
"arrays":[
Vector3Array(0.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0),
Vector3Array(0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0),
FloatArray(-1.0, 0.0, 0.0, 1.0, -1.0, 0.0, 0.0, 1.0, -1.0, 0.0, 0.0, 1.0, -1.0, 0.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.625, 1.0, 0.375, 0.75, 0.375, 1.0, 0.625, 0.75),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
surfaces/1 = {
"primitive":4,
"arrays":[
Vector3Array(1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0),
Vector3Array(0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0),
FloatArray(0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.625, 0.75, 0.375, 0.5, 0.375, 0.75, 0.625, 0.5),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
surfaces/2 = {
"primitive":4,
"arrays":[
Vector3Array(0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0),
Vector3Array(-1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0),
FloatArray(0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.625, 0.5, 0.375, 0.25, 0.375, 0.5, 0.625, 0.25),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
surfaces/3 = {
"primitive":4,
"arrays":[
Vector3Array(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0),
Vector3Array(0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0),
FloatArray(1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.625, 0.25, 0.375, 0.0, 0.375, 0.25, 0.625, 0.0),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
surfaces/4 = {
"primitive":4,
"arrays":[
Vector3Array(1.0, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0),
Vector3Array(1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0),
FloatArray(0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.375, 0.5, 0.125, 0.25, 0.125, 0.5, 0.375, 0.25),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
surfaces/5 = {
"primitive":4,
"arrays":[
Vector3Array(0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0),
Vector3Array(0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0),
FloatArray(0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.875, 0.5, 0.625, 0.25, 0.625, 0.5, 0.875, 0.25),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 0, 1, 3)
],
"morph_arrays":[]
}
[node type="Spatial" name="Scene"]
[node name="reference_box" type="MeshInstance" parent="."]
mesh = SubResource(1)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)

View file

@ -0,0 +1,32 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://meshes/props/reference_box/reference_box.escn" type="PackedScene" id=1]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0.12549, 1, 0, 1 )
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0.027451, 0.156863, 1, 1 )
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0.686275, 0.282353, 0.282353, 1 )
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.337255, 0.678431, 0.333333, 1 )
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 1, 0, 0, 1 )
[sub_resource type="SpatialMaterial" id=6]
albedo_color = Color( 0.231373, 0.298039, 0.67451, 1 )
[node name="reference_box" instance=ExtResource( 1 )]
[node name="reference_box" parent="." index="0"]
material/0 = SubResource( 1 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
material/4 = SubResource( 5 )
material/5 = SubResource( 6 )