I found [here][1] a script which converts obj files into C header files with information required to render the model with OpenGL. I'd like something like this but I will need texture coordinates as well. The tool apparently doesn't do that.
Such a tool will save me a lot of time because I'd have to make my own program to extract data so I can add the data to the arrays.
Loading models from the files during runtime would be ridiculous. It's far more sensible to store the information inside the program. That will cut down on the processing and bulk of the program as well as programming effort and time required.
[1]: https://people.scs.fsu.edu/~burkardt/pl_src/obj2opengl/obj2opengl.html
以上就是Tools for converting 3d model files (3ds/obj/whatever if it's an open format) to C arrays的详细内容,更多请关注web前端其它相关文章!