Added some stuff idk
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
56
assets/models/OutSidePlant.mtl
Normal file
@ -0,0 +1,56 @@
|
||||
# Blender 4.3.2 MTL File: 'OutSidePlant.blend'
|
||||
# www.blender.org
|
||||
|
||||
newmtl Concreto
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.800000 0.800000 0.800000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
map_Kd vegetation_tree_bark_40.png
|
||||
|
||||
|
||||
newmtl Dirty
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.800000 0.800000 0.800000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
map_Kd vegetation_tree_bark_40.png
|
||||
|
||||
|
||||
newmtl Galhos
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.800000 0.800000 0.800000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl Material.002
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.800000 0.800000 0.800000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
||||
|
||||
newmtl Material.004
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Kd 0.800000 0.800000 0.800000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.000000
|
||||
d 1.000000
|
||||
illum 2
|
438686
assets/models/OutSidePlant.obj
Normal file
BIN
assets/models/OutSidePlant/Model.jpg
Normal file
After Width: | Height: | Size: 216 KiB |
BIN
assets/models/OutSidePlant/OutSidePlant.blend
Normal file
BIN
assets/models/OutSidePlant/OutSidePlant.blend1
Normal file
After Width: | Height: | Size: 598 KiB |
BIN
assets/models/OutSidePlant/Textures/FolhaAlpha.jpg
Normal file
After Width: | Height: | Size: 766 KiB |
BIN
assets/models/OutSidePlant/Textures/FolhaAlphaNormalMap.jpg
Normal file
After Width: | Height: | Size: 334 KiB |
After Width: | Height: | Size: 3.1 MiB |
After Width: | Height: | Size: 804 KiB |
BIN
assets/models/OutSidePlant/Textures/vegetation_tree_bark_40.png
Normal file
After Width: | Height: | Size: 2.7 MiB |
BIN
assets/models/OutSidePlant/render.png
Normal file
After Width: | Height: | Size: 810 KiB |
BIN
assets/models/p8tjioka3rwg-OutSidePlant.rar
Normal file
BIN
assets/models/vegetation_tree_bark_40.png
Normal file
After Width: | Height: | Size: 2.7 MiB |
@ -1,111 +1,122 @@
|
||||
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: 200000
|
||||
textureID: 1
|
||||
Transform:
|
||||
Position: [0, 2.79999995, -12.6000004]
|
||||
Rotation: [149.699997, -137.899994, -39.2999992]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 1
|
||||
Name: Left Cube
|
||||
Components:
|
||||
Transform:
|
||||
Position: [-11.6999998, -2, -21.7999992]
|
||||
Rotation: [-9, -18.6000004, -28.1000004]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 2
|
||||
Transform:
|
||||
Position: [-11.6999998, -2, -21.7999992]
|
||||
Rotation: [-9, -18.6000004, -28.1000004]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 2
|
||||
Name: Right Cube Top
|
||||
Components:
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 3
|
||||
Transform:
|
||||
Position: [8, -8.10000038, -20.6000004]
|
||||
Rotation: [-86.3000031, 0, -66]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 3
|
||||
- ID: 3
|
||||
Name: Center Grass
|
||||
Components:
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 4
|
||||
Transform:
|
||||
Position: [-0.600000024, -3.4000001, -17.7000008]
|
||||
Rotation: [-23.5, 15.8999996, -59.9000015]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 4
|
||||
- ID: 4
|
||||
Name: Right Most
|
||||
Components:
|
||||
Transform:
|
||||
Position: [8.10000038, 0.5, -12]
|
||||
Rotation: [-17.2999992, -16.1000004, -19.2999992]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 5
|
||||
Transform:
|
||||
Position: [8.10000038, 0.5, -12]
|
||||
Rotation: [-17.2999992, -16.1000004, -19.2999992]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 5
|
||||
Name: Left Screen Mirror
|
||||
Components:
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 6
|
||||
Transform:
|
||||
Position: [-6.80000019, 2.29999995, -13.8000002]
|
||||
Rotation: [-39.7000008, 0, -33.2000008]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 6
|
||||
- ID: 6
|
||||
Name: Top Left
|
||||
Components:
|
||||
Transform:
|
||||
Position: [-6.9000001, -6, -18]
|
||||
Rotation: [15.8000002, -18.2000008, -11.1000004]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 3
|
||||
Transform:
|
||||
Position: [-6.9000001, -6, -18]
|
||||
Rotation: [15.8000002, -18.2000008, -11.1000004]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 7
|
||||
Name: Bottom Grass
|
||||
Components:
|
||||
Transform:
|
||||
Position: [6.5, 1.79999995, -23.8999996]
|
||||
Rotation: [-16.1000004, -15.8999996, -35]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 4
|
||||
Transform:
|
||||
Position: [6.5, 1.79999995, -23.8999996]
|
||||
Rotation: [-16.1000004, -15.8999996, -35]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 8
|
||||
Name: Back Wood
|
||||
Components:
|
||||
Transform:
|
||||
Position: [-7.80000019, -1, -29.7999992]
|
||||
Rotation: [22.5, -34.2999992, 0]
|
||||
Scale: [1, 1, 1]
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 1
|
||||
Transform:
|
||||
Position: [-7.80000019, -1, -29.7999992]
|
||||
Rotation: [22.5, -34.2999992, 0]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 9
|
||||
Name: Right Brick
|
||||
Components:
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 2
|
||||
Transform:
|
||||
Position: [5.5, -3.20000005, -19.5]
|
||||
Rotation: [-41.4000015, -24.8999996, -52.2999992]
|
||||
Scale: [1, 1, 1]
|
||||
- ID: 10
|
||||
Name: Plant
|
||||
Components:
|
||||
Mesh:
|
||||
vao: 1
|
||||
indexCount: 36
|
||||
textureID: 2
|
||||
vao: 3
|
||||
indexCount: 589632
|
||||
textureID: 5
|
||||
Transform:
|
||||
Position: [0, 1.29999995, -2]
|
||||
Rotation: [-180, -58.5999985, 0]
|
||||
Scale: [0.5, 0.5, 0.5]
|
@ -187,6 +187,21 @@ void MyEngine::Run()
|
||||
DEBUG_PRINT("Model loaded successfully with %lld vertices and %lld indices.", model->vertices.size(), model->indices.size());
|
||||
}
|
||||
|
||||
|
||||
// Load a model
|
||||
void* modelPtr2 = g_AssetManager.loadAsset(AssetType::MODEL, "assets/models/OutSidePlant.obj");
|
||||
if (modelPtr2 == nullptr)
|
||||
{
|
||||
DEBUG_PRINT("Failed to load model.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Model* model2 = reinterpret_cast<Model*>(modelPtr2);
|
||||
DEBUG_PRINT("Model loaded successfully with %lld vertices and %lld indices.", model2->vertices.size(), model2->indices.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
g_GameObjects.push_back(newGameObject);
|
||||
DEBUG_PRINT("Put componenent into Global Componenets Subsystem");
|
||||
|
||||
|
@ -185,7 +185,7 @@ static unsigned int g_CubeIndices[] =
|
||||
void RenderWindow::Show()
|
||||
{
|
||||
|
||||
ImGui::Begin("OpenGL Output");
|
||||
ImGui::Begin("Editor");
|
||||
|
||||
ImVec2 size = ImGui::GetContentRegionAvail();
|
||||
int w = static_cast<int>(size.x);
|
||||
|