Scaling

Math | Sunday 5 October 2008 12:35 am

 Scaling can be archived by the following matrix:

Scale Matrix

The s components are the scaling factor in the x-,y- and z-directions. If they are all the same then the scaling is uniform.

Uniform Scaling

In OpenGL you can do scaling with the following code:

glMatrixMode(GL_MODELVIEW);
glScalef(sx,sy, sz);
Please share:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Current
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • StumbleUpon
  • Twitter
  • Reddit
  • Technorati
  • Yahoo! Bookmarks

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment