For an assignment, we had to implements transformations on shapes without using GL calls. I created my own matrices to do this, one for translation, scaling, and 3 for rotation. My scaling and translation work without a hitch. My rotation, though, does not. The object is rotating, but it is shrinking as it does so. Here is how I do it:

I am sure my multiple method works, for it is working on my translation and scaling. Any help would be greatly appreciated! :)

Dark Photon

03-01-2010, 05:40 AM

My scaling and translation work without a hitch. My rotation, though, does not. The object is rotating, but it is shrinking as it does so. Here is how I do it: ... Any help would be greatly appreciated! :)
These forums are not for "please debug my homework for me", requests. You can do better than that. Break down what you're doing, trace it through, push an example or two through it by hand, and if necessary ask "specific" questions here. You'll figure it out.

A few tips though: this stuff is all over the net (try this (http://www.lmgtfy.com/?q=matrix+tutorial+site%3Agamedev.net)). Further, this is covered in virtually every 3D graphics book out there. Pick one up!