版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
虚拟现实技术期末考评汇报院系:计算机科学与技术班级:10班学号:53141007姓名:袁雪峰
试验目标掌握虚拟现实技术复杂三维场景建模技术。在场景中引入环境背景、动画与交互等,构建逼真三维场景。试验要求此次试验为综合性质试验,要求自行设计一个较为复杂场景或者单体模型,其中包含各种造型与渲染技术,比如纹理材质、光照、环境背景、声音视频、动画与交互等。场景内容不限。试验内容利用vrml语言结构了一个虚拟现实世界。运动物体包含气球,火车,汽车,交通灯等,静止物体包含山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。结构一个背景:天空,草地。将山脉和树林放置于草地上,铺设铁轨和公路,设置火车和各种汽车运行轨迹,放置气球并使其做圆周运动。将电话亭等各部件按照百分比和位置放置,加入背景声音,虚拟世界基本结构完成。试验软硬件环境win10系统,VrmlPad,Cortona3Dviewers(64-bit),IE浏览器.试验步骤,截图以及代码VRML语言介绍:VRML(Virtual
Reality
Modeling
Language)即虚拟现实建模语言。是一个用于建立真实世界场景模型或人们虚构三维世界场景建模语言,也具备平台无关性。试验步骤以下:首先分别制作分场景(使用图片和VRML语言)使用VRML语言进行场景合并,并调试其中场景坐标。注:对以上工作惯用节点函数进行描述:Transform节点语法Transform{
children[]#所包含子节点列表
translation0.00.00.0#x,y,z方向上平移值
rotation0.00.01.00.0#x,y,z方向旋转轴标识,旋转角度(用弧度表示)
scale1.01.01.0#x,y,z方向缩放因子
scaleOrientation0.00.01.00.0#在x,y,z方向轴上旋转一定弧度后,在按scale因子缩放
Center0.00.00.0#新旋转或缩放中心点x,y,z坐标
}children域中值能够是Shape节点,Group节点或另一个Transform节点。VRML中节点有以下几个类型:
造型尺寸、外观节点:Shape、Appearance、Material
原始几何造型节点:Box、Cone、Cylinder、Sphere
造型编组节点:Group、Switch、Billboard
文本造型节点:Text、FrontStyle
造型定位、旋转、缩放节点:Transform
内插器节点:TimeSensor、PositionInterpolater、OrientationInterpolater、ColorInterpolator、ScalarInterpolator、CoordinateInterpolator、
感知节点:TouchSensor、CylinderSensor、PlaneSensor、SphereSensor、VisibilitySensor、ProximitySensor、Collision
点、线、面集节点:ointSet、IndexedLineSet、IndexedFaceSet、Coordinate
海拔节点:ElevationGrid
挤出节点:Extrusion
颜色、纹理、明暗节点:Color、ImageTexture、PixelTexture、MovieTexture、Normal
控制光源节点:ointLight、DirectionalLight、SpotLight
背景节点:Background
声音节点:AudioClip、MovieTexture、Sound
细节控制节点:OD
雾节点:Fog
空间信息节点:WorldInfo
锚点节点:Anchor
脚本节点:Script
控制视点节点:Viewpoint、NavigationInfo
用于创建新节点类型节点:ROTO、EXTERNPROTO、IS
总体部分显示(截图以下)总体部分代码以下:Background{ skyColor[0.980.980.98]}DirectionalLight{ ambientIntensity1.0 intensity5.0 direction010 color111 onTRUE}Viewpoint{ position 8.96606130725.8 orientation -0.997096 -0.0760361 -0.0042219 0.111409 fieldOfView 0.785398 description "front1"}Viewpoint{ position 8.9660620525.8 orientation -0.997096 -0.0760361 -0.0042219 0.111409 fieldOfView 0.785398 description "front2"}NavigationInfo{ avatarSize [0.25,1.6,0.75] headlight TRUE speed 1 type ["WALK", "FLY", "ANY"] visibilityLimit 0}Transform{ translation0-10420 rotation0001.571 scale4.03.04.0 children Inline{url"glcj.wrl"} }Transform{ translation0-10-60 rotation0001.571 scale4.03.04.0 children Inline{url"glcj.wrl"} }Transform{ translation0-10-540 rotation0001.571 scale4.03.04.0 children Inline{url"glcj.wrl"} } #左侧Transform{ translation-305-37-141 rotation0101.571 scale5.05.05.0 children Inline{url"VRML9-2\VRML9-2.wrl"} }Transform{ translation-261-8285 rotation0001.571 scale9.09.09.0 children Inline{url"VRML9-5\VRML9-5.wrl"} }Transform{ #左侧后 translation-281-41225 rotation0001.571 scale8.56.08.0 children [ Shape{ appearanceAppearance{ materialMaterial{ diffuseColor0.20.80.3 } } geometryBox{ size500.550 } } ] }Transform{ #左侧前 translation-281-41-695 rotation0001.571 scale8.56.013.0 children [ Shape{ appearanceAppearance{ materialMaterial{ diffuseColor0.20.80.3 } } geometryBox{ size500.550 } } ] } Transform{ translation-261-8-585 rotation0001.571 scale9.09.09.0 children Inline{url"VRML9-5\VRML9-5.wrl"} }Transform{ #右侧 translation281-41-300 rotation0001.571 scale8.56.028.8 children [ Shape{ appearanceAppearance{ materialMaterial{ diffuseColor0.20.80.3 } } geometryBox{ size500.550 } } ] }Transform{ #右侧楼 translation4657-141 rotation0101.571 scale3.03.03.0 children Inline{url"VRML9-3\VRML9-3.wrl"} }Transform{ translation251-12285 rotation0001.571 scale5.55.55.5 children Inline{url"VRML9-1\VRML9-1.wrl"} }Transform{ translation251-12-585 rotation0001.571 scale5.55.55.5 children Inline{url"VRML9-1\VRML9-1.wrl"} }总体部分资源文件夹显示:商场设计1.1商场截图显示1.2代码显示Background{ groundColor [0.7098 0.7098 0.7098] skyAngle[1.22,1.48] skyColor[0.2350.4781, 0.2550.7651, 0.5220.8941]}SpotLight{ intensity 0.26 color 111 location 135-16 direction 4.42043e-006-1-1.49012e-008}Viewpoint{ position01060 orientation 0010 fieldOfView 0.785 description "view1" jumpTRUE}Transform{ translation 0018 children[ Transform{ translation 000 children[ Inline{ url"c3001.wrl" } ]}Transform{ translation 000 children[ Inline{ url"down001.wrl" } ]}Transform{ translation 11.980-20.04 rotation0101.5708 children[ Inline{ url"c.wrl" } ]}Transform{ translation 7.920-36.01 rotation0103.1416 children[ Inline{ url"c1001.wrl"}Transform{ translation 13.922500 children[ Inline{ url"c1002.wrl" } ] } ]}Transform{ translation -120-12.05 rotation010-1.5708 children[ Inline{ url"c4001.wrl" }Transform{ translation -13.02502.61 children[ Inline{ url"c4002.wrl" } ] } ]}Transform{ translation 02.6750 children[ Inline{ url"up.wrl" } ] } ]}1.3资源文件夹显示医院设计2.1医院截图显示2.2医院代码Background{groundAngle[0.7,1.5,1.57]groundColor[00.3330, 00.40, 00.50, 0.620.670.60]skyAngle [0.9,1.5,1.57]skyColor [0.210.180.66, 0.20.440.85, 0.510.810.95, 0.770.80.82]}NavigationInfo{avatarSize [0.01,0.2,0.5]headlight TRUEspeed 1#type "WALK"visibilityLimit 0}DEFCamera01Viewpoint{position 2000orientation 0101.57description "Camera01"}DEFCamera02Viewpoint{position -1204orientation 0-101description "Camera02"}DEFCamera03Viewpoint{position 3012description "Camera03"}DEFCamera04Viewpoint{position 30-12orientation 0103.14description "Camera04"}DEFbigdoorViewpoint{position 1-2.74description "Camera05"}DEFtree1Transform{ #树translation12.5-3.412-10.5 scale111children[ Billboard{ axisOfRotation0.01.00.0children[ Shape{appearanceAppearance{textureImageTexture{url"tree1.png"}}geometryDEFTreeFace1IndexedFaceSet{coordCoordinate{point[-1.510.050.0,1.510.050.0,1.513.050.0,-1.513.050.0,]}coordIndex[0,1,2,3]texCoordTextureCoordinate{point[0.00.0,1.00.0,1.01.0,0.01.0,]}texCoordIndex[0,1,2,3]solidFALSE} } ] } ] }Transform{ #树translation002.5 scale111children[USEtree1] }Transform{ #树translation005 scale111children[USEtree1] }Transform{ #树translation007.5 scale111children[USEtree1] }DEFtree2Transform{ #树translation8.5-3.4126.5 scale111children[ Billboard{ axisOfRotation0.01.00.0children[ Shape{appearanceAppearance{textureImageTexture{url"tree1.png"}}geometryDEFTreeFace2IndexedFaceSet{coordCoordinate{point[-1.510.050.0,1.510.050.0,1.513.050.0,-1.513.050.0,]}coordIndex[0,1,2,3]texCoordTextureCoordinate{point[0.00.0,1.00.0,1.01.0,0.01.0,]}texCoordIndex[0,1,2,3]solidFALSE} } ] } ] }Transform{ #树translation-2.500 scale111children[USEtree2] }Transform{ #树translation-500 scale111children[USEtree2] }Transform{ #树translation-7.500 scale111children[USEtree2] }Transform{ #树translation-1000 scale111children[USEtree2] }Transform{ #树translation-12.500 scale111children[USEtree2] }Transform{children Transform{children Inline{url "build\MAINLEFT.wrl"}}}Transform{children Transform{children Inline{url "build\MAINOUT.wrl"}}translation 1.702}Transform{children Transform{children Inline{url "build\MAINRIGHT.wrl"}}translation 900}Transform{children Shape{appearance Appearance{material Material{ ambientIntensity 0diffuseColor 0.5446760.70.0404636 }}geometry Box{size 200.220}}translation 3-3.5-3}2.3医院资源文件夹显示文化宫3.1文化宫截图显示3.2文化宫代码NavigationInfo{ avatarSize [0.25,1.6,0.75] headlight TRUE speed 1 type ["WALK", "FLY", "EXAMINE", "ANY"] visibilityLimit 0}Background{ groundAngle 1.57079 groundColor [10.80.6, 0.60.40.2] skyAngle [0.2,1.57079] skyColor [110, 111, 0.20.21]}PointLight{ intensity 0.35 color 111 location 4.7955450.3417-51.8209}Viewpoint{ position 81.31122.5-6.44401 orientation 0.0219329-0.9996710.01330355.32716 description "right"}Viewpoint{ position 5.89238.7520737.4917 orientation 1000.0111559 description "front"}Viewpoint{ position 3.7120911.4866-164.924 orientation -0.-0.999930.01177743.14157 description "back"}Viewpoint{ position -75.5409-3.92723-91.6657 orientation -0.00583566-0.9999180.01143552.33293 description "left"}Transform{ children Shape{ appearance Appearance{ material DEF_0Material{ } } geometry Box{ size 30.90.57.5 } }translation 38.2043-11.7577-37.9353}Transform{ children Shape{ appearance Appearance{ material USE_0 } geometry Box{ size 440.534 } }translation 6.09145-11.7487-56.6952}Transform{ children Inline{ url "fangkuaiz1.wrl" } translation -9.64711-11.2552-75.1707 rotation 0103.14 scale 111}Transform{ children Inline{ url "fangkuaiz.wrl" } translation 21.3522-12.3257-68.6208 rotation 0103.14 scale 111}Transform{ children Inline{ url "leftwindows.wrl" } translation -42.7086-9.68456-54.6323 rotation 0-101.57079 scale 0.99999810.999998}Transform{ children Inline{ url "leftwindows.wrl" } translation 56.6776-9.53636-53.8542 rotation 0101.59069 scale 0.99999810.999998}Transform{ children Shape{ appearance Appearance{ material USE_0 } geometry Box{ size 72.38.9 }} translation 6.49652-12.6474-35.2384}Transform{ children Shape{ appearance Appearance{ material USE_0 } geometry Box{ size 18.90.515 }} translation 19.2204-11.7646-35.709}Transform{ children Shape{ appearance Appearance{ material USE_0 } geometry Box{ size 190.512}} translation -6.0365-11.7483-33.7512}Transform{ children Inline{ url "fangkuaiz.wrl" } translation -8.33719-12.7663-37.8966}Transform{ children Inline{ url "fangkuaiz1.wrl" } translation 22.5037-10.6295-31.0415}Transform{ children Inline{ url "zhengqiang.wrl" } translation 40.3582-7.99535-35.365}Transform{ children Inline{ url "zhengqiangL.wrl" } translation -16.8159-8.27652-35.3298}Transform{ children Inline{ url "windows9.wrl" } translation 52.2902-11.8565-38.5036 rotation 0101.57148}Transform{ children Inline{ url "zhengqiangL.wrl" } translation 30.5848-8.07789-72.9203 rotation 0103.14352 scale 111}Transform{ children Inline{ url "windows9.wrl" } translation -38.4666-11.7504-69.8092 rotation 0-101.57 scale 111}Transform{ children Inline{ url "zhengqiang.wrl" } translation -26.4858-8.08624-72.9566 rotation 0103.14352 scale 111}Transform{ children Inline{ url "wall.wrl" } translation -9.9288-15.5659-78.9974 rotation 0-101.55932}Transform{ children Inline{ url "1.wrl" } translation 6.8379719.8689-53.0009}Transform{ children Inline{ url "qianfang.wrl" } translation 6.852-9.9057643.7841}Transform{ children Shape{ appearance Appearance{ material USE_0 } geometry Box{ size 25.50.57.5 } } translation 40.7796-11.7487-70.1407}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 28.60.525}}translation 39.3355-11.7487-54.1801}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 25.50.57.5}}translation -27.1672-11.7487-70.3554}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 250.525}}translation -27.2503-11.7487-54.1368}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 30.50.57.5}}translation -24.6359-11.7487-38.2663}Transform{children Inline{url "smallladder.wrl"}translation 0.128055.60187-0.0243855}Transform{children Inline{url "circle.wrl"}translation 6.714679.03146-53.9633}Transform{children Shape{appearance Appearance{material DEF_1Material{}}geometry Box{size 30.257.5}}translation 39.30899.52323-69.4972rotation 0104.71239scale 444}Transform{children Shape{appearance Appearance{material USE_1}geometry Box{size 7.50.253}}translation 39.20629.52703-38.277scale 444}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 30.257.5}}translation -26.06889.54235-69.6339rotation 0104.71239scale 444}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 7.50.253}}translation -26.27089.50971-38.2967scale 444}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 30.254.9}}translation -35.04629.53663-53.9117scale 444}Transform{children Shape{appearance Appearance{material USE_0}geometry Box{size 30.254.9}}translation 48.23779.51326-53.7626scale 444}Transform{children Shape{appearance Appearance{material USE_0texture ImageTexture{ url "picture/floor1.gif"}textureTransform TextureTransform{ scale 1010}}geometry Box{size 1300.1100}}translation 6.85145-15.3173-54.0648}Transform{children Inline{url "inside.wrl"}translation -15.23511.25397-46.1326rotation 0-101.57scale 424}Transform{children Inline{url "inside.wrl"}translation 40.56241.02894-45.7849rotation 0-101.57scale 424}Transform{children Inline{url "Ldoor.wrl"}translation -6.8662412.715-0.258465}Transform{children Inline{url "Rdoor.wrl"}translation 19.705412.7708-105.791rotation 0103.14223scale 111}Transform{children [Transform{children Inline{ url "chair.wrl"}translation 22.05880.5142872.1546rotation -0.0.999825-0.01870233.13296scale 111}Transform{children Inline{ url "chair.wrl"}translation 22.6160.5260943.27346rotation -1.29503e-01012.81108e-0101.58512scale 111scaleOrientation 0010}Transform{children Inline{ url "table.wrl"}translation 22.51521.014752.0807rotation 0-101.56706scale 111}Transform{children Inline{ url "computer3.wrl"}translation 22.15971.570381.0657rotation 0010scale 111scaleOrientation 0010}Transform{children Inline{ url "computer3.wrl"}translation 23.51541.548153.2943rotation 0104.71173scale 111scaleOrientation 0010}Transform{children Inline{ url "table.wrl"}translation 22.51531.014755.06434rotation 0103.14336scale 111}]translation 15.394-11.884-59.7972rotation 0103.14544scale 111}Viewpoint{position 6.74098-7.22413-30.4559orientation 1000.0111559description "frontdoor"}Viewpoint{position 6.34218-8.82863-51.6194orientation 0010description "inside"}Viewpoint{position 6.227946.38314-15.829orientation 1000.0111559description "frontladder"}PointLight{intensity 0.48color 111location 20.81451.1629-4.21858}Viewpoint{position 136.9033.1106932.1346orientation -0.01185790.9999110.006149940.955953fieldOfView 0.785398}Transform{children Inline{url "tree4.wrl"}translation -25.6452-15.6253-11.1447}Transform{children Inline{url "tree4.wrl"}translation 40.0037-15.8364-10.8946}Transform{children Inline{url "tree4.wrl"}translation -61.2405-15.5973-53.6121rotation 0-101.57scale 111}Transform{children Inline{url "tree4.wrl"}translation -61.-15.5833-82.0342rotation 0-101.57scale 111}Transform{children Inline{url "tree4.wrl"}translation 56.8159-15.2081-80.576rotation 0-101.57scale 111}Transform{children Inline{url "tree4.wrl"}translation 56.6081-15.3788-52.0456rotation 0-101.57scale 111}3.3文化宫资源文件夹公路和运动汽车4.1结果截图显示4.2代码显示Background{ skyColor[0.980.980.98]}Transform{ translation0-10-60 rotation0101.571 scale4.03.02.0 children Inline{url"gl.wrl"} }DEFtree1Transform{ #左侧树translation-18.5-10-35 scale1.02.01.0children[ Billboard{ axisOfRotation0.01.00.0children[ Shape{appearanceAppearance{textureImageTexture{url"tree1.png"}}geometryDEFTreeFaceIndexedFaceSet{coordCoordinate{point[-1.510.050.0,1.510.050.0,1.513.050.0,-1.513.050.0,]}coordIndex[0,1,2,3]texCoordTextureCoordinate{point[0.00.0,1.00.0,1.01.0,0.01.0,]}texCoordIndex[0,1,2,3]solidFALSE} } ] } ] }Transform{translation0030children[USEtree1] }Transform{translation0020children[USEtree1] }Transform{translation0010children[USEtree1] }Transform{translation000children[USEtree1] }Transform{translation00-10children[USEtree1] }Transform{translation00-20children[USEtree1] }Transform{translation00-30children[USEtree1] }Transform{translation00-40children[USEtree1] }Transform{translation00-50children[USEtree1] }Transform{translation00-60children[USEtree1] }Transform{translation00-70children[USEtree1] } Transform{translation00-80children[USEtree1] }DEFtree2Transform{ #右侧树translation18.5-10-35 scale1.02.01.0children[ Billboard{ axisOfRotation0.01.00.0children[ Shape{appearanceAppearance{textureImageTexture{url"tree1.png"}}geometryDEFTreeFace1IndexedFaceSet{coordCoordinate{point[-1.510.050.0,1.510.050.0,1.513.050.0,-1.513.050.0,]}coordIndex[0,1,2,3]texCoordTextureCoordinate{point[0.00.0,1.00.0,1.01.0,0.01.0,]}texCoordIndex[0,1,2,3]solidFALSE} } ] } ] }Transform{translation0030children[USEtree2] }Transform{translation0020children[USEtree2] }Transform{translation0010children[USEtree2] }Transform{translation000children[USEtree2] }Transform{translation00-10children[USEtree2] }Transform{translation00-20children[USEtree2] }Transform{translation00-30children[USEtree2] }Transform{translation00-40children[USEtree2] }Transform{translation00-50children[USEtree2] }Transform{translation00-60children[USEtree2] }Transform{translation00-70children[USEtree2] }Transform{translation00-80children[USEtree2] }#创建汽车造型DEFcar Transform{ translation 000 scale1.01.01.0 children[Inline{url"bc.wrl"} ]}DEFcar1 Transform{ translation 000 scale1.01.01.0 rotation0103.141 children[Inline{url"rc.wrl"} ]}DEF TimeTimeSensor {#时间传感器 cycleInterval10.0 loopTRUE } DEF runPositionInterpolator{#移动位置节点 key[#相对时间逻辑值 0.0,0.2, 0.4,0.6, 0.8,1.0 ] keyValue[#空间坐标位置值与相对时间逻辑值 6-10-10, 6-10-30, 6-10-50, 6-10-70, 6-10-90, 6-10-120, ] }DEF Time1TimeSensor {#时间传感器 cycleInterval3.0 loopTRUE } DEF run1PositionInterpolator{#移动位置节点 key[#相对时间逻辑值 0.0,0.2, 0.4,0.6, 0.8,1.0 ] keyValue[#空间坐标位置值与相对时间逻辑值 -12-10-120, -12-10-90, -12-10-70, -12-10-50, -12-10-30, -12-10-10, ] }ROUTETime.fraction_changed TOrun.set_fractionROUTErun.value_changedTO car.set_translationROUTETime1.fraction_changed TOrun1.set_fractionROUTErun1.value_changedTO car1.set_translation 运动气球5.1截图显示5.2气球代码显示 Groupchildren[BackgroundskyColor[0.20.50.6]#创建月球造型Transformtranslation000.0scale111children[Shape#银白颜色appearancee
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 机器人项目课程设计
- 机器人程序设计课程设计
- 2024年二手家具交易合同汇编
- 本科通信课程设计
- 本真课堂 研究报告
- 天津市静海区瀛海学校2019-2020学年高一11月份四校联考化学试题
- 2024至2030年银杏螺旋藻胶囊项目投资价值分析报告
- 本地木屋施工方案
- 本土音乐文化课程设计
- 2024至2030年红粉项目投资价值分析报告
- 运输公司年度工作计划(3篇)
- 茶文化与茶健康教学课件
- 初中数学华东师大七年级上册第章走进数学世界-《月历中的数学奥秘》PPT
- (完整word版)兰亭集序原文及译文
- 问诊及体格检查课件
- 土石方场平工程施工组织设计
- DB37-T 5019-2021 装配式混凝土结构工程施工与质量验收标准
- 企业风险管理-战略与绩效整合(中文版)
- 四年级上册英语教案-Lesson 8 TV and phone |冀教版
- 湘科版四年级上册科学期中质量检测卷(2套)(含答案)
- 三星堆文化遗迹中国风动态PPT
评论
0/150
提交评论