KhronosGroup / KhronosGroup/OpenGL-Refpages
gluProject() formula missing perspective divide
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 492
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm pretty sure gluProject() is missing the perspective divide in its description formulas. The current docs on khronos.org say:

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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the gluProject() reference-page source behind the khronos.org documentation and compare its formula with the libglu project.c implementation linked in the issue. Confirm the perspective divide is represented in the documented conversion to window coordinates, then check the generated reference page to verify the corrected formula is reflected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- computer-graphics, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100