allemensen
07-03-2008, 06:27 AM
Hello,
I'm planning to use an affine matrix to map the texture pixels to the screen pixels. I use this format:
[ a b c ] [ sx ] [ u ]
[ d e f ] x [ sy ] = [ v ]
[ 0 0 1 ] [ 1 ] [ 1 ]
Where sx and sy are the screen coordinates of x and y. I want to know how to calculate the values a u/i f. I know the values of sx, sy, u and v for 3 points.
I'm planning to use an affine matrix to map the texture pixels to the screen pixels. I use this format:
[ a b c ] [ sx ] [ u ]
[ d e f ] x [ sy ] = [ v ]
[ 0 0 1 ] [ 1 ] [ 1 ]
Where sx and sy are the screen coordinates of x and y. I want to know how to calculate the values a u/i f. I know the values of sx, sy, u and v for 3 points.