OK, not sure where to put this, but r/gamedev is pretty big so someone might have an answer. I'm trying to parse a Wavefront OBJ in Java, and it's ridiculously easy for the most part (although I know ASCII formats can't be at all efficient). From what I understand, the line defining a face contains...
relevant bit of main loop: http://codepad.org/Lmh1FZAr texture.cpp (load textures): http://codepad.org/OVMhjn3H shader.cpp (load shader): http://codepad.org/Q0qEbJn4 Yes I know I should comment my code. And if you see something that looks terribly wrong it probably is, I'm new to C++ but not to C or...
So I'm a n00b when it comes to graphics coding, but I'm working on my own C++ OpenGL project. I loaded some DDS textures very easily when I was using JOGL because of its Texture class. From what I can tell, I'm supposed to: read in the source data, check the headers and capabilities to see if everyt...
It's got vertex locations right from what I can tell, but the faces are using all the wrong vertices. It looks like face definitions are just screwed up in general.
The line is supposed to be "f <verts> <texcoords> <normals>", right? Or am I missing something?
Yes, now expand GNU again...
ERROR: stack overflow
Blender has not so much a learning curve, as a learning sheer asymptotic cliff of evil evilness. :p
Mine always just seems to come out like this.
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU :D
In Wings3D
In my program... HOLY SHIT WHAT IS THAT
It's got vertex locations right from what I can tell, but the faces are using all the wrong vertices. It looks like face definitions are just screwed up in general.
The line is supposed to be "f <verts> <texcoords> <normals>", right? Or am I missing something?
[EDIT] I'm missing something. It's "f <vert/coord/normal> <vert/coord/normal> <vert/coord/normal>". I'm a noob.