Advertisement

Need guidance for "tilt" transformation

Started by November 13, 2012 04:59 AM
0 comments, last by metsfan 12 years, 3 months ago
Hello all,

I am currently working on a game project and I was wondering if anyone could help me with a particular transformation. The transformation I am looking to accomplish is the "tilt" transformation similar to the Google Maps application in Android or the Apple Maps application on iOS. The tilt gesture I am talking about should be well known to anyone who uses either of these platforms. I have been trying to figure out the mathematical transformation required to mimic this effect. I initially thought a rotation on the x-axis would work, but that did not create the desired effect. I then tried rotation on the x-axis with compensation in the y-direction, which does give the effect to a degree, but it doesn't seem the same. Does anyone know what the transformation they are doing is? Thanks in advance.

-Adam
I figured it out, hopefully this will help someone in the future. The solution was to do a scale in the y direction, followed by a shear in the yz slot (i.e. slot m[1][2])

This topic is closed to new replies.

Advertisement