虚拟现实技术期末作业

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

虚拟现实技术期末考核报告院系:计算机科学与技术班级:10班学号:53141007姓名:袁雪峰一.实验目的掌握虚拟现实技术复杂三维场景建模技术。在场景中引入环境背景、动画与交互等,构建逼真的三维场景。二.实验要求本次试验为综合性质试验,要求自行设计一个较为复杂的场景或者单体模型,其中包含各种造型与渲染技术,比如纹理材质、光照、环境背景、声音视频、动画与交互等。场景内容不限。三.实验内容运用vrml语言构造了一个虚拟现实世界。运动物体包括气球,火车,汽车,交通灯等,静止物体包括山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。构造一个背景:天空,草地。将山脉和树林放置于草地上,铺设铁轨和公路,设置火车和各种汽车的运行轨迹,放置气球并使其做圆周运动。将电话亭等各部件按照比例和位置放置,加入背景声音,虚拟世界基本构造完成。四.实验软硬件环境win10系统,VrmlPad,Cortona3Dviewers(64-bit),IE浏览器.五.实验步骤,截图以及代码VRML语言简介:VRML(VirtualRealityModelingLanguage)即虚拟现实建模语言。是一种用于建立真实世界的场景模型或人们虚构的三维世界的场景建模语言,也具有平台无关性。实验步骤如下:1.首先分别制作分场景(使用图片和VRML语言)2.使用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.0intensity5.0direction010color111onTRUE}Viewpoint{position8.96606130725.8orientation-0.997096-0.0760361-0.00422190.111409fieldOfView0.785398descriptionfront1}Viewpoint{position8.9660620525.8orientation-0.997096-0.0760361-0.00422190.111409fieldOfView0.785398descriptionfront2}NavigationInfo{avatarSize[0.25,1.6,0.75]headlightTRUEspeed1type[WALK,FLY,ANY]visibilityLimit0}Transform{translation0-10420rotation0001.571scale4.03.04.0childrenInline{urlglcj.wrl}}Transform{translation0-10-60rotation0001.571scale4.03.04.0childrenInline{urlglcj.wrl}}Transform{translation0-10-540rotation0001.571scale4.03.04.0childrenInline{urlglcj.wrl}}#左侧Transform{translation-305-37-141rotation0101.571scale5.05.05.0childrenInline{urlVRML9-2\VRML9-2.wrl}}Transform{translation-261-8285rotation0001.571scale9.09.09.0childrenInline{urlVRML9-5\VRML9-5.wrl}}Transform{#左侧后translation-281-41225rotation0001.571scale8.56.08.0children[Shape{appearanceAppearance{materialMaterial{diffuseColor0.20.80.3}}geometryBox{size500.550}}]}Transform{#左侧前translation-281-41-695rotation0001.571scale8.56.013.0children[Shape{appearanceAppearance{materialMaterial{diffuseColor0.20.80.3}}geometryBox{size500.550}}]}Transform{translation-261-8-585rotation0001.571scale9.09.09.0childrenInline{urlVRML9-5\VRML9-5.wrl}}Transform{#右侧translation281-41-300rotation0001.571scale8.56.028.8children[Shape{appearanceAppearance{materialMaterial{diffuseColor0.20.80.3}}geometryBox{size500.550}}]}Transform{#右侧楼translation4657-141rotation0101.571scale3.03.03.0childrenInline{urlVRML9-3\VRML9-3.wrl}}Transform{translation251-12285rotation0001.571scale5.55.55.5childrenInline{urlVRML9-1\VRML9-1.wrl}}Transform{translation251-12-585rotation0001.571scale5.55.55.5childrenInline{urlVRML9-1\VRML9-1.wrl}}总体部分资源文件夹显示:1.商场设计1.1商场截图显示1.2代码显示Background{groundColor[0.70980.70980.7098]skyAngle[1.22,1.48]skyColor[0.2350.4781,0.2550.7651,0.5220.8941]}SpotLight{intensity0.26color111location135-16direction4.42043e-006-1-1.49012e-008}Viewpoint{position01060orientation0010fieldOfView0.785descriptionview1jumpTRUE}Transform{translation0018children[Transform{translation000children[Inline{urlc3001.wrl}]}Transform{translation000children[Inline{urldown001.wrl}]}Transform{translation11.980-20.04rotation0101.5708children[Inline{urlc2000.wrl}]}Transform{translation7.920-36.01rotation0103.1416children[Inline{urlc1001.wrl}Transform{translation13.922500children[Inline{urlc1002.wrl}]}]}Transform{translation-120-12.05rotation010-1.5708children[Inline{urlc4001.wrl}Transform{translation-13.02502.61children[Inline{urlc4002.wrl}]}]}Transform{translation02.6750children[Inline{urlup.wrl}]}]}1.3资源文件夹显示2.医院设计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]headlightTRUEspeed1#typeWALKvisibilityLimit0}DEFCamera01Viewpoint{position2000orientation0101.57descriptionCamera01}DEFCamera02Viewpoint{position-1204orientation0-101descriptionCamera02}DEFCamera03Viewpoint{position3012descriptionCamera03}DEFCamera04Viewpoint{position30-12orientation0103.14descriptionCamera04}DEFbigdoorViewpoint{position1-2.74descriptionCamera05}DEFtree1Transform{#树translation12.5-3.412-10.5sc

1 / 44
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功