基于Java3D的网络三维技术的设计与实现
摘要:互联网的出现及飞速发展使IT业的各个领域发生了深刻的变化,它必然引发一些新技术的出现。3D图形技术并不是一个新话题,在图形工作站以至于PC机上早已日臻成熟,并已应用到各个领域。然而互联网的出现,却使3D图形技术发生了和正在发生着微妙而深刻的变化。Web3D协会(前身是VRML协会)最先使用Web3D术语,这一术语的出现反映了这种变化的全貌,没有人能严格定义Web3D,在这里我们把Web3D理解为:互联网上的3D图形技术,互联网代表了未来的新技术,很明显,3D图形和动画将在互联网上占有重要的地位。
Java3D API是Sun定义的用于实现3D显示的接口。使用Java 的重要理由之一是它的平台无关性。Java3D提供了基于Java的上层接口。Java3D把OpenGL和DirectX这些底层技术包装在Java接口中。这种全新的设计使3D技术变得不再繁琐并且可以加入到J2SE、J2EE的整套架构,这些特性保证了Java3D技术强大的扩展性
本文以Java3D为开发平台,利用Java语言强大的网络功能,实现了在网页上对3D动画进行显示和操作。
关键字:Java3D、Web3D、三维
Abstract: The Internet appearance and the rapid development caused each domain to IT industry have the deep transformation, it initiated some new technical inevitably the appearance. The 3D graph technology is not a new topic, in the graph workstation down to on PC machine already more or day matured, and has applied to each domain. However the Internet appearance, caused the 3D graph technology to occur actually and is occurring is being subtle but the deep transformation. The Web3D association (predecessor is the VRML association) uses the Web3D terminology first, this terminology appearance had reflected this kind of change complete picture, nobody can strictly define Web3D, in here we do the Web3D understanding is: On the Internet 3D graph technology, the Internet has represented the future new technology, is very obvious, the 3D graph and the animation will hold the important status on the Internet.
Java3D API is the Sun definition uses in realizing the 3D demonstration connection. Uses one of Java important reasons is its platform irrelevant. Java3D has provided based on the Java upper formation connection. Java3D OpenGL and DirectX these first floor technology packing in Java connection. This kind of brand-new design causes the 3D technology to change no longer tediously and may join to J2SE, the J2EE entire wrap overhead construction, these characteristics have guaranteed the Java3D technology formidable extension.
This article develops the platform take Java3D, uses the Java language formidable network function nf, realized has carried on the demonstration and the operation on the homepage to the 3D animation.
Key word: Java3D, Web3D,3D
目录
基于Java3D的网络三维技术的设计与实现.... 1
摘要: 1
Abstract: 1
第一章 绪论.... 5
§1.1 引言... 5
§1.2 互联网3D图形技术的应用... 5
§1.3 JAVA3D在Web中的成功... 6
第二章 Java3D技术的简介.... 7
§2.1 Java3D概述... 7
2.1.1 Java3D简介... 7
2.1.2 Java3D与其他三维技术的比较... 7
§2.2 Java3D的场景图结构... 9
2.2.1 虚拟宇宙(Virtual Universe)... 10
2.2.2 Java3D的坐标系统... 10
2.2.3 场景(Locale)... 12
§2.3 实现三维世界... 13
2.3.1 Java3D的观察模式... 13
2.3.2 Java3D中用来定义观察的对象... 14
2.3.3 在三维世界中建立、移动观察点... 16
2.3.4 Java3D的网络基础... 17
第三章 实现JAVA3D结构体系的方法.... 17
§3.1 总体设计... 17
§3.2 基本形体的生成... 17
3.2.1平板的生成... 17
3.2.2 立方体的生成... 18
3.2.3 圆锥的生成... 18
3.2.4 球体的生成... 18
3.2.5.圆柱体的生成... 19
§3.3 点、线、面的生成... 19
3.3.1点的生成... 19
3.3.2直线的生成... 20
3.3.3面的生成... 20
§3.4 外部复杂形体的调用... 21
§3.5背景变换的实现方法... 21
3.5.1 灯光... 21
3.5.2 纹理贴图... 23
3.5.3 雾... 23
§3.6 动画的生成... 23
第四章JAVA3D场景的实现.... 24
§4.1Java3D的实现流程... 24
§4.2 JAVA3D的建模... 25
4.2.1 生成场景:... 25
4.2.2 Temple的圆柱体的构建... 25
4.2.3 Tower的构建... 26
§4.3 动画的实现... 28
4.3.1 调用galleon.obj文件... 28
4.3.2 物体转动... 29
4.3.3场景的移动... 29
§4.4 背景变换... 31
4.4.1 创建灯光... 31
4.4.2 创建背景图片... 34
4.4.3 指数雾... 35
4.4.4 背景音乐... 36
§4.5 在网页上显示3D图形... 37
第五章 实践和展望.... 39
§5.1 Web3D技术发展前景... 39
§5.2 论文总结... 40
参考文献.... 40