太赫兹科学与电子信息学报, 2015, 13 (2): 302, 网络出版: 2016-01-25
空间态势场景中 OpenGL视点控制策略与实现
OpenGL viewpoint control strategy and implementation in space situation scene
空间态势 笛卡尔坐标 球坐标 坐标变换 视点变换 space situation Cartesian coordinates spherical coordinates coordinates transform viewpoint transform
摘要
OpenGL视点控制是决定空间态势可视化效果的关键技术之一。本文首先介绍 OpenGL视点坐标系统相关原理;其次,提出了基于球坐标系的视点控制算法,考虑到 OpenGL视点设置函数提供的函数接口为笛卡尔坐标系下视点,实现了笛卡尔坐标系下视点与球坐标系下视点间的相关转换;然后推导了球坐标下的视点平移、旋转和缩放;给出了该视点控制方法在空间态势场景中的应用。
Abstract
The OpenGL viewpoint control is one of the key techniques to determine the space situational visualization. The principle of OpenGL viewpoint coordinate system is introduced firstly. Secondly, a viewpoint control algorithm based on the spherical coordinates is put forward, which realizes the viewpoint transform between the spherical coordinates and Cartesian Coordinates since the view function interface is based on the Cartesian coordinates system. Then, the viewpoint translation, rotation and scaling in spherical coordinates are derived. The application of the viewpoint control method in the space situation scene are introduced.
王浩然, 梁彦刚, 陈磊. 空间态势场景中 OpenGL视点控制策略与实现[J]. 太赫兹科学与电子信息学报, 2015, 13(2): 302. WANG Haoran, LIANG Yangang, CHEN Lei. OpenGL viewpoint control strategy and implementation in space situation scene[J]. Journal of terahertz science and electronic information technology, 2015, 13(2): 302.