###
DOI:
计算机系统应用英文版:2010,19(4):49-52
本文二维码信息
码上扫一扫!
Java3D鼠标交互功能的扩展与应用
(1.合肥工业大学 计算机学院 安徽 合肥 230009;2.沈阳工业大学 信息学院 辽宁 沈阳110178)
Extension and Application of Enhanced Interactive Mouse Functions in Java3D
摘要
图/表
参考文献
相似文献
本文已被:浏览 1654次   下载 3251
Received:July 21, 2009    Revised:August 29, 2009
中文摘要: 分析了Java3D提供的鼠标交互功能,针对场景比较复杂,待拾取物体相对距离近的虚拟环境中用户拾取不准的问题提出了一种解决思路:在鼠标移动过程中实时创建一条连接空间中的视点与投影平面上的鼠标点的射线,检测沿射线的方向是否有物体与之相交,若有则返回距离视点最近的与射线相交物体所在的节点,并在该节点上添加一个动画效果提示用户该节点是预选节点。重点讲解了具体的实现过程,在最后的部分结合实际应用背景验证了该方法可以有效地方便用户的拾取操作。
Abstract:This paper has analyzed the build-in mouse interactive function of Java3D to solve the problem that user cannot pick the objects which are too closed to each other accurately. A solution is proposed. First, a ray can be built that connects the viewpoint and the mouse point in the imageplate as the mouse is moved. Then, the ray can be checked if it intersects with any object. If yes, we can return to the object intersecting the ray and closest to the viewpoint. Finally, we can add an animation effect on the node to remind the user that this node is a pre-selected node. This paper focuses on explaining the realizing process of this method. In the final part, a practical application verifies that this method can facilitate the user in mouse picking effect- tively.
文章编号:     中图分类号:    文献标志码:
基金项目:沈阳市科技局项目(1032033-1-03)
引用文本:
魏东,刘童,余冠华.Java3D鼠标交互功能的扩展与应用.计算机系统应用,2010,19(4):49-52
WEI Dong,LIU Tong,YU Guan-Hua.Extension and Application of Enhanced Interactive Mouse Functions in Java3D.COMPUTER SYSTEMS APPLICATIONS,2010,19(4):49-52