EDIT: SOLVED - MORE OR LESS!
I have been trying to get a .obj file to load and display in three dimensions. The object is a cube. I have spent three days on this and need help, please! I have tried numerous .obj files trying to get it to work. I replaced the double slashes with single slashes in the .obj file so that the super simple loader can get the vertexes and indices.
Since I am very stuck, the help would be greatly effective to my experience/learning, may I have the help, please?
ALso, recently I switched the functionality from :
glDrawArrays (GL_TRIANGLES, 0, 3);
to
lDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
The code is here (pastebin) https://pastebin.com/cTLuqaae
The .png of the model and the .obj file are attached too.
Thank you,
Josheir
My email is Joshuaeirm@gmail.com.