OpenGL: gluUnproject, gluPerspective and gluLookAt

The use of incorrect parameters in gluPerspective may lead to incorrect results while trying to read scene coordinates via gluUnproject. After several nights spent trying to figure out the math leading coordinate transformations, I’ve come across the final (by now) solution. The problem is simple. Given local window coordinates x,y, calculate the scene coordinates x,y,z […]

Read more
Go top