Loading and showing .obj files in OpenGL

Started by
10 comments, last by VanillaGorilla 17 years ago
What's wrong with the first obj file? It looks alright to me, though I didn't look very hard. It's listing six faces, where each face has four vertices, whereas the second lists twelve, each with three vertices. In the first one, are you loading in twelve triangles from the six faces?
Advertisement
EDIT:

Nevermind I fixed it and now it is doing what I was looking for :)

I didn't have to edit the ObjLoader.cpp, I just had to export it with "Normals" (vertice normals) so it would be something like this "f x//x".

Next step I'll have to find out how to work with materials...

[Edited by - VanillaGorilla on March 25, 2007 11:23:54 AM]

This topic is closed to new replies.

Advertisement