Now road, terrain and buildings work fine

This commit is contained in:
2024-05-26 01:21:19 +03:00
parent d0db1e45a3
commit ab5f35eba1
20 changed files with 2625 additions and 649 deletions
Binary file not shown.
Binary file not shown.
+315
View File
@@ -0,0 +1,315 @@
{
"asset" : {
"generator" : "Khronos glTF Blender I/O v3.3.32",
"version" : "2.0"
},
"extensionsUsed" : [
"KHR_materials_specular",
"KHR_materials_ior"
],
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
0,
1,
2
]
}
],
"nodes" : [
{
"mesh" : 0,
"name" : "road-lane-center"
},
{
"mesh" : 1,
"name" : "road-lane-mid",
"translation" : [
1.100000023841858,
0,
0
]
},
{
"mesh" : 2,
"name" : "roadd-sidewalk",
"translation" : [
2.200000047683716,
0,
0
]
}
],
"materials" : [
{
"extensions" : {
"KHR_materials_specular" : {
"specularColorFactor" : [
0.474271529955476,
0.474271529955476,
0.474271529955476
]
},
"KHR_materials_ior" : {
"ior" : 1.4500000476837158
}
},
"name" : "road-material",
"pbrMetallicRoughness" : {
"baseColorTexture" : {
"index" : 0
},
"metallicFactor" : 0.20000000298023224
}
}
],
"meshes" : [
{
"name" : "road-lane-center",
"primitives" : [
{
"attributes" : {
"POSITION" : 0,
"NORMAL" : 1,
"TEXCOORD_0" : 2
},
"indices" : 3,
"material" : 0
}
]
},
{
"name" : "road-lane-mid",
"primitives" : [
{
"attributes" : {
"POSITION" : 4,
"NORMAL" : 5,
"TEXCOORD_0" : 6
},
"indices" : 7,
"material" : 0
}
]
},
{
"name" : "road-sidewalk",
"primitives" : [
{
"attributes" : {
"POSITION" : 8,
"NORMAL" : 9,
"TEXCOORD_0" : 10
},
"indices" : 11,
"material" : 0
}
]
}
],
"textures" : [
{
"sampler" : 0,
"source" : 0
}
],
"images" : [
{
"mimeType" : "image/png",
"name" : "road",
"uri" : "road.png"
}
],
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5126,
"count" : 32,
"max" : [
-8.847564458847046e-09,
0.12099996209144592,
5.960464477539063e-08
],
"min" : [
-0.9999999403953552,
-0.09999995678663254,
-0.5
],
"type" : "VEC3"
},
{
"bufferView" : 1,
"componentType" : 5126,
"count" : 32,
"type" : "VEC3"
},
{
"bufferView" : 2,
"componentType" : 5126,
"count" : 32,
"type" : "VEC2"
},
{
"bufferView" : 3,
"componentType" : 5123,
"count" : 48,
"type" : "SCALAR"
},
{
"bufferView" : 4,
"componentType" : 5126,
"count" : 80,
"max" : [
9.921204764395952e-07,
0.1214386522769928,
-6.735790520906448e-07
],
"min" : [
-0.9999990463256836,
-0.09999995678663254,
-0.5000007152557373
],
"type" : "VEC3"
},
{
"bufferView" : 5,
"componentType" : 5126,
"count" : 80,
"type" : "VEC3"
},
{
"bufferView" : 6,
"componentType" : 5126,
"count" : 80,
"type" : "VEC2"
},
{
"bufferView" : 7,
"componentType" : 5123,
"count" : 126,
"type" : "SCALAR"
},
{
"bufferView" : 8,
"componentType" : 5126,
"count" : 42,
"max" : [
2.5033950805664062e-05,
0.19999995827674866,
0
],
"min" : [
-1.100000023841858,
-0.10000000149011612,
-0.5
],
"type" : "VEC3"
},
{
"bufferView" : 9,
"componentType" : 5126,
"count" : 42,
"type" : "VEC3"
},
{
"bufferView" : 10,
"componentType" : 5126,
"count" : 42,
"type" : "VEC2"
},
{
"bufferView" : 11,
"componentType" : 5123,
"count" : 66,
"type" : "SCALAR"
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteLength" : 384,
"byteOffset" : 0,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 384,
"byteOffset" : 384,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 256,
"byteOffset" : 768,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 96,
"byteOffset" : 1024,
"target" : 34963
},
{
"buffer" : 0,
"byteLength" : 960,
"byteOffset" : 1120,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 960,
"byteOffset" : 2080,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 640,
"byteOffset" : 3040,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 252,
"byteOffset" : 3680,
"target" : 34963
},
{
"buffer" : 0,
"byteLength" : 504,
"byteOffset" : 3932,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 504,
"byteOffset" : 4436,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 336,
"byteOffset" : 4940,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 132,
"byteOffset" : 5276,
"target" : 34963
}
],
"samplers" : [
{
"magFilter" : 9729,
"minFilter" : 9987
}
],
"buffers" : [
{
"byteLength" : 5408,
"uri" : "road-lanes.bin"
}
]
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

+35
View File
@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/road.png-fffb0f4010c0e3e4e2d8a7ecd084e72d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://astream/road/road.png"
dest_files=[ "res://.import/road.png-fffb0f4010c0e3e4e2d8a7ecd084e72d.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
+3
View File
@@ -45,3 +45,6 @@ tile_size = 128
view_distance = 2
[road]
road_lines_path = "res://astream/road_lines.json"
center_mesh = "res://astream/road/road-lanes_road-lane-center.mesh"
mid_mesh = "res://astream/road/road-lanes_road-lane-mid.mesh"
sidewalk_mesh = "res://astream/road/road-lanes_road-sidewalk.mesh"