KhronosGroup / KhronosGroup/OpenGL-Refpages

gluProject() formula missing perspective divide

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

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:
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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.