Load .obj model without using GLM

lovecikz 101 Mar 21, 2010 at 17:11


How to load .obj model in opengl without using GLM library. When i searching in the internet, a lot of example used GLM library. It’s we can load .obj model without used GLM. If yes, how to load it?

I’m very appreciate if u can help me..


3 Replies

Please log in or register to post a reply.

Reedbeta 167 Mar 21, 2010 at 18:09

The OBJ file format is text-based and quite simple to parse. Google for a reference on the file format (there’s plenty of them out there) and you’ll see.

fireside 141 Mar 21, 2010 at 18:46

This just came up a while ago. I think this site has a good explanation.


It’s written in java but the explanation is good and there’s pseudocode which should be all that’s necessary if you’ve been assigned a task such as this. I think GLM is open source so you should be able to inspect it also. Why can’t you use it? Is it a requirement that you write your own library? I’m just curious. I assume this is some kind of class work.

lovecikz 101 Mar 23, 2010 at 15:16

thanks for ur reply..
i’m just learning how to load .obj object without depend on the GLM library..
i’m sure using GLM library is better…
but i want to learn load it wihout GLM library..

thanks a lot..