This commit is contained in:
OusmBlueNinja 2024-12-27 13:26:13 -06:00
parent 24bf93cd30
commit 2d8f8c335c
5 changed files with 183 additions and 70 deletions

12
assets/models/Skymap.mtl Normal file
View File

@ -0,0 +1,12 @@
# Material File for Cube with Sky Map Texture
newmtl SkyMapMaterial
Ka 1.000 1.000 1.000 # Ambient color
Kd 1.000 1.000 1.000 # Diffuse color
Ks 0.000 0.000 0.000 # Specular color
d 1.0 # Transparency
Ns 0 # Shininess
illum 2 # Illumination model
# Texture Map
map_Kd skymap.png # Replace with your sky map texture file name

101
assets/models/Skymap.obj Normal file
View File

@ -0,0 +1,101 @@
# Cube OBJ File with Sky Map Texture Mapping
# Each face of the cube is mapped to a 1/6th segment of the sky map texture.
mtllib cube_sky.mtl
# Vertex Positions
v -1.000000 -1.000000 1.000000
v 1.000000 -1.000000 1.000000
v 1.000000 1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v -1.000000 1.000000 -1.000000
v -1.000000 -1.000000 -1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.000000 1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v 1.000000 1.000000 1.000000
v 1.000000 1.000000 -1.000000
v -1.000000 1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v 1.000000 1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
# Texture Coordinates
# Assuming the sky map is a horizontal strip with six equal sections.
# Front Face UVs (0/6 to 1/6 of the texture width)
vt 0.000000 0.000000
vt 0.166667 0.000000
vt 0.166667 1.000000
vt 0.000000 1.000000
# Back Face UVs (1/6 to 2/6 of the texture width)
vt 0.166667 0.000000
vt 0.333333 0.000000
vt 0.333333 1.000000
vt 0.166667 1.000000
# Left Face UVs (2/6 to 3/6 of the texture width)
vt 0.333333 0.000000
vt 0.500000 0.000000
vt 0.500000 1.000000
vt 0.333333 1.000000
# Right Face UVs (3/6 to 4/6 of the texture width)
vt 0.500000 0.000000
vt 0.666667 0.000000
vt 0.666667 1.000000
vt 0.500000 1.000000
# Top Face UVs (4/6 to 5/6 of the texture width)
vt 0.666667 0.000000
vt 0.833333 0.000000
vt 0.833333 1.000000
vt 0.666667 1.000000
# Bottom Face UVs (5/6 to 6/6 of the texture width)
vt 0.833333 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.833333 1.000000
# Faces
usemtl SkyMapMaterial
# Front Face
f 1/1 2/2 3/3
f 3/3 4/4 1/1
# Back Face
f 5/5 6/6 7/7
f 7/7 8/8 5/5
# Left Face
f 9/9 10/10 11/11
f 11/11 12/12 9/9
# Right Face
f 13/13 14/14 15/15
f 15/15 16/16 13/13
# Top Face
f 17/17 18/18 19/19
f 19/19 20/20 17/17
# Bottom Face
f 21/21 22/22 23/23
f 23/23 24/24 21/21

