andandandand
andandandand

Reputation: 22270

Why is this .obj loader not drawing anything but the included .obj?

I've been adapting a tutorial on .obj file loading on the windows system to glut.

The thing's not drawing anything except the "Foot.obj" file that the tutorial included and I'm going kinda nuts trying to figure out where's the fault. I'd appreciate a look into the code.

To try loading a different .obj just change the line

#define FILE_NAME_1 "Foot.obj"

in Main.cpp. I included the .obj files I've been trying to load into the VS project.

Upvotes: 1

Views: 302

Answers (1)

genpfault
genpfault

Reputation: 52083

It doesn't look like your OBJ loader handles n>3-gons (violin_case.obj), face elements without a texture index (head.obj, chess.obj), or face elements with the full complement of indexes (pTierra.obj).

Upvotes: 1

Related Questions