Java3D鼠标交互功能的扩展与应用
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

沈阳市科技局项目(1032033-1-03)


Extension and Application of Enhanced Interactive Mouse Functions in Java3D
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    分析了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.

    参考文献
    相似文献
    引证文献
引用本文

魏东,刘童,余冠华. Java3D鼠标交互功能的扩展与应用.计算机系统应用,2010,19(4):49-52

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2009-07-21
  • 最后修改日期:2009-08-29
  • 录用日期:
  • 在线发布日期:
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号