add new model for metis, used also for moonlet, adrastea, amalthea

This commit is contained in:
yuni 2024-10-03 05:35:12 +02:00
parent 7c5c8e93d4
commit 7b53419899
5 changed files with 218 additions and 4 deletions

BIN
assets/models/metis.bin Normal file

Binary file not shown.

213
assets/models/metis.gltf Normal file
View file

@ -0,0 +1,213 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1
]
}
],
"nodes":[
{
"mesh":0,
"name":"Sphere"
},
{
"mesh":1,
"name":"Collider"
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0.871999979019165,
"roughnessFactor":0.8320000171661377
}
}
],
"meshes":[
{
"name":"Sphere",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
},
{
"name":"Collider",
"primitives":[
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/jpeg",
"name":"mercury",
"uri":"../textures/mercury.jpg"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":6752,
"max":[
0.8060516119003296,
0.7539172172546387,
0.9661670923233032
],
"min":[
-0.7730523347854614,
-0.7580877542495728,
-1.0261967182159424
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":6752,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":6752,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":38088,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":1803,
"max":[
0.806755006313324,
0.7549044489860535,
0.9662958979606628
],
"min":[
-0.7718440294265747,
-0.7597668766975403,
-1.0263147354125977
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":1803,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":1803,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":9522,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":81024,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":81024,
"byteOffset":81024,
"target":34962
},
{
"buffer":0,
"byteLength":54016,
"byteOffset":162048,
"target":34962
},
{
"buffer":0,
"byteLength":76176,
"byteOffset":216064,
"target":34963
},
{
"buffer":0,
"byteLength":21636,
"byteOffset":292240,
"target":34962
},
{
"buffer":0,
"byteLength":21636,
"byteOffset":313876,
"target":34962
},
{
"buffer":0,
"byteLength":14424,
"byteOffset":335512,
"target":34962
},
{
"buffer":0,
"byteLength":19044,
"byteOffset":349936,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":368980,
"uri":"metis.bin"
}
]
}

BIN
src/blender/metis.blend Normal file

Binary file not shown.

View file

@ -80,7 +80,7 @@ actor 0 0 0
only_in_map_at_dist 1e10 jupiter
clickable no
physics off
actor 0 0 0 thebe
actor 0 0 0 metis
name Metis
relativeto jupiter
id metis
@ -95,7 +95,7 @@ actor 0 0 0
only_in_map_at_dist 1e7 metis
clickable no
physics off
actor 0 0 0 thebe
actor 0 0 0 metis
name Adrastea
relativeto jupiter
id adrastea
@ -110,7 +110,7 @@ actor 0 0 0
only_in_map_at_dist 1e7 adrastea
clickable no
physics off
actor 0 0 0 thebe
actor 0 0 0 metis
name Amalthea
relativeto jupiter
id amalthea
@ -328,7 +328,7 @@ actor -55e3 44e3 0 suitv2
rotationx 180
wants matchvelocitywith thebe
actor 5000 0 -3000 moonlet
actor 5000 0 -3000 metis
name Moonlet
collider mesh
relativeto player

View file

@ -55,6 +55,7 @@ pub fn asset_name_to_path(name: &str) -> &'static str {
"marker_satellites" => "models/marker_satellites.glb#Scene0",
"marker_planets" => "models/marker_planets.glb#Scene0",
"point_of_interest" => "models/point_of_interest.glb#Scene0",
"metis" => "models/metis.gltf#Scene0",
"thebe" => "models/thebe.gltf#Scene0",
_ => "models/error.glb#Scene0",
}