Okay guys you don't have to help me anymore

K.I.L.E.R

Retarded moron
Veteran
..until I hit the next chapter in the book. :LOL:

I asked the teacher the questions you guys didn't answer and I cleared up some other stuff too.

It all makes sense now.

OpenGL draws the entire scene before anything else, THEN it proceeds to apply modelview transformations and THEN it applies perspective transformations.


Also you cannot have a spherical frustrum because it's not supported in the hardware or through OGL.
You have to apply tricks in order to create a spherical frustrum.
 
K.I.L.E.R said:
..until I hit the next chapter in the book. :LOL:

I asked the teacher the questions you guys didn't answer and I cleared up some other stuff too.

It all makes sense now.

OpenGL draws the entire scene before anything else, THEN it proceeds to apply modelview transformations and THEN it applies perspective transformations.
What!? :eek:
Hell, no!

OpenGL transforms vertices with whatever the current matrices are at the time the vertices are submitted. This can very well vary over the course of the frame.

I.e. you can do
Code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(whatever);

glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
//draw something leftish
glTranslatef(-0.5f,0.0f,2.0f);
draw_thingy();
//draw *the same thing* again, rightish
glLoadIdentity();
glTranslatef(+0.5f,0.0f,2.0f);
draw_thingy();
Yes, this works. And if what your teacher taught you was true, it wouldn't work. So there.
K.I.L.E.R said:
Also you cannot have a spherical frustrum because it's not supported in the hardware or through OGL.
Correct.
A frustum is a pyramid with a chopped-off tip. It has finite volume bound by six planes. A "spherical frustum" cannot fit that description.
 
Last edited by a moderator:
K.I.L.E.R said:
Also you cannot have a spherical frustrum because it's not supported in the hardware or through OGL.

Why would you want to do that? A peripherial vision effect? Does'nt the human eye already do that?
 
K.I.L.E.R said:
Also you cannot have a spherical frustrum because it's not supported in the hardware or through OGL.
You have to apply tricks in order to create a spherical frustrum.
"Spherical"???

Do you mean a "truncated cone" rather than a "truncated rectangular pyramind"?
 
Back
Top