BIN
assets/models/skymap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -1,121 +1,121 @@
Entities:
- ID: 0
Name: Carrrrr Yeaaa
Name: Car
Components:
Transform:
Position: [0, 2.79999995, -12.6000004]
Rotation: [149.699997, -137.899994, -39.2999992]
Scale: [1, 1, 1]
Mesh:
vao: 2
indexCount: 15810
textureID: 1
MeshPath: assets/models/LowPolyFiatUNO.obj
- ID: 1
Name: Cube Yay
Components:
Transform:
Position: [-11.8999996, -2, -21.7999992]
Rotation: [-9, -18.6000004, -28.1000004]
Position: [0, 2.79999995, -12.6000004]
Rotation: [149.699997, -137.899994, -39.2999992]
Scale: [1, 1, 1]
- ID: 1
Name: Plant
Components:
Mesh:
vao: 5
indexCount: 36
textureID: 2
MeshPath: assets/models/DefaultMesh.obj
vao: 7
indexCount: 589632
textureID: 7
MeshPath: assets/models/OutSidePlant.obj
Transform:
Position: [-8.60000038, 6.5, -15.6000004]
Rotation: [-180, 0, 0]
Scale: [1, 1, 1]
- ID: 2
Name: Cube Yay 2
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [7.80000019, -8.10000038, -20.6000004]
Rotation: [-86.3000031, 0, -66]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
- ID: 3
Name: Cube Yay 3
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [-1.20000005, -3.4000001, -17.7000008]
Rotation: [-23.5, 15.8999996, -59.9000015]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
- ID: 4
Name: Cube Yay 4
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 5
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [8.10000038, 0.800000012, -12]
Rotation: [-17.2999992, -16.1000004, -19.2999992]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 5
MeshPath: assets/models/DefaultMesh.obj
- ID: 5
Name: Colormap
Components:
Transform:
Position: [0, 0, 43.2000008]
Rotation: [0, 0, 0]
Scale: [100, 100, 100]
Mesh:
vao: 5
vao: 6
indexCount: 36
textureID: 6
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [0, 0, 0]
Rotation: [0, 0, -90]
Scale: [100, 100, 100]
- ID: 6
Name: Cube Yay 6
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [-6.5, -6, -18]
Rotation: [15.8000002, -18.2000008, -11.1000004]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
- ID: 7
Name: Cube Yay 7
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [6.5, 1.79999995, -23.8999996]
Rotation: [-16.1000004, -15.8999996, -35]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
- ID: 8
Name: Cube Yay 8
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 1
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [-7.80000019, 0.200000003, -29.7999992]
Rotation: [22.2999992, -32.7999992, 0]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 1
MeshPath: assets/models/DefaultMesh.obj
- ID: 9
Name: Cube Yay 9
Components:
Mesh:
vao: 6
indexCount: 36
textureID: 2
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [5.5, -2.9000001, -19.5]
Rotation: [-41.4000015, -22.6000004, -52.2999992]
Scale: [1, 1, 1]
Mesh:
vao: 5
indexCount: 36
textureID: 2
MeshPath: assets/models/DefaultMesh.obj
Scale: [1, 1, 1]

View File

@ -8,9 +8,9 @@ Entities:
Scale: [1, 1, 1]
Mesh:
vao: 2
indexCount: 200000
indexCount: 15810
textureID: 1
MeshPath: assets/models/DefaultMesh.obj
MeshPath: assets/models/LowPolyFiatUNO.obj
- ID: 1
Name: Cube Yay
Components:
@ -19,7 +19,7 @@ Entities:
Rotation: [-9, -18.6000004, -28.1000004]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 2
MeshPath: assets/models/DefaultMesh.obj
@ -31,7 +31,7 @@ Entities:
Rotation: [-86.3000031, 0, -66]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
@ -43,7 +43,7 @@ Entities:
Rotation: [-23.5, 15.8999996, -59.9000015]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
@ -55,7 +55,7 @@ Entities:
Rotation: [-17.2999992, -16.1000004, -19.2999992]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 5
MeshPath: assets/models/DefaultMesh.obj
@ -63,14 +63,14 @@ Entities:
Name: Colormap
Components:
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 6
MeshPath: assets/models/DefaultMesh.obj
Transform:
Position: [-6.80000019, 2.70000005, -13.8000002]
Rotation: [-39.7000008, 0, -33.2000008]
Scale: [1, 1, 1]
Position: [0, 0, 0]
Rotation: [0, 0, -90]
Scale: [100, 100, 100]
- ID: 6
Name: Cube Yay 6
Components:
@ -79,7 +79,7 @@ Entities:
Rotation: [15.8000002, -18.2000008, -11.1000004]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 3
MeshPath: assets/models/DefaultMesh.obj
@ -91,7 +91,7 @@ Entities:
Rotation: [-16.1000004, -15.8999996, -35]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 4
MeshPath: assets/models/DefaultMesh.obj
@ -100,10 +100,10 @@ Entities:
Components:
Transform:
Position: [-7.80000019, 0.200000003, -29.7999992]
Rotation: [22.5, -32.7999992, 0]
Rotation: [22.2999992, -32.7999992, 0]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 1
MeshPath: assets/models/DefaultMesh.obj
@ -115,7 +115,7 @@ Entities:
Rotation: [-41.4000015, -22.6000004, -52.2999992]
Scale: [1, 1, 1]
Mesh:
vao: 1
vao: 5
indexCount: 36
textureID: 2
MeshPath: assets/models/DefaultMesh.obj