期刊文献+

基于OpenGL实现的三维物体绕任意轴旋转

Realization of 3D Rotation Based on OpenGL
下载PDF
导出
摘要 通过鼠标的拖动来实现三维物体的旋转,通常的做法是使场景绕X,Y,Z轴旋转,其不能达到图形可以随着鼠标的拖动绕任意方向旋转的预期效果,旋转有停滞、逆转和卡动现象.本文通过在屏幕外虚拟构建一个单位球体,将鼠标点击的屏幕上的二维点映射到球面上用以产生虚拟的Z坐标来计算旋转参数,并根据四元数计算方法实现鼠标拖动下三维物体绕任意方向的流畅旋转.彻底消除停滞逆转和卡动. The usual way for 3D objects to rotate by mouse clicking is to rotate the 3D models around the X ,Y ,Z axises .But it can not achieve the expected effect because of stagnation and reverse in rotation .In this paper ,a new method is presented that a virtual unit sphere outside the screen is constructed ,onto which the two-dimensional point is mapped to form a virtue Z axis for calculating rotation parameters .And then a smooth rotation in any direction is achieved by the quaternion method , without any stagnation and reverse .
出处 《西安工业大学学报》 CAS 2014年第11期878-881,共4页 Journal of Xi’an Technological University
关键词 弧球 OPENGL 旋转 四元数 坐标转换 arcball openGL rotation quaternion coordinate transformation
  • 相关文献

参考文献7

  • 1EDWARDA.交互式计算机图形学:基于OPENGL的自顶向下方法[M].4版.吴文国,译.北京:清华大学出版社,2007.
  • 2SHOEMAKE K. Animating Rotation with Quaterni- on Curves[J]. Cmputer Graphics, 1985,19 (3) : 245.
  • 3CHEN M,MOUNTFORD S J,SELLEN A. A Study in Interactive 3-D Rotation Using 2-D Control Devices [J]. Computer Graphics, 1988,22(4) : 121.
  • 4Dunn F,Parberry I.3D数学基础:图形与游戏开发[M].史银雪,陈洪,王荣静,译.北京:清华大学出版社,2005.94-98.
  • 5ZHAO J Y,SHURALYOV D,STUERZLINGER W. Comparison of Multiple 3D Rotation Methods[R]. IEEE International Conference on Virtual Environ- ments Human-Computer Interfaces and Measurement Systems. IEEE Computer Society,2011.
  • 6肖伟,梁久祯,陈玮琪.基于四元数的3D物体旋转及运动插值[J].系统仿真学报,2012,24(3):624-627. 被引量:8
  • 7马新武,赵国群,王广春.用虚拟球实现交互式OpenGL 3D图形的旋转[J].计算机应用,2001,21(z1):169-170. 被引量:13

二级参考文献11

  • 1许万荣,樊自田.OpenGL中交互式任意旋转三维场景的实现[J].计算机应用,2006,26(B06):147-148. 被引量:11
  • 2关东东,关华勇,傅颖.一种3维动画中间帧非线性插值算法[J].中国图象图形学报,2006,11(12):1820-1826. 被引量:9
  • 3[1]Michaei Chen, S.Joy Mountford, Abigail Sellen. A Study in Interactive 3 - D Rotation Using 2 - D Control Devices [J]. Computer Graphics,1988,22(4):121-129.
  • 4[2]Jackie Neider, Tom Davis, Mason Woo. OpenGL Programming Guide[M]. Addison - Wesley Publishing Company, 1993.
  • 5RICHARDS.WRIGHTJr.Benjamin Lipchak OpenGL超级宝典[M].徐波译.北京:人民邮电出版社,2005.
  • 6Michael Chen, S Joy Mountford, Abigail Sellen. A Study in Iteractive 3-D Rotation Using 2-D Control Devices [J]. Computer Graphics, 1988, 22(4): 121-129.
  • 7Ken Shoemake. ARCBALL: A User Interface for Specifying Three-Dimensional Orientation Using a Mouse [C]// Proceedings of The Conference on Graphics Interface '92. San Francisco, CA, USA: Morgan Kaufmann Pub]fishers Inc., 1992, 9: 151-156.
  • 8Fletcher Dtmn, Ian Parberry. 3D数学基础:图形与游戏开发[M].史银雪,陈洪,王荣静,译.北京:清华大学出版社,2005.
  • 9Ken Shoemake. Animating Rotation with Quaternion Curves. Computer Graphics [J]. Proceedings of Siggraph, 1985, 3(19): 245-254.
  • 10Kim M J, Kim M S and Shin Y S. A general construction scheme for unit quatemion curves with simple high order derivatives [J]. Computer Graphics, 1995, 29(3): 369-376.

共引文献23

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部