Use the custom functions of the materials to rotate and scale objects on the graphics card using vertex animation.