Archived

This topic is now archived and is closed to further replies.

knight

Problem in Displaying Graphics

Recommended Posts

I am new in OpenGL. I tried drawing a Square and a triangle, with the triangle in front of the square with a distance of 0.01f in the z axis. The problem is that when i rotated the view to the back, the triangle is still in front of the square, which shouldn''t be the case. The grahics generated seems to integrate each other producing some weird lines on the triangle too. Can anyone tell me what is wrong? I just want the triangle to appear sticking on to the square...

Share this post


Link to post
Share on other sites