Load .obj model without using GLM

48ac29f57d9773ed4d9d1521b4e48d1c
0
lovecikz 101 Mar 21, 2010 at 17:11

Hi,

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..

TQ.

3 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 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.

A638aa42130293f319eda7fa4ba121f4
0
fireside 141 Mar 21, 2010 at 18:46

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

http://www.cokeandcode.com/node/324

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.

48ac29f57d9773ed4d9d1521b4e48d1c
0
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..