Vertex color change when moving camera... [SOLVED]

Started by paandar, December 13, 2012, 15:13:06

Previous topic - Next topic

paandar

Well, I'm trying to learn some OpenGL programming with simple examples, so...the problem is, when drawing a quad with four different vertex colors and using smooth shading, the gradient filling the quad changes when some points go outside the viewport. I'm not using any kind of culling, only doing a view matrix transformation to rotate the scene. See images below





Can anybody give me a hint?
Thanks ;)

CodeBunny

It looks like it is converting it to triangles differently. Try drawing it with a Triangle Strip.

Fool Running

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

paandar

Already fixed it using triangles, thanks anyway!!