A interactive game level is not a static environment, we need to add something to make the whole staff alive. We could blew the grass, make them swap to left or right. Some animals work around, monsters walk and check the enemies. All of the above thing will require us the move the model with some rules. This could be done in the animation tools or driven by the AI logic in the character FSM. And this sample shows us how to animate some geometry in the C++ hard code with OpenGL API.
The full source code could be found from here.
本文探讨了如何使互动游戏关卡充满活力,通过动态草丛、动物及怪物巡逻等元素,让游戏世界更加生动。利用动画工具或角色状态机中的AI逻辑驱动几何模型移动,展示了使用C++硬编码结合OpenGL API实现动画的具体方法。

被折叠的 条评论
为什么被折叠?



