Commit e82b339
authored
feat: model loader (#28)
* feat: add assimp library to vendor
* feat: add model class with loading and drawing
* feat: add ModelRendererComponent with deserialization
* feat: add model deserialization to AssetLoader
* feat: add bone weight and id to vertex
* feat: add model rendering support to ForwardRenderer
* refactor: precompute if material have textures or not and add metallicRoughness texture
* feat(litShader): add textureMetalRoughness handling
* fix(cmake): add model-renderer component to the project executable
* feat: drone model to test
* fix: remove old debug prints
* feat(model): enhance texture loading with wrapping and filtering parameters
* feat(model): update model loading to support scene-based texture handling and embedded textures
* fix: fix light leak behind objects
* refactor: use assetloader cache for model loading
* chore: change drone model from gltf to glb
* refactor: change material hash in assetloader
* feat(model): enhance model handling with combined mesh generation and draw command struct
* feat(model): refactor model class to use name for unique identification and remove ID_COUNTER
* feat(config): add model config for testing
* fix(config): fix rifle path and add rifle model
* fix(mesh): set default transform to identity matrix in deserialization
* feat(model): replace generateDrawCommands with direct submesh handling in ForwardRenderer
* fix(asset-loader): handle model name correctly
* fix(config): correctly place flashlight of gun
* fix(config): move model to assets key instead of game key
* chore: fix uniform naming in lit.frag for textureMetalnesssRoughness
* fix(litMaterial): initialize TextureMask to zero
* fix(mesh): update bone IDs attribute pointer and return types for vertex and index getters
* perf(ai-glm-utils): add inline specifier to conversion functions for better optimization
* fix(model): update tangent type to vec4 and handle normal mapping in model loading
* fix(model): remove mesh if no material found
* refactor(model): remove incomplete bone data processing implementation
* fix(model): ensure combined mesh is deleted and pointer is reset in destructor
* fix(model): improve tangent and bitangent calculation in OBJ loading
* feat(model): add support for system-installed Assimp
* refactor(forward-renderer):revert changes to render-command header
* fix: update tangent in comibned mesh and fix material memory leak
* chore(material): remove unused function metho declaration
* chore(config): remove unrelated game mesh
* fix: reorder asset-loader include for consistency1 parent 6911398 commit e82b339
28 files changed
Lines changed: 1109 additions & 50 deletions
File tree
- assets
- gltf
- mech_drone
- weapons
- shaders
- config
- playgrounds
- src/common
- components
- material
- mesh
- model
- systems
- texture
- vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
163 | 188 | | |
164 | 189 | | |
165 | 190 | | |
| |||
213 | 238 | | |
214 | 239 | | |
215 | 240 | | |
| 241 | + | |
| 242 | + | |
216 | 243 | | |
217 | 244 | | |
218 | 245 | | |
| |||
226 | 253 | | |
227 | 254 | | |
228 | 255 | | |
| 256 | + | |
229 | 257 | | |
230 | 258 | | |
231 | 259 | | |
| |||
264 | 292 | | |
265 | 293 | | |
266 | 294 | | |
| 295 | + | |
267 | 296 | | |
268 | 297 | | |
269 | 298 | | |
| |||
278 | 307 | | |
279 | 308 | | |
280 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
281 | 317 | | |
282 | 318 | | |
283 | 319 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
84 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
85 | 98 | | |
86 | 99 | | |
87 | 100 | | |
| |||
111 | 124 | | |
112 | 125 | | |
113 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
114 | 130 | | |
115 | 131 | | |
116 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments