Transformation matrix that maps a window

Posted by gbhall on Game Development See other posts from Game Development or by gbhall
Published on 2012-08-15T19:00:19Z Indexed on 2012/08/30 3:50 UTC
Read the original article Hit count: 315

Filed under:
|
|

I'm currently learning OpenGL at uni, and they give us questions to help us learn (these are not worth anything), however I'm stuck on this one question and would have to travel over an hour and a half to uni for an answer.

How do I do this question? Please include as many steps as you can, I want to be able to follow exactly how to do this.

Find the transformation that maps a window whose lower left corner is at (1,1) and upper right corner is at (3,5) onto:

  1. The entire device screen whose dimension is (600, 500)

  2. A viewport that has lower left corner at (100,100) and upper right corner at (400,400)

Edit: Damn sorry I should have added I am meant to find the matrix, so no code.

© Game Development or respective owner

Related posts about matrix

Related posts about transformation