关于OpenGL动画的问题 [英] Questions on animation of OpenGL

查看:158
本文介绍了关于OpenGL动画的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,最近开始在OpenGL中搞乱动画,编写程序时出现了3个问题:

1)如何在循环中对所有获得的值进行转换?也就是说,我有程序计算旋转角度,但据我所知,旋转的变换只发生在结果的最后一个角落。试图在这个循环中将自己置于PostRedispla循环调用绘图函数中,但都是徒劳的。

2)怎么能拒绝动画?这个问题源于1)(最后一个角来回摇动模型)也试图限制周期,但都是徒劳的再次转换:假设我需要动画模型描绘偏差预定角度,但不知何故分别增加角度值,并提高动画的速度,问题可能是什么?如果您需要,我会附上代码

Hi everyone, recently started messing around with animation in OpenGL, when writing a program arose 3 questions:
1) how to carry out the transformation of all the obtained values ​​in the cycle? that is, I have the program calculates the angles of rotation, but as I understand the transformation of rotation occurs only on the last corner of the resulting. tried to fight, putting himself in PostRedispla cycle call drawing functions in this cycle, but all in vain.
2) how can deny animation? This problem stems from 1) (the last corner shakes back and forth model) also tried to limit cycle, but all in vain
3) transformation again: suppose I need to animation models depicted deviation by a predetermined angle, but somehow with increasing angle values, respectively, and increases the speed of the animation, what the problem might be? If you need I will attach code

推荐答案

这篇关于关于OpenGL动画的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