Jump to content

Widescreen Support


Recommended Posts

Posted

@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?

Tempust85 likes this
Posted

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!

Posted

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).

Tempust85 likes this

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...