I have made some slight changes in my code and cut back to creating one array in the form of:
posX,posY,posZ,normX,normY,normZ
If we take an example i have 7055 faces (indices).
Each created in...
Type: Posts; User: Graphicz
I have made some slight changes in my code and cut back to creating one array in the form of:
posX,posY,posZ,normX,normY,normZ
If we take an example i have 7055 faces (indices).
Each created in...
Okay, so i got the parsing stuff in place. Im trying to start from scratch with the code. Im trying to use VAO which is somewhat failing for me, since only 10% of the object is rendered. Im not sure...
Thanks for pointing that issue out. I just did "-1" in my parser and everything was fixed.
I tested following which was found randomly:
I found a random cube online, with following values:
//const GLubyte Indices[] = {
http://en.wikipedia.org/wiki/Wavefront_OBJ
Is there a way to create a offset? Because the exporting from AC3D creates the values as they are. I see its a problem now..
I assume that the first in my Wavefront OBJ file is vt0, if thats what you mean? If thats the case i do start with the first indice which is '0'.
Hello everyone,
I have finally finished my Wavefront OBJ parser (sort of), and trying to test a cube shape, which is unfortunately failing for me.
To begin with i only want to draw the cube...