摘要
交互式图形软件中,定位技术是交互技术的重要组成部分,是影响软件实时性的重要因素之一。基于OpenGLAPI的定位技术使用从灭点发出的射线来定位的方法,论文分析了这种技术的实现方法,并分析了其时间复杂度。根据分析提出了新的方案,新方案中跳过了射线的计算,直接通过线性方程组得到定位点。经过计算和试验得到结论:新的方案在速度上明显优于基于OpenGL的方案。最后,把新的方案应用于模型编辑器中,给出通用的符合OpenGL调用规范的用户接口。
Locating technique is one of the important parts of the interactive techniques and one of the important factors that have effect on the software's real-time quality.The locating techniques based on OpenGL API depends on the ray from the vanish point.The realization and the time complexity of this technique are analyzed in this paper.Based on the upper discussions,a new solution is presented which skipped the calculation of the ray and acquired the locating point by a linear equation group.The conclusion of calculations and experiments is that the new solution is faster than the old one obviously.At last, the new solution is applied to a 3D model editor.And the general user interface consistent with OpenGL API prototype is given.
出处
《微机发展》
2004年第7期28-29,32,共3页
Microcomputer Development