Hi all,

when trying to generate a equilateral triangle OpenGL doesn't display it for me.

Code :h:=SQRT(0.75); glVIEWPORT(0,0,640,480); glMATRIXMODE(GL_PROJECTION); glLOADIDENTITY; glMATRIXMODE(GL_MODELVIEW); glLOADIDENTITY; glCOLOR3f(1.0, 1.0, 0.0); glVERTEX3f(0.0, 0.0, 0.0); glVERTEX3f(1.0, 0.0, 0.0); glVERTEX3f(0.5, h, 0.0);

The code should display an equilateral triangle with length a=1 for each side. The height h of an equilateral triangle as described is the square root of 0.75 as defined. What I get on screen is shown here:

Clearly the bottom side is larger than the other two sides and so I didn't get an equilateral triangle.

Probably easy to solve but since I work on this for long time now I think I could need some hints .