l*f
2 楼
GlutRedisplay()
b*o
3 楼
Tks.
m*a
4 楼
搞动画,简单点可以在display function里面直接一幅一幅的更新,缺点是如果显卡快
,frame更新速度就快。另外一种方法是根据时间计算物体当前位置,这样可以保证物
体运动速度独立于硬件性能。
你描述的东西似乎用scenegraph来搞更简单,自己找找这类的现成toolkit.
我知道的有个coin3D.
,frame更新速度就快。另外一种方法是根据时间计算物体当前位置,这样可以保证物
体运动速度独立于硬件性能。
你描述的东西似乎用scenegraph来搞更简单,自己找找这类的现成toolkit.
我知道的有个coin3D.
w*n
5 楼
Use an idle function.
O*d
6 楼
Generally speaking you have to redraw the frame one after another in rapid
succession. Each frame have a little different scene. The frame refresh
rate should be at least 30 frames per second. You will need a display card
that supports OpenGL to achieve above frame rate.
In Windows, you can set up a timer when you start an animation. In the
timer callback function, you add you rendering code to draw a frame and do
your animations.
succession. Each frame have a little different scene. The frame refresh
rate should be at least 30 frames per second. You will need a display card
that supports OpenGL to achieve above frame rate.
In Windows, you can set up a timer when you start an animation. In the
timer callback function, you add you rendering code to draw a frame and do
your animations.
l*s
7 楼
其实就是重画。
相关阅读