Throughout my experience with three.js, I have always relied on .obj files to import models. However, I recently came across information suggesting that the shift towards using .gltf files is now preferred.
Upon trying to work with .gltf files, I've noticed that while loading objects may be straightforward, .obj files offer more flexibility once the object is imported. For example:
- Adjusting material properties
- Changing shading to flat
- Controlling object behavior in response to specific inputs
It appears that these tasks are challenging or not supported in .gltf format, whereas they can easily be achieved with .obj files.
So, what exactly are the advantages of using .gltf? Is it mainly for reducing file size, even though it seems like sacrificing a significant amount of control?