ent Posted March 2, 2017 Share Posted March 2, 2017 @DT85, what happens if you add ratio to each of first element in matrix strings: { c*ratio, s, 0.0f }, { -s*ratio, c, 0.0f }, { cmd->x*ratio, cmd->y, 1.0f } ?Or what about c (first one) and -s only? DT85 likes this Link to comment
DT85 Posted March 2, 2017 Author Share Posted March 2, 2017 I just fixed it while you were posting lol. It was indeed -s needing *ratio but not cmd->x. Basically, the start scale was fine but the end scale wasn't which I believe the { -s, c, 0.0f } line is responsible for. Thanks for the help guys! Link to comment
ent Posted March 2, 2017 Share Posted March 2, 2017 It's not about start and end scale, it's about incompleted scale. Because the result width after rotation relates to cos of the angle applied to the given width and it also relates to sin of the angle applied to the given height (both original width and height affect the result width because the image got rotated). DT85 likes this Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now