摘要
在虚拟现实系统开发中有很多对象是需要通过旋转的方法实现运动的。利用插值算法实现物体的旋转是很常用的方法.该文阐述了旋转算法和双线性插值算法的原理和实现方法。旋转算法是根据三维物体绕三个坐标轴旋转的角度及先后顺序.依据三个运算公式计算得到一个旋转轴和旋转角度,再根据该旋转轴和旋转角度对物体实施旋转。双线性插值算法其速度慢.但得到的图像纹理清晰,能满足大多数程序的要求。这两种方法可以处理不同的旋转物体。文中同时给出了使用Virtools图形开发引擎应用这两种算法来解决钻井模拟仿真系统中的物体旋转的方法。最后可以发现整个系统实现了预想的旋转效果,并且旋转精度也在可控制的范围内.满足了系统真实性的要求。
There are many objects need to rotate in virtual reality System development, the object of interpolation algorithm is a very common method of rotation. This paper describes the rotation algorithm and the bilinear interpolation algorithm theory and implementation. This algorithm is based on three-dimensional objects rotating around three axes of rotation and the order, calculated the three operations to get a rotation axis and rotation angle, and then rotate the object by the rotation axis and rotation angle. Bilinear interpolation algorithm is its slow, but get a clear image texture and can meet the requirements of most programs. Both methods can handle different rotating object. The paper also gives the application that using the two algorithms to solve the rotating objects in drilling simulation system in the Virtools graphical development engine. Finally, the whole system achieved the desired effect of rotation and rotation accuracy can be controlled within the scope of the system, Meets the system requirements of authenticity.
作者
安静雅
龚捷
AN Jing-ya, GONG Jie (School of Computer Science, Southwest Petroleum University,Chengdu 610500, China)
出处
《电脑知识与技术》
2011年第4期2276-2278,共3页
Computer Knowledge and Technology