java和3d建模_基于Java3D技术和Swing技术的3D建模开发

收稿日期:2004-03-22

第22卷 第8期

计 算 机 仿 真

2005年8月

文章编号:1006-9348(2005)08-0227-03

基于Java 3D 技术和Sw i ng 技术的3D 建模开发

肖晓春2

,杜广林1

,潘一山

2

(1.中国石油勘探开发研究院油气开发计算机软件工程研究中心,北京100083;

2.辽宁工程技术大学力学与工程科学系,辽宁阜新123000)

摘要:该文介绍了基于Java 技术中的Java3D 技术和S w ing 技术的3D 建模的开发。和其他技术开发3D 模型相比,利用Java 技术的面向对象技术开发的3D 模型有着很多优势。比如,此3D 模型支持多平台操作,适合编写非常复杂的应用程序。利用

Java3D 技术实现了盛放3D 模型的基础类的开发,同时通过和S w ing 技术的合理结合实现了3D 组件的用户图形界面化、用户

操作简易化的特色。利用Java 技术还克服了编程代码冗长、繁杂不利于管理这个技术难点。同时利用了Java 技术的事件监听处理功能实现了对3D 模型的编辑功能。优化了编程工作。文中以此3D 组件在石油数值模拟软件中的应用为例说明了该组件具有的特色。

关键词:三维图形开发;事件处理功能;石油数值仿真软件中图分类号:TP391.41 文献标识码:B

3D M odule D evelopm en t Ba sed on Java 3d Technoligh

and Sw i ng Technology

X I A O X iao -Chun 2

,DU Guang -L in 1

,PAN Yi -Shan

2

(1.W ater and O il Computer Soft ware Engineering Institute,PetroChina Exp loration

Development Research Institute Beijing 100083,China;

2.Depart m ent of M echanics and Engineering Science,L iaoning Technical University,Fuxin L iaoning 123000,China )ABSTRACT:This article introduces the 3D module development based on Java3D technology and S w ing technology .Compared with other technology that develop s 3D module,this 3D module that utilizes Java πs faces target πs technology has a lot of advantages .For examp le this model supports multi -p latfor m operation,suitable for w riting very comp licated app lication p rogram.U sing the Java3D technology to realize the foundation class development for putting the 3D model,we realize the 3D model πs graphical user interfaces ans si mp lify user πs operation through S w ing technology .W e use Java technology to overcome the technological difficult points such as p rogramm ing code is tedious and unfavorable to manage .U tilizing the event handling technology and S w ing technology of Java,the editing of 3D modules is realized and the p rogramm ing work is op ti m ized .In the article the characters of this 3D module are illustrated through its app lication to numerical emulation soft ware of oil reservoir .

KEYWO RD S:3D draw ing development;Event handling;Numerical emulation soft w are of oil reservoir

1 引言

目前可以实现3D 组件开发的技术很多,比如OPENG L 、

VRML 、D I RECT3D 等技术,OPENG L 也具有跨平台的特性,所以也受到许多人的青睐,但是对于一个非计算机专业的人员来说,利用OPENG L 编写出复杂的三维应用程序是比较困难的,更不用说C (C ++)语言的掌握需要花费大量时间精

力,当我们需要处理复杂问题的时候,我们不得不自己完成大量非常繁琐的工作。VRML2.0(VRML97)自1997年12月正式成为国际标准之后,在网络上得到了广泛的应用,编写VRML 程序非常方便(VRML 语言可以说比BASI C 、JAVA scrip t 等语言还要简单),同时可以编写三维动画片、用于计算机辅助教学,因而其应用前景非常广阔。不过由于VRML 语言功能目前还不是很强(如目前没有形体之间的碰撞检查功能),与Java 语言等其它高级语言的连接较难掌握;

722—

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值