How to calculate the normalized device coordinates of four corners of an image?

  • Tharit
    Likes 0

    Problem Description

    How to calculate the normalized device coordinates of four corners of an image with x pixels vertically and y pixels horizontally if this image is mapped onto a rectangle within a square OpenGL window?

    Thanks

  • Sonar Systems admin
    Likes 0

    This link is great for learning about this https://books.google.co.uk/books?id=Nwo0CgAAQBAJ&pg=PT466&lpg=PT466&dq=normalized+device+coordinates+of+four+corners+of+an+image&source=bl&ots=LoURZoGts0&sig=gP-gli5aJ76WrPCBaYrLrq9N5HI&hl=en&sa=X&ved=0ahUKEwi7-4CImr7PAhVqLcAKHXLEASUQ6AEITTAP#v=onepage&q=normalized%20device%20coordinates%20of%20four%20corners%20of%20an%20image&f=false

Login to reply