Advertisement

perspective

Started by January 08, 2002 09:29 AM
2 comments, last by jobrady 20 years, 6 months ago
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
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
Advertisement
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 ==--
--== discman1028 ==--
Google for "OpenGL Programming Guide". You can download the version 1.1 for free, it responds all the questions you asked.

This topic is closed to new replies.

Advertisement