Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:02:03+00:00 2026-06-09T23:02:03+00:00

I am confused in the relation between ndc to screen coordinate system. What i

  • 0

I am confused in the relation between ndc to screen coordinate system.
What i did was

  1. select screen coordinates (for example touch points on the screen).

  2. then pass the screen coordinates to gluUnproject. i set the depth variable(third variable of gluUnproject) to 0.0f.

  3. then i multiply the object coordinates to modelviewmatrix and projectionmatrix.

  4. after that I clipped the space. then i divide the clip space coordinate with W

  5. at last i scaled the ndc coordinates to screen coordinates.
  6. so the result was equal to coordinates which i first chose except Z coordinates. actually the result of Z was equal to -1.0f

after this I changed the gluUnproject`s third variable to 1.0f which i suppose the result was equal to 0.0f. But the result was 1.0f.

So here is the question what is relation between normalized coordinate system and screen coordinate system. how do i set the depth variable of gluUnproject function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:02:05+00:00Added an answer on June 9, 2026 at 11:02 pm

    What is relation between normalized coordinate system and screen coordinate system?

    Normalized device coordinates are expressed in the range [-1,+1] and are obtained from the clip-space coordinates dividing them by their W component.

    They are transformed in Window-space coordinates by the viewport parameters and the depth range parameters.


    How do i set the depth variable of gluUnproject function?

    If you want to convert the Window-space coordinates back to Normalized device coordinates you need the Window-space z value at the point you want to convert. So, directly from the OpenGL FAQs:

    GLdouble z;
    glReadPixels (x, y, 1, 1, GL_DEPTH_COMPONENT, GL_DOUBLE, &z);
    

    Please note that OpenGL store non-linear depth in the depth buffer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really confused by the explanations given in RVM website. The relation between
Totally confused here. I have a PARENT UIViewController that needs to pass an NSMutableArray
I have two tables A and Band the relation between A to B is
Well, I`m confused about rails queries. For example: Affiche belongs_to :place Place has_many :affiches
I have been so confused lately regarding difference between predicate and function in first
I'm getting very confused with memory management in relation to vectors and could do
I am a little confused about below entity relations. Because it holds User relation
I am confused where should I start to design a star schema. for example
I am still a bit confused about the relation of Proxy models to their
confused - given a track uri, I can get one album but possibly more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.