版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、虚拟现实技术大作业设计说明书设计题目:放映室姓名:学号:单位:计算机科学与技术030911班一:设计目标说明(描述目标)放映室内有电视可以看视频,听歌,有座位可以聊天休息。风扇可以转动,可移动的玻璃 门。二:设计环境说明(描述本设计所使用的软硬环境)vrmlPad三:设计过程说明(较详细描述自己的设计思路,设计过程,能够体现出本设计是自己做的。, 源代码详细注释.原本想在一个封闭的空间建立自己的作品,真正做的时候发现封闭空间内坐标不容易找 到,于是自己做了一个封闭的空间。由于时间仓促,有些东西做得并不精细。有些贴图网上 找不到,就自己用photoshop做。其中有一部分借鉴了老师和网上提供的例
2、子。首先建立了背景。背景上建立两个立方体,木板状的,作为房顶和地板。然后建立四根柱 子,再将除正面外其余三面墙围起来。正面的墙留着后面做玻璃门。然后在背面的墙建立一个立方体,作为电视机的底座,仿照老师给的例子建立电视机。桌子是由5个圆柱构成的,一个大的作为桌子面,剩下的作为四个腿。然后将房间在另一边复制一张桌子。凳子是有一个圆柱和一个圆构成的,在房间内复制了十 个。然后制璃门,运用时间传感器和位置传感器建立一个可推拉的门,然后在门两边建立玻璃墙。最后建立风扇,风扇需要点一下才能转动。风扇也借鉴了老师的例子。最后给放映厅加了音乐,使其功能更齐全。放映厅有四个视点,分别是左面,右面,正面,和外观。
3、通过这次上机是我了解了 vrml的功能,经历了两天时间,仔细计算各个物体的空间坐标, 学习各个函数功能,终于完成了虚拟现实的大作业。这将对我以后的学习工作上有一定的帮 助的。代码如下:#VRML V2.0 utf8Background (groundColor 0.7 0.6 0.8groundAngle 1.57skyColor 0.2 0.5 0.6DEFveiw1 Viewpoint ( position -20,10,12 description view1DEFview2 Viewpoint ( position 0,6,0 description veiw2 DEFview3 Vi
4、ewpoint ( position 20,10,12 description view3 DEFview4 Viewpoint ( position 0,10,45 description view4 Transform (children Shape (appearance Appearance ( texture ImageTexture ( url Tiles036a.jpg geometry Box ( size 50,2,25 Transform (translation 0, 6,-12.5 children Shape (appearance Appearance ( mate
5、rial Material ( ambientIntensity 0.7 diffuseColor 0.1 0.7 0.9 emissiveColor 0.4 0.7 0.8 shininess 0.4geometry Box ( size 14,10,4 Transform (translation 0,6,-10 children Background (skyColor 0.2 0.8 0.5 Transform (translation 0.0 0.0 -0.12 children Shape (appearance Appearance( material Material ( di
6、ffuseColor 0.2 0.3 0.3 geometry Box ( size 8.4 6.5 0.2 DEF movie MovieTexture# 电影纹理节点url hw.mpg#电影文件 *.mpgloop TRUErepeatS FALSE repeatT FALSE speed 1.5 Shape appearance Appearance( material Material ( diffuseColor 0.0 0.0 0.0 texture USE movie geometry Box (size 7.6 5.6 0.01# 电影屏幕DEF zhuzzi Transfo
7、rm (translation 25,5,12.5 children Shape (appearance Appearance ( material Material ( geometry Cylinder height 15radius 2bottom FALSEside TRUEtop TRUETransform translation 0,0,-25children USE zhuzziTransform translation -50,0,0children USE zhuzziTransform (translation -50,0,-25children USE zhuzzi Tr
8、ansform ( translation 0,12,0 children Shape (appearance Appearance ( material Material ( ambientIntensity 0.4 diffuseColor 0.3 0.7 0.5 emissiveColor 0.4 0.7 0.8 shininess 0.4 specularColor 1 0.3 0.5 transparency 0geometry Box ( size 50,2,25 DEF qiangbi Transform ( translation 25,5,0 children Shape (
9、appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpggeometry Box ( size 1,15,25 Transform (translation -50,0,0 children USE qiangbiTransform (translation 0,5,-12.5children Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry
10、 Box ( size 50,15,1 DEF zhuozi Group (children Transform (translation 12.5,2,0 children Shape (appearance Appearance ( texture ImageTexture (url 20100718122829mbmtu.jpg geometry Cylinder ( bottom TRUEheight 0.3 radius 2 side TRUE top TRUE Transform (#translation 1.4,-1,0 translation 13.9,1,0 childre
11、n Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUE top FALSE Transform (#translation -1.4,-1,0translation 11.1,1,0 children Shape ( appearance Appearance (texture ImageTexture ( url HYPERLINK http:
12、/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUEtop FALSETransform (#translation 0,-1,1.4translation 12.5,1,1.4 children Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TR
13、UE top FALSE Transform (#translation 0,-1,-1.4 translation 12.5,1,-1.4 children Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUE top FALSEGroup (children Transform ( translation -12.5,2,0 children
14、Shape ( appearance Appearance (texture ImageTexture (url 20100718122829mbmtu.jpg geometry Cylinder (bottom TRUE height 0.3 radius 2 side TRUE top TRUE Transform (#translation 1.4,-1,0 translation -13.9,1,0 children Shape (appearance Appearance (texture ImageTexture ( url HYPERLINK http:/www.jpg www.
15、jpggeometry Cylinder (bottom TRUE radius 0.1 height 2 side TRUE top FALSETransform (#translation -1.4,-1,0translation -11.1,1,0 children Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUE top FALSE T
16、ransform (#translation 0,-1,1.4 translation -12.5,1,-1.4 children Shape (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUE top FALSE Transform (#translation 0,-1,-1.4 translation -12.5,1,1.4 children Shape
17、 (appearance Appearance ( texture ImageTexture ( url HYPERLINK http:/www.jpg www.jpg geometry Cylinder ( bottom TRUE radius 0.1 height 2 side TRUE top FALSE Transform ( translation 3,4,-12.5 children DEF sound Transform ( translation 0.0 0.0 -0.12 scale 1.5 1.5 0.8 children Shape ( appearance Appear
18、ance( material Material ( diffuseColor 0.3 0.3 0.3 transparency 0.9 texture ImageTexture ( url 0108.jpg geometry Sphere ( radius 2.0 Transform (translation -3,4,-12.5scale 0.3 1.0 0.5children USE soundDEF Box10 Transform (translation 2 5 12.5rotation -1 0 0 -1.571children DEF Box10-TIMER TimeSensor
19、loop FALSE cycleInterval 0.6667 ,DEF Box10-POS-INTERP PositionInterpolator key 0, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9, 1,1.15,1.3 ,1.45,1.6,1.75,1.9,2 keyValue -3 5,12.5,-2 5 12.5,-0 5 12.5,0 5 12.5, 1.616 5 12.5,2.726 5 12.5,3.835 5 12.5, 4.944 5 12.5, 6.053 5 12.5,7.162 5 12.5, 8.235 5 12.5, 9.567 5 1
20、2.5,10.234 5 12.5, 11.345 5,12.5, 12.567 5 12.5,Transform translation 0 0.02324 0children Shape appearance Appearance material Material diffuseColor 0.1137 0.498 0.7216ambientIntensity 0.5686specularColor 0.6735 0.6735 0.6735shininess 0.2875transparency 0.31geometry Box size 12.5,0.5,15DEF TouchSens
21、or01-SENSOR TouchSensor enabled TRUE ROUTE Box10-TIMER.fraction_changed TO Box10-POS-INTERP.set_fraction ROUTE Box10-POS-INTERP.value_changed TO Box10.set_translation ROUTE TouchSensor01-SENSOR.touchTime TO Box10-TIMER.startTime Transform translation 13 5 12.5, rotation -1 0 0 -1.571 children Shape
22、appearance Appearance material Material diffuseColor 0.1137 0.498 0.7216 ambientIntensity 0.5686specularColor 0.6735 0.6735 0.6735 shininess 0.2875transparency 0.31 geometry Box size 17,0.5,15 Transform translation -15 5 12.5, rotation -1 0 0 -1.571 children Shape appearance Appearance material Mate
23、rial diffuseColor 0.1137 0.498 0.7216 ambientIntensity 0.5686specularColor 0.6735 0.6735 0.6735 shininess 0.2875transparency 0.31 geometry Box size 13,0.5,15 DEFyizi Transform translation 18,1,0 children Transform children Shape appearance Appearance texture ImageTexture url 6451-110z510294847.jpg g
24、eometry Cylinder bottom TRUE side TRUE height 1 radius 0.5 top FALSE Transform translation 0,0.5,0 children Shape appearance Appearance texture ImageTexture url 6451-110z510294847.jpg geometry Sphere radius 0.5 Transform ,translation -8 0,-10 children USE yizi Transform translation -6,0,6 children U
25、SE yizi Transformtranslation-28,0,8children USE yizi Transform translation -9,0,4.6 children USE yizi Transform translation -29,0,10 children USE yizi Transform translation -39,0,0 children USE yizi Transform translation -10,0,7 children USE yizi Transform translation -37,0,0 children USE yizi Trans
26、form translation -28,0,4children USE yiziTransform ( translation -15,0,7 children USE yizi DEF fengshan Transform ( children Transform( translation 0.0 10 0.0 scale 0.8 0.5 0.8 children#空间物体造型外观#一种材料的漫反射颜色#多少环境光被该表面反射#物体镜面反射光线的颜色#造型外观材料的亮度Shape ( appearance Appearance( material Material ( diffuseCol
27、or 0.3 0.2 0.0ambientIntensity 0.4 specularColor 0.7 0.7 0.6 shininess 0.20 geometry Sphere ( radius 0.5 Transform(translation 0.0 11 0.0scale 0.5 1.0 0.5 childrenDEF leaf Shape ( appearance Appearance( material Material ( diffuseColor 0.3 0.2 0.0#球体ambientIntensity 0.4 specularColor 0.7 0.7 0.6 shi
28、niness 0.20geometry Cylinder ( radius 0.2#空间物体造型外观#一种材料的漫反射颜色#多少环境光被该表面反射#物体镜面反射光线的颜色#造型外观材料的亮度#柱体#风扇叶#风扇叶#沿柱旋转传感器节点#拖拉前后的旋转轨迹#开启状态#传感器是打开的#旋转事件的最大角度#旋转事件的最小角度#旋转多少弧度height 2.0 top TRUE bottom TRUE side TRUE Transform( translation 3.8 -1 0.0 scale 20.0 0.03 1.5 rotation 1.0 0.0 0.0 0.524 childrenUSE leaf Transform( translation -3.8 -1 0.0 scale 20.0 0.03 1.5 rotation 1.0 0.0 0.0 0.524 childrenUSE leaf DEFTouch TouchSensor DEFTime TimeSensor cycleInterval 0.2 D
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年内蒙古通辽市单招职业倾向性考试题库有完整答案详解
- 2026年南充电影工业职业学院单招综合素质考试题库附答案详解
- 2026年博尔塔拉职业技术学院单招职业技能考试题库含答案详解(综合题)
- 2026年内蒙古北方职业技术学院单招职业技能测试题库含答案详解(研优卷)
- 2026年南阳职业学院单招职业倾向性考试题库附参考答案详解(b卷)
- 2026年保定职业技术学院单招职业技能测试题库附参考答案详解(预热题)
- 2026年内蒙古交通职业技术学院单招职业技能测试题库带答案详解(a卷)
- 2026年南阳农业职业学院单招综合素质考试题库及一套完整答案详解
- 2026年兰州科技职业学院单招职业倾向性考试题库(含答案详解)
- 2026年南昌理工学院单招职业适应性测试题库(含答案详解)
- 2026福建莆田市涵江区选聘区属一级国有企业高级管理人员2人笔试备考试题及答案解析
- 林业培训制度
- 农田水利工程施工组织设计范例
- 2026年官方标准版离婚协议书
- 平法图集培训
- 二十届中纪委五次全会知识测试题及答案解析
- 黑龙江大庆市2026届高三年级第二次教学质量检测化学(含答案)
- 公司品牌宣传年度推广计划
- 2025年贵州省高考化学试卷真题(含答案及解析)
- 开学第一课交通安全课件
- 2025年数字印刷技术应用项目可行性研究报告
评论
0/150
提交评论