perspective pb

BlitzMax Forums/OpenGL Module/perspective pb

flaith(Posted 2005) [#1]
i translate from a c program this one, pb is about the quad, how to make it look like a real quad




flaith(Posted 2005) [#2]
Ok i've got it, in the line :
gluPerspective(45.0,Float(w/h),1.0,100.0)
change float(w/h) to 800.0/600.0 => much better
or with :
global WH,HF:Float
WH=width
HF=height
gluPerspective(45.0,WH/HF,1.0,100.0)