OBJ Loader

alert
Unregistered
 
Post: #1
Hy

Someone to indicate links, sites or examples of a good obj loader....

GLM for example, where can i get examples or a tutorial to use this loader...

thanks....

Alert
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #2
Google is your friend!

There are dozens of explanations of the OBJ format on the web -- furthermore, if you're only interested in the geometric aspects ( vertices, triangles, not bezier surfaces ) it's an easy format to work with. I wrote a load that handles triangles, quads and texture coords in about two hours.
Quote this message in a reply
alert
Unregistered
 
Post: #3
ok... give me examples with aplicattions of glm use... it was thankful
This kind of post don´t helpme too much...
Quote this message in a reply
Member
Posts: 114
Joined: 2002.08
Post: #4
First off, start by writing clear concise posts. Nobody here wants to decifer instant messaging style posts.

Second, use Google, like the man said.

"Most nutritionists say that Twinkies are bad. But they're not, they're very very good."
Quote this message in a reply
alert
Unregistered
 
Post: #5
Google or Yahoo....hehe
I have some examples....Now
sorry... my work stress.....
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #6
alert Wrote:ok... give me examples with aplicattions of glm use... it was thankful
This kind of post don´t helpme too much...

It's hard to answer questions when people use words like "glm". What does "glm" mean?

Is it just me or is there an ever increasing amount of IM speak on forums (not just this one) these days? Criminy... I feel like a crotchety old man! And I'm only 27.
Quote this message in a reply
alert
Unregistered
 
Post: #7
Glm=Obj Loader=Nate Robins=GLUT 3.7.6!!!
Google is your friend!!!
Quote this message in a reply
⌘-R in Chief
Posts: 1,260
Joined: 2002.05
Post: #8
Don't bite the hands that feed you.
Quote this message in a reply
Vertizor
Unregistered
 
Post: #9
Are you asking for help, or wanting someone to do the grunt work for you?
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #10
alert Wrote:Glm=Obj Loader=Nate Robins=GLUT 3.7.6!!!
Google is your friend!!!

Right.

Now that that's off my chest, if Nate's got an OBJ loader, then, well, *use* it. Read the docs, enjoy yourself. I don't know this particular piece of sample code ( I wrote my own OBJ loader, since I wanted to understand the format ), but it *probably* comes with at the very least a README or a demo.
Quote this message in a reply
Member
Posts: 40
Joined: 2004.12
Post: #11
Writing an .obj loader should be a relatively easy task. I wrote one in just a few hours, and haven't touched stream or file programming in almost a year. Google for the .obj file format, do some modelling in Wings3D or blender and look at the output. Just a little bit of thinking on your part goes a long way!

Cheers!

Jericho
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #12
Two hours to write a OBJ loader? Either you guys are full of BS or I am writing the biggest object loader ever. I've been working for 2 days on mine.

Time is running out!
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #13
FCCovett Wrote:Two hours to write a OBJ loader? Either you guys are full of BS or I am writing the biggest object loader ever. I've been working for 2 days on mine.

I'd say it's the latter. I've implemented rudimentary .obj loading in an evening. It doesn't do any fancy stuff like bezier curves (come to think of it, it doesn't even do materials), but it is functional.

- Alex Diener
Quote this message in a reply
Nibbie
Posts: 2
Joined: 2006.10
Post: #14
FCCovett Wrote:Two hours to write a OBJ loader? Either you guys are full of BS or I am writing the biggest object loader ever. I've been working for 2 days on mine.

I don't know -- I wrote this simple OBJ loader in just under a few minutes:

Code:
int loadOBJFile(char *filename) {
      printf("Wow, this model looks really complicated.\n");
      printf("You're screwed.\n");
      return 1;
}
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #15
Lol!
Quote this message in a reply
Post Reply