umeshvl
11-03-2009, 02:08 AM
Hi,
Am trying to draw a rectangle in xz plane.
in modelview matrix mode,after loading identity matrix
am using glTranslate(0,(2.0),0);
This will bring the camera/eye to be positioned at 0,2,0
is my understanding correct ?
in projection matrix mode am using
glFrustumx(-5.0,5.0,-1.0,1.0,0.5,5.0);
Frustum works.
But if i use ortho for same dimension,
rectangle is not rendered.can any one help
regarding why this happens ?
Am trying to draw a rectangle in xz plane.
in modelview matrix mode,after loading identity matrix
am using glTranslate(0,(2.0),0);
This will bring the camera/eye to be positioned at 0,2,0
is my understanding correct ?
in projection matrix mode am using
glFrustumx(-5.0,5.0,-1.0,1.0,0.5,5.0);
Frustum works.
But if i use ortho for same dimension,
rectangle is not rendered.can any one help
regarding why this happens ?