summaryrefslogtreecommitdiffhomepage
path: root/examples/models
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-10-12 21:01:49 +0200
committerraysan5 <[email protected]>2021-10-12 21:01:49 +0200
commitf1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b (patch)
tree20953a63c6803767d11629e43d9d9dbb66106f0b /examples/models
parent007e840be1572293b6c416f26e9fead42305d71b (diff)
downloadraylib-f1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b.tar.gz
raylib-f1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b.zip
Reviewed models examples paths
Diffstat (limited to 'examples/models')
-rw-r--r--examples/models/models_animation.c10
-rw-r--r--examples/models/models_loading_gltf.c16
-rw-r--r--examples/models/models_loading_vox.c4
-rw-r--r--examples/models/models_mesh_picking.c12
4 files changed, 21 insertions, 21 deletions
diff --git a/examples/models/models_animation.c b/examples/models/models_animation.c
index 4fde9baf..6386ad76 100644
--- a/examples/models/models_animation.c
+++ b/examples/models/models_animation.c
@@ -37,17 +37,17 @@ int main(void)
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 45.0f; // Camera field-of-view Y
- camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
- Model model = LoadModel("resources/guy/guy.iqm"); // Load the animated model mesh and basic data
- Texture2D texture = LoadTexture("resources/guy/guytex.png"); // Load model texture and set material
- SetMaterialTexture(&model.materials[0], MATERIAL_MAP_DIFFUSE, texture); // Set model material map texture
+ Model model = LoadModel("resources/models/iqm/guy.iqm"); // Load the animated model mesh and basic data
+ Texture2D texture = LoadTexture("resources/models/iqm/guytex.png"); // Load model texture and set material
+ SetMaterialTexture(&model.materials[0], MATERIAL_MAP_DIFFUSE, texture); // Set model material map texture
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
// Load animation data
int animsCount = 0;
- ModelAnimation *anims = LoadModelAnimations("resources/guy/guyanim.iqm", &animsCount);
+ ModelAnimation *anims = LoadModelAnimations("resources/models/iqm/guyanim.iqm", &animsCount);
int animFrameCounter = 0;
SetCameraMode(camera, CAMERA_FREE); // Set free camera mode
diff --git a/examples/models/models_loading_gltf.c b/examples/models/models_loading_gltf.c
index 3f843c9d..5ef5fc5a 100644
--- a/examples/models/models_loading_gltf.c
+++ b/examples/models/models_loading_gltf.c
@@ -42,14 +42,14 @@ int main(void)
Model model[MAX_MODELS] = { 0 };
- model[0] = LoadModel("resources/gltf/raylib_32x32.glb");
- model[1] = LoadModel("resources/gltf/rigged_figure.glb");
- model[2] = LoadModel("resources/gltf/GearboxAssy.glb");
- model[3] = LoadModel("resources/gltf/BoxAnimated.glb");
- model[4] = LoadModel("resources/gltf/AnimatedTriangle.gltf");
- model[5] = LoadModel("resources/gltf/AnimatedMorphCube.glb");
- model[6] = LoadModel("resources/gltf/vertex_colored_object.glb");
- model[7] = LoadModel("resources/gltf/girl.glb");
+ model[0] = LoadModel("resources/models/gltf/raylib_32x32.glb");
+ model[1] = LoadModel("resources/models/gltf/rigged_figure.glb");
+ model[2] = LoadModel("resources/models/gltf/GearboxAssy.glb");
+ model[3] = LoadModel("resources/models/gltf/BoxAnimated.glb");
+ model[4] = LoadModel("resources/models/gltf/AnimatedTriangle.gltf");
+ model[5] = LoadModel("resources/models/gltf/AnimatedMorphCube.glb");
+ model[6] = LoadModel("resources/models/gltf/vertex_colored_object.glb");
+ model[7] = LoadModel("resources/models/gltf/girl.glb");
int currentModel = 0;
diff --git a/examples/models/models_loading_vox.c b/examples/models/models_loading_vox.c
index fd268f07..b85c61f3 100644
--- a/examples/models/models_loading_vox.c
+++ b/examples/models/models_loading_vox.c
@@ -5,9 +5,9 @@
* This example has been created using raylib 3.8 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Example contributed by Johann Nadalutti
+* Example contributed by Johann Nadalutti (@procfxgen)
*
-* Copyright (c) 2021 Johann Nadalutti
+* Copyright (c) 2021 Johann Nadalutti (@procfxgen)
*
********************************************************************************************/
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c
index 0ac70907..f48683e4 100644
--- a/examples/models/models_mesh_picking.c
+++ b/examples/models/models_mesh_picking.c
@@ -31,16 +31,16 @@ int main(void)
camera.target = (Vector3){ 0.0f, 8.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.6f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 45.0f; // Camera field-of-view Y
- camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
Ray ray = { 0 }; // Picking ray
- Model tower = LoadModel("resources/models/turret.obj"); // Load OBJ model
- Texture2D texture = LoadTexture("resources/models/turret_diffuse.png"); // Load model texture
- tower.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set model diffuse texture
+ Model tower = LoadModel("resources/models/obj/turret.obj"); // Load OBJ model
+ Texture2D texture = LoadTexture("resources/models/obj/turret_diffuse.png"); // Load model texture
+ tower.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set model diffuse texture
- Vector3 towerPos = { 0.0f, 0.0f, 0.0f }; // Set model position
- BoundingBox towerBBox = GetMeshBoundingBox(tower.meshes[0]); // Get mesh bounding box
+ Vector3 towerPos = { 0.0f, 0.0f, 0.0f }; // Set model position
+ BoundingBox towerBBox = GetMeshBoundingBox(tower.meshes[0]); // Get mesh bounding box
// Ground quad
Vector3 g0 = (Vector3){ -50.0f, 0.0f, -50.0f };