perspective
Could anyone please help me with this. I have to apply
"gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);" or something similar for an assignment without using the gluPerspective command(just using matrices and stuff).
If anyone can understand the question(I dont think i do) and can help, thanks.
Joe
January 08, 2002 09:46 AM
I think the official OpenGL specs (somewhere on SGI''s server, look at www.opengl.org under developer) describe the formula used to build the projection matrix by commands such as glFrustum() and gluPerspective. You''ll just have to recode them by hand and populate your matrix. Upload it as the current projection matrix, and you''re done.
- AH
- AH
Just out of curiosity, what''s the function to upload your own matrix?
Anyone know a good site about the math behind it? I had a good one a while ago....
--== discman1028 ==--
Anyone know a good site about the math behind it? I had a good one a while ago....
--== discman1028 ==--
--== discman1028 ==--
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement