feat: add assignment 4 resources and tinyobjloader lib

This commit is contained in:
2025-10-13 19:26:49 +02:00
parent 1089861aa3
commit 9124618ab6
15 changed files with 2128 additions and 2 deletions

35
data/models/box_stack.mtl Normal file
View File

@@ -0,0 +1,35 @@
# Blender MTL File: 'box_stack.blend'
# Material Count: 3
newmtl mat_bot
Ns 96.078431
Ka 0.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Ka top.png
newmtl mat_mid
Ns 96.078431
Ka 0.600000 0.600000 0.000000
Kd 0.640000 0.640000 0.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Ka front.png
newmtl mat_top
Ns 96.078431
Ka 1.000000 0.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Ka top.png

BIN
data/models/front.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1,32 @@
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# File Created: 21.07.2015 23:00:44
newmtl revolver
Ns 30.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.5500 0.5500 0.5500
Kd 0.5500 0.5500 0.5500
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
map_Ka revolver_dfs.tga
map_Kd revolver_dfs.tga
map_bump revolver_nrm.tga
bump revolver_nrm.tga
newmtl gunslinger
Ns 30.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.5500 0.5500 0.5500
Kd 0.5500 0.5500 0.5500
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
map_Ka gunslinger_dfs.tga
map_Kd gunslinger_dfs.tga

BIN
data/models/gunslinger_dfs.bmp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/gunslinger_dfs.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/gunslinger_nrm.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/gunslinger_spc.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/revolver_dfs.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/revolver_nrm.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/revolver_spc.tga (Stored with Git LFS) Normal file

Binary file not shown.

BIN
data/models/top.png (Stored with Git LFS) Normal file

Binary file not shown.

2029
lib/tiny_obj_loader.h Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,10 @@
#endif*/
#define STB_IMAGE_IMPLEMENTATION
#include "../lib/stb/stb_image.h"
#include "../lib/stb_image.h"
#define TINYOBJLOADER_IMPLEMENTATION
#include "../lib/tiny_obj_loader.h"
#include "engine.h"

View File

@@ -4,7 +4,7 @@
#include "../lib/glew/GL/glew.h"
#include "../lib/glfw/glfw3.h"
#include "../lib/stb/stb_image.h"
#include "../lib/stb_image.h"
#include "logger.h"