im looking at how to set up my own perspective matrix, as i dont want to use gluPerspective in my code.
http://pyopengl.sour...pective.3G.html
what is the cotangent?
how do i calulate it in code?
gluPerspective
Started by supagu, Sep 23 2005 01:01 PM
2 replies to this topic
#1
Posted 23 September 2005 - 01:01 PM
#2
Posted 23 September 2005 - 01:52 PM
cotangent is the inverse of the tangent function or 1 / tangent. In code this will look like this:
f = 1/tan(deg2rad(fovy/2));
#3
Posted 24 September 2005 - 12:52 AM
can I ask why it is you dont want to use gluPerspective? If you are going to use an API why not let it work for you?
Jesse Coyle
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












