Cruz
9th July 2009, 12:42
Hello there!
I'm about to start a new Qt project. The task is to develop a little interactive 2D simulation of a walking stick figure and I'm wondering what's the best approach to use.
The stick figure is only a head with two legs and it's controled by providing sequences of joint angles for the hips. From the given joint angles plus a very simple physics engine a pose of the stick figure is calculated and rendered on the screen. Additionally it should be possible to give the stick figure a little push with the mouse.
Which way should I go? Should I use the standard painting methods that Qt provides together with QTtransform? Or is the Graphics View Framework a better choice? Or should I try to use SVG or even OpenGL?
Thanks,
Cruz
I'm about to start a new Qt project. The task is to develop a little interactive 2D simulation of a walking stick figure and I'm wondering what's the best approach to use.
The stick figure is only a head with two legs and it's controled by providing sequences of joint angles for the hips. From the given joint angles plus a very simple physics engine a pose of the stick figure is calculated and rendered on the screen. Additionally it should be possible to give the stick figure a little push with the mouse.
Which way should I go? Should I use the standard painting methods that Qt provides together with QTtransform? Or is the Graphics View Framework a better choice? Or should I try to use SVG or even OpenGL?
Thanks,
Cruz