OpenGL: Problem with meshes

Pages: 12
Tried that, and it's still showing the exact same thing. Even after disabling everything related to texturing and setting the mesh's color to red, it shows me the same green triangles :/
¿the mesh is red but is showing green?
I set glColor3f to 1, 0, 0, which should show red, but its still showing the same green triangles.

I really have no idea what's going on here, I'm starting to think I should scrap what I have and start over
Well, if it's not a problem with texturing or culling either your model is faulty - shouldn't be the case if it shows correctly in Maya - or your Load function. It could be your draw function but I doubt it.
I've tried googling this before to no avail, but do you know where I can get simple .obj meshes?
Would be handy if I had something else to try loading in to make sure it isn't my model
Hmmm, does the obj file contain faces with more than three vertices? If so, then they won't draw correctly. If you change the draw mode to GL_TRIANGLE_FAN that might work.
It doesn't seem to. GL_TRIANGLE_FAN doesn't seem to help either.
Think I'm just going to chalk this up to having a poor understanding of OpenGL and try to relearn it
closed account (o1vk4iN6)
It's not a poor understanding of OpenGL, if you don't know what format your indices and vertices are in how can you expect it to draw properly ?
Topic archived. No new replies allowed.
Pages: 12