Should gltfpack or meshoptimizer be used before or after generating normals and tangents? #527
-
I have a GLTF importer that converst GLTF scenes into my engine's internal format. GLTF files do not have strict restrictions on whether a mesh has indices, normals, tangents, or even uv coordinates. The only requirement is that they have positions. So, within my engine, instead of handling all these cases at "runtime", I want to manage them at a single point -- the import. I want to do the following operations:
As I am new to these optimizations and mesh generation algorithms in general, I would like to ask in what order should the normal be generated -- after mesh optimizations or before? What if I add quantization to the mix as well -- should it happen before or after normals are generated? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Normally you'd give gltfpack and/or meshoptimizer a fully ready-to-render mesh - so in this case, after you use mikktspace et al to generate TBN data. |
Beta Was this translation helpful? Give feedback.
Normally you'd give gltfpack and/or meshoptimizer a fully ready-to-render mesh - so in this case, after you use mikktspace et al to generate TBN data.