Advertisement

2D Objects Deforming

Started by November 26, 1999 02:35 PM
1 comment, last by jechternach 25 years, 3 months ago
For a little memory and processor overhead a simple solution would be to store a matrix with the object and rotate/translate that each frame, then use the final matrix on the original object but don't overwrite it, instead, overwrite a local copy of each polygon. So the original object remains untouched.
Hi. I am just getting started in game/graphic programming. I've been fooling around with 2d vector graphics and have run into a small problem. After many successive rotations of an object it gets slighlty deformed. I think this has something to do with loss of precision. Anyone have any tips? Thanks for your help.

P.S. I am transforming the object using matrices.

Advertisement
That did the trick. Thanks.

This topic is closed to new replies.

Advertisement