Opengl组装动画 [英] Opengl Assembly Animation
问题描述
没有人有任何想法如何用opengl制作一个简单的动画来显示正在组装的三个模型...我尝试过并且一直得到怪异的结果...以前没有完成动画,并且它非常令人困惑..没有很好的教程在线...
我尝试使用闲置功能更改其中一个模型的x位置值,但是...尽管我将其放置在条件上,但它仍在飞行
谁能给我一个简短的摘要,我将如何实现这一目标..那将非常有帮助...或将我引向一个好的教程...
谢谢alt
does anyone have any ideas how i could make a simple animation with opengl showing three models being assembled...i tried and have been getting weird results...not done animations before and its been very confusing ..no good tutorials online...
i tried using the idle function to change the values of the x position of one of the models but...it just keeps flying despite the conditions i place on them
could anyone please give a short snippet of how i could achieve this..that would be very helpfull...or direct me to a good tutorial...
thanks alot
推荐答案
我们能看到你的代码madubuko-可能只是x的增加速度比你想象的要快得多-因此,对象只是飞出了屏幕(您可能获得的速度每秒大于100帧)
马丁
Can we see you code madubuko - it may just be that x is getting incremented a lot faster than you think - and thus the object just flies off screen (you could be getting a lot > than 100 frames per second)
martin
这篇关于Opengl组装动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!