The curse of the opengl redbook!

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
madmarx
OGRE Expert User
OGRE Expert User
Posts: 1671
Joined: Mon Jan 21, 2008 10:26 pm
x 50

The curse of the opengl redbook!

Post by madmarx »

Let's share a bit of experience !

I was happily recoding a software renderer from scratch (in java for beginners student), reusing some opengl mathematics.
I used the formulas in the opengl redbook (I bought it 6 or 7 years ago), to get the orthographic projection matrix.
It is the one that is written here , at the end of the page :
http://glprogramming.com/red/appendixf.html

And guess what? That is incorrect ! It misses a few minus in the formula... I had hard time to believe it.
The worse is that you can find this wrong formula in many tutorials over the internet.
The correct formula is written in the opengl specification, though, and in many other places.
http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml
That redbook broke my heart :wink: !

Did you experience such problems too with other technical books ?

Best regards,

Pierre
Tutorials + Ogre searchable API + more for Ogre1.7 : http://sourceforge.net/projects/so3dtools/
Corresponding thread : http://www.ogre3d.org/forums/viewtopic. ... 93&start=0