Search code examples
c++openglwavefront

Wavefront obj loader with material files for c/cpp


I am looking for a wavefront obj loader which supports loading material properties files.

Basically supporing the minimum standard.

In addition I am using math glm library for my vectors and matrices and I am looking for something that integrates well this this.

Searching for options I have found another library called glm (confusing??) which so far looks like the best alternative, although this has much more then I need, I only want the loaders not a set of rendering options included.

Other options i have looked at so far: - assimp, very extensive, much more then I need

  • libwave, from 1996 and wants do to rendering

  • libobj, looks promising but does not support material yet.

  • Libobj, maybe a good alternative, looks like it supports what I need, but it is lacking some basic examples and needs some work for me to integrate it with the rest of my code.

  • libwavefront does not support material files

Are there any other modern options which could fit in my project?


Solution

  • Writing your own will take about one day and you will be able to add and remove features! It's not very hard and there are plenty of tutorials. I recommend this one: http://www.youtube.com/watch?v=849hXuOv0i8