Overclock.net banner
1 - 7 of 7 Posts

· Registered
Joined
·
517 Posts
Discussion Starter · #1 ·
Does anyone know any good object loader for windows? I'm currently programming a kind of game, for a university project, that you have a character and 4 houses and I need to load those .obj files... And, of course, I'm trying to avoid writing an object loader myself...

Thanks
smile.gif
 

· Registered
Joined
·
517 Posts
Discussion Starter · #2 ·
Well in the meantime I'm trying to write my own .obj loader but I can't find any good tutorials with working code... I just want to load a simple object, probably just some cubes and stuff, how hard can it be?
 

· Premium Member
Joined
·
18,254 Posts
Nope. There are a few out there, but they are all buggy will only work with certain .obj files.

Your best bet is to just roll your own. If you just want something simple you can just ignore all of the complex stuff, which should be easier than trying to understand someone else's code.

http://en.wikipedia.org/wiki/Wavefront_.obj_file

You basically just have to parse file. Read in all of the vertex info into some kind of list and build the scene from the face definitions.
 

· Registered
Joined
·
517 Posts
Discussion Starter · #4 ·
Ok, thanks, I'll try that. I just didn't want to have the trouble because it seems boring and complex to do and I'm short on time... +rep for the help
smile.gif
 

· Registered
Joined
·
517 Posts
Discussion Starter · #6 ·
Now I'm using GLM (my professor recommended) and now I have this errors:

The thread 'Win32 Thread' (0x38c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x8a4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xf34) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xb98) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xd8c) has exited with code 1 (0x1).
The program '[3092] Trabalho.exe: Native' has exited with code 1 (0x1).

It's supposed to draw a terrain (simple stuff), some teapots and load and draw a model... But the window just open and close instantly, giving that error. please help :S
 

· Registered
Joined
·
517 Posts
Discussion Starter · #7 ·
I found the source of the problem

model = glmReadOBJ("house.obj");

Maybe the problem is the model?
 
1 - 7 of 7 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top