PDA

View Full Version : how do i create different views with glortho and glperspective



12-04-2000, 05:49 AM
i need to create a perspective, top orthographic, and
front orthographic view of my object.

but when i try glperspective i just get a black screen. changing
the fov and the near and far parameters doesn't help. what should i do?

also how do i create a top orthographic view and front orthographic view, i know i should glortho, but what parameters
are changed. so i use glulookat to achieve this?

thanks

jc
12-04-2000, 05:58 AM
could you send a part of the code ?

12-04-2000, 07:24 AM
sorry about that, here's my code

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(90,1,1,10);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

this is the only matrix transform that i perform in
this code.