Sign in to follow this  

Loading .OBJ File

This topic is 2105 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to load some .obj files that I found on [url="http://groups.csail.mit.edu/graphics/classes/6.837/F03/models/teapot.obj"]this[/url] site. I think the lines with v on them are probably vertex co-ordinates, but what are the lines that start with f for. Do I need to use them?

Share this post


Link to post
Share on other sites
You can check the file format specifications on wikipedia: [url="http://en.wikipedia.org/wiki/Wavefront_.obj_file"]http://en.wikipedia.org/wiki/Wavefront_.obj_file[/url]

the f stands for the face, which holds the indices to the vertices (and depending also the tex coords and normals) so yes, you will need those.

Share this post


Link to post
Share on other sites
Sign in to follow this