Resync .obj models! gitignore was ignoring them!
1
.gitignore
vendored
@ -45,6 +45,7 @@ ipch/
|
|||||||
*.db
|
*.db
|
||||||
*.opendb
|
*.opendb
|
||||||
packages/
|
packages/
|
||||||
|
!examples/models/resources/models/obj/
|
||||||
|
|
||||||
# Ignore compiled binaries
|
# Ignore compiled binaries
|
||||||
*.o
|
*.o
|
||||||
|
@ -39,8 +39,8 @@ int main(void)
|
|||||||
camera.fovy = 45.0f; // Camera field-of-view Y
|
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/models/castle.obj"); // Load model
|
Model model = LoadModel("resources/models/obj/castle.obj"); // Load model
|
||||||
Texture2D texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
|
Texture2D texture = LoadTexture("resources/models/obj/castle_diffuse.png"); // Load model texture
|
||||||
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
|
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
|
||||||
|
|
||||||
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
||||||
|
1725
examples/models/resources/models/obj/bridge.obj
Normal file
BIN
examples/models/resources/models/obj/bridge_diffuse.png
Normal file
After Width: | Height: | Size: 311 KiB |
12919
examples/models/resources/models/obj/castle.obj
Normal file
BIN
examples/models/resources/models/obj/castle_diffuse.png
Normal file
After Width: | Height: | Size: 434 KiB |
68
examples/models/resources/models/obj/cube.obj
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# reference material
|
||||||
|
#mtllib cube.mtl
|
||||||
|
|
||||||
|
# object box
|
||||||
|
|
||||||
|
# vertex (XZY)
|
||||||
|
v 5.5 0 1.5
|
||||||
|
v 8.5 0 1.5
|
||||||
|
v 5.5 0 -1.5
|
||||||
|
v 8.5 0 -1.5
|
||||||
|
v 5.5 3 1.5
|
||||||
|
v 8.5 3 1.5
|
||||||
|
v 5.5 3 -1.5
|
||||||
|
v 8.5 3 -1.5
|
||||||
|
|
||||||
|
# normals (XYZ)
|
||||||
|
vn 0 -1 0
|
||||||
|
vn 0 1 0
|
||||||
|
vn 0 0 1
|
||||||
|
vn 1 0 0
|
||||||
|
vn 0 0 -1
|
||||||
|
vn -1 0 0
|
||||||
|
|
||||||
|
# UVs (XY)
|
||||||
|
vt 0.5 0 0
|
||||||
|
vt 1 0 0
|
||||||
|
vt 1 0.5 0
|
||||||
|
vt 0.5 0.5 0
|
||||||
|
vt 0.5 0.5 0
|
||||||
|
vt 1 0.5 0
|
||||||
|
vt 0.5 1 0
|
||||||
|
vt 1 1 0
|
||||||
|
vt 0 0.5 0
|
||||||
|
vt 1 0.5 0
|
||||||
|
vt 1 0 0
|
||||||
|
vt 0 0 0
|
||||||
|
vt 0 0.5 0
|
||||||
|
vt 1 0.5 0
|
||||||
|
vt 1 1 0
|
||||||
|
vt 0 1 0
|
||||||
|
vt 0.5 0 0
|
||||||
|
vt 0 0 0
|
||||||
|
vt 0 0.5 0
|
||||||
|
vt 0.5 0.5 0
|
||||||
|
vt 0 0.5 0
|
||||||
|
vt 0.5 0.5 0
|
||||||
|
vt 0.5 1 0
|
||||||
|
vt 0 1 0
|
||||||
|
|
||||||
|
# merger
|
||||||
|
g box
|
||||||
|
|
||||||
|
# reference material
|
||||||
|
#usemtl mat01
|
||||||
|
|
||||||
|
# faces
|
||||||
|
f 1/9/1 3/10/1 4/11/1
|
||||||
|
f 4/11/1 2/12/1 1/9/1
|
||||||
|
f 5/13/2 6/14/2 8/15/2
|
||||||
|
f 8/15/2 7/16/2 5/13/2
|
||||||
|
f 1/17/6 2/18/6 6/19/6
|
||||||
|
f 6/19/6 5/20/6 1/17/6
|
||||||
|
f 2/6/1 4/5/1 8/7/1
|
||||||
|
f 8/7/1 6/8/1 2/6/1
|
||||||
|
f 4/2/3 3/1/3 7/4/3
|
||||||
|
f 7/4/3 8/3/3 4/2/3
|
||||||
|
f 3/22/5 1/21/5 5/24/5
|
||||||
|
f 5/24/5 7/23/5 3/22/5
|
BIN
examples/models/resources/models/obj/cube_diffuse.png
Normal file
After Width: | Height: | Size: 23 KiB |
4564
examples/models/resources/models/obj/house.obj
Normal file
BIN
examples/models/resources/models/obj/house_diffuse.png
Normal file
After Width: | Height: | Size: 383 KiB |
7301
examples/models/resources/models/obj/market.obj
Normal file
BIN
examples/models/resources/models/obj/market_diffuse.png
Normal file
After Width: | Height: | Size: 380 KiB |
1888
examples/models/resources/models/obj/turret.obj
Normal file
BIN
examples/models/resources/models/obj/turret_diffuse.png
Normal file
After Width: | Height: | Size: 371 KiB |
1030
examples/models/resources/models/obj/well.obj
Normal file
BIN
examples/models/resources/models/obj/well_diffuse.png
Normal file
After Width: | Height: | Size: 334 KiB |