Jump to content

  • Log In with Google      Sign In   
  • Create Account

Need guidance for "tilt" transformation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 metsfan   Members   -  Reputation: 654

Like
0Likes
Like

Posted 12 November 2012 - 10:59 PM

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

Sponsor:

#2 metsfan   Members   -  Reputation: 654

Like
0Likes
Like

Posted 13 November 2012 - 01:30 PM

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

Edited by metsfan, 13 November 2012 - 01:30 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS