OpenGL-Refpages icon indicating copy to clipboard operation
OpenGL-Refpages copied to clipboard

gluProject() formula missing perspective divide

Open vegard opened this issue 4 years ago • 0 comments

Hi,

I'm pretty sure gluProject() is missing the perspective divide in its description formulas. The current docs on khronos.org say: image But if you look at e.g. https://salsa.debian.org/xorg-team/lib/libglu/-/blob/debian-unstable/src/libutil/project.c#L234 then v'' is definitely divided by w (i.e. v''_3) before converting to window coordinates.

Thanks,

Vegard

vegard avatar Apr 26 '20 12:04 vegard