Quartz and Animation - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Quartz and Animation (/thread-7778.html)
Quartz and Animation - Cloke - May 8, 2002 11:05 AM
I am trying to do animation with Quartz. I can move objects around on the screen fine, but am unable to animate them. Does anyone know of a good example on how to do this (C/C++) or have a suggestion on where to start. With QD I would load a frame strip into a GWorld and then just move a rect around the GWorld for each step in the animation. I want to use a similar technique with Quartz.
Quartz and Animation - jefftkd - May 9, 2002 08:17 AM
Take a look at the Cocoa Sprite Kit. I think it is still under the headlines here at iDevGames. If not, here is a direct link
It's new, and looks really good (and free).
Quartz and Animation - cloke - May 9, 2002 10:14 AM
I've been looking at the Cocoa Sprite Kit and it is pretty cool. But, Im looking for a non-Cocoa way of rotating a Quartz context. Since yesterday I've got some rotation, but the center point is the bottom left corner of the context. I'm trying to create a rotation from the center of an image.
Quartz and Animation - M.J. - May 9, 2002 10:43 AM
I think what you've got to do is translate your object to the origin, do the rotation, then translate back to the object's location. The rotations always rotate around the origin (bottom left corner of the view). So if you don't translate first, you end up moving your object as well as rotating. I've only done it in Cocoa (using NSAffineTransform), so I can't help with a non-Cocoa way of doing it.
Quartz and Animation - Pazolli - May 9, 2002 04:22 PM
Take a look at the Inkubator Project. It's not C/C++, but if you're going to use Quartz, you should probably be using Objective-C.