虚拟现实技术期末作业_第1页
虚拟现实技术期末作业_第2页
虚拟现实技术期末作业_第3页
虚拟现实技术期末作业_第4页
虚拟现实技术期末作业_第5页
已阅读5页,还剩61页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、虚拟现实技术期末考核报告 院系:计算机科学与技术 班级:10班 学号: 姓名:袁雪峰1 实验目的掌握虚拟现实技术复杂三维场景建模技术。在场景中引入环境背景、动画与交互等,构建逼真的三维场景。2 实验要求本次试验为综合性质试验,要求自行设计一个较为复杂的场景或者单体模型,其中包含各种造型与渲染技术,比如纹理材质、光照、环境背景、声音视频、动画与交互等。场景内容不限。3 实验内容运用vrml语言构造了一个虚拟现实世界。运动物体包括气球,火车,汽车,交通灯等,静止物体包括山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。构造一个背景:天空,草地。将山脉和树林放置

2、于草地上,铺设铁轨和公路,设置火车和各种汽车的运行轨迹,放置气球并使其做圆周运动。将电话亭等各部件按照比例和位置放置,加入背景声音,虚拟世界基本构造完成。4 实验软硬件环境win10系统,VrmlPad,Cortona3D viewers(64-bit),IE浏览器.5 实验步骤,截图以及代码VRML语言简介:VRML(VirtualRealityModelingLanguage)即虚拟现实建模语言。是一种用于建立真实世界的场景模型或人们虚构的三维世界的场景建模语言,也具有平台无关性。实验步骤如下:1. 首先分别制作分场景(使用图片和VRML语言)2. 使用VRML语言进行场景合并,并调试其中

3、场景的坐标。注:对以上工作常用的节点的函数进行描述:Transform节点语法Transform children # 所包含的子节点列表translation 0.0 0.0 0.0 # x,y,z方向上平移的值ro tation 0.0 0.0 1.0 0.0 # x,y,z方向旋转轴标识,旋转角度(用弧度表示)scale 1.0 1.0 1.0 # x,y,z方向的缩放因子scaleOrientation 0.0 0.0 1.0 0.0 # 在x,y,z方向轴上旋转一定弧度后,在按scale因子缩放Center 0.0 0.0 0.0 # 新的旋转或缩放中心点的x,y,z坐标 child

4、ren域中的值可以是Shape节点,Group节点或另一个Transform节点。VRML中的节点有以下几种类型:造型尺寸、外观节点:Shape、Appearance、Material原始几何造型节点:Box、Cone、Cylinder、Sphere造型编组节点:Group、Switch、Billboard文本造型节点:Text、FrontStyle造型定位、旋转、缩放节点:Transform内插器节点:TimeSensor、PositionInterpolater、OrientationInterpolater、ColorInterpolator、 ScalarInterpolator、Co

5、ordinateInterpolator、感知节点:TouchSensor、CylinderSensor、PlaneSensor、SphereSensor、VisibilitySensor、ProximitySensor、Collision点、线、面集节点:ointSet、IndexedLineSet、IndexedFaceSet、Coordinate海拔节点:ElevationGrid挤出节点:Extrusion颜色、纹理、明暗节点:Color、ImageTexture、PixelTexture、MovieTexture、Normal控制光源的节点:ointLight、Directional

6、Light、SpotLight背景节点:Background声音节点:AudioClip、MovieTexture、Sound细节控制节点:OD雾节点:Fog空间信息节点:WorldInfo锚点节点:Anchor脚本节点:Script控制视点的节点:Viewpoint、NavigationInfo用于创建新节点类型的节点:ROTO、EXTERNPROTO、IS总体部分显示(截图如下)总体部分代码如下:Background skyColor 0.98 0.98 0.98DirectionalLight ambientIntensity 1.0intensity 5.0direction 0 1

7、0color 1 1 1on TRUEViewpoint position8.96606 130 725.8 orientation-0. -0. -0. 0.fieldOfView0.descriptionfront1Viewpoint position8.96606 20 525.8 orientation-0. -0. -0. 0.fieldOfView0.descriptionfront2NavigationInfo avatarSize 0.25, 1.6, 0.75 headlightTRUEspeed1type WALK, FLY, ANY visibilityLimit0Tra

8、nsform translation 0 -10 420rotation 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrlTransform translation 0 -10 -60rotation 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrlTransform translation 0 -10 -540rotation 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrl #左侧Transform

9、translation -305 -37 -141rotation 0 1 0 1.571scale 5.0 5.0 5.0 childrenInline url VRML9-2VRML9-2.wrlTransform translation -261 -8 285rotation 0 0 0 1.571scale 9.0 9.0 9.0 childrenInline url VRML9-5VRML9-5.wrlTransform #左侧后translation -281 -41 225rotation 0 0 0 1.571scale 8.5 6.0 8.0childrenShape app

10、earance Appearance material Material diffuseColor 0.2 0.8 0.3geometry Box size 50 0.5 50Transform #左侧前translation -281 -41 -695rotation 0 0 0 1.571scale 8.5 6.0 13.0childrenShape appearance Appearance material Material diffuseColor 0.2 0.8 0.3geometry Box size 50 0.5 50 Transform translation -261 -8

11、 -585rotation 0 0 0 1.571scale 9.0 9.0 9.0 childrenInline url VRML9-5VRML9-5.wrlTransform #右侧translation 281 -41 -300rotation 0 0 0 1.571scale 8.5 6.0 28.8childrenShape appearance Appearance material Material diffuseColor 0.2 0.8 0.3geometry Box size 50 0.5 50Transform #右侧楼translation 465 7 -141rota

12、tion 0 1 0 1.571scale 3.0 3.0 3.0 childrenInline url VRML9-3VRML9-3.wrlTransform translation 251 -12 285rotation 0 0 0 1.571scale 5.5 5.5 5.5 childrenInline url VRML9-1VRML9-1.wrlTransform translation 251 -12 -585rotation 0 0 0 1.571scale 5.5 5.5 5.5 childrenInline url VRML9-1VRML9-1.wrl总体部分资源文件夹显示:

13、1. 商场设计1.1商场截图显示1.2代码显示BackgroundgroundColor0.7098 0.7098 0.7098 skyAngle1.22,1.48skyColor0.235 0.478 1,0.255 0.765 1,0.522 0.894 1SpotLightintensity0.26color1 1 1location1 35 -16direction4.42043e-006 -1 -1.49012e-008Viewpoint position 0 10 60orientation0 0 1 0fieldOfView0.785descriptionview1jump TR

14、UETransformtranslation0 0 18childrenTransformtranslation0 0 0childrenInlineurl c3001.wrlTransformtranslation0 0 0childrenInlineurl down001.wrlTransformtranslation11.98 0 -20.04rotation 0 1 0 1.5708childrenInlineurl c2000.wrlTransformtranslation7.92 0 -36.01rotation 0 1 0 3.1416childrenInlineurl c100

15、1.wrlTransformtranslation13.9225 0 0childrenInlineurl c1002.wrlTransformtranslation-12 0 -12.05rotation 0 1 0 -1.5708childrenInlineurl c4001.wrlTransformtranslation-13.025 0 2.61childrenInlineurl c4002.wrlTransformtranslation0 2.675 0childrenInlineurl up.wrl1.3 资源文件夹显示2. 医院设计2.1医院截图显示2.2医院代码Backgrou

16、nd groundAngle 0.7,1.5,1.57 groundColor 0 0.333 0,0 0.4 0,0 0.5 0, 0.62 0.67 0.60 skyAngle 0.9,1.5,1.57 skyColor 0.21 0.18 0.66,0.2 0.44 0.85 ,0.51 0.81 0.95,0.77 0.8 0.82NavigationInfo avatarSize 0.01, 0.2, 0.5 headlightTRUE speed1 # typeWALK visibilityLimit0 DEF Camera01 Viewpoint position20 0 0 o

17、rientation0 1 0 1.57 descriptionCamera01DEF Camera02 Viewpoint position-12 0 4 orientation0 -1 0 1 descriptionCamera02DEF Camera03 Viewpoint position3 0 12 descriptionCamera03DEF Camera04 Viewpoint position3 0 -12 orientation0 1 0 3.14 descriptionCamera04 DEF bigdoor Viewpoint position1 -2.7 4 descr

18、iptionCamera05DEF tree1 Transform #树 translation 12.5 -3.412 -10.5 scale 1 1 1 children Billboard axisOfRotation 0.0 1.0 0.0 children Shape appearance Appearance texture ImageTexture url tree1.png geometry DEF TreeFace1 IndexedFaceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.05 0.0, 1.51 3.05 0

19、.0, -1.51 3.05 0.0, coordIndex 0, 1, 2, 3 texCoord TextureCoordinate point 0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, texCoordIndex 0, 1, 2, 3 solid FALSE Transform #树 translation 0 0 2.5 scale 1 1 1 children USE tree1Transform #树 translation 0 0 5 scale 1 1 1 children USE tree1Transform #树 translation 0 0

20、 7.5 scale 1 1 1 children USE tree1DEF tree2 Transform #树 translation 8.5 -3.412 6.5 scale 1 1 1 children Billboard axisOfRotation 0.0 1.0 0.0 children Shape appearance Appearance texture ImageTexture url tree1.png geometry DEF TreeFace2 IndexedFaceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.0

21、5 0.0, 1.51 3.05 0.0, -1.51 3.05 0.0, coordIndex 0, 1, 2, 3 texCoord TextureCoordinate point 0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, texCoordIndex 0, 1, 2, 3 solid FALSE Transform #树 translation -2.5 0 0 scale 1 1 1 children USE tree2Transform #树 translation -5 0 0 scale 1 1 1 children USE tree2Transfor

22、m #树 translation -7.5 0 0 scale 1 1 1 children USE tree2Transform #树 translation -10 0 0 scale 1 1 1 children USE tree2Transform #树 translation -12.5 0 0 scale 1 1 1 children USE tree2Transform childrenTransform childrenInline urlbuildMAINLEFT.wrl Transform childrenTransform childrenInline urlbuildM

23、AINOUT.wrl translation1.7 0 2Transform childrenTransform childrenInline urlbuildMAINRIGHT.wrl translation9 0 0Transform childrenShape appearanceAppearance materialMaterial ambientIntensity0 diffuseColor0. 0.7 0. geometryBox size20 0.2 20 translation3 -3.5 -32.3医院资源文件夹显示3. 文化宫3.1文化宫截图显示3.2文化宫代码Naviga

24、tionInfo avatarSize 0.25, 1.6, 0.75 headlightTRUEspeed1type WALK, FLY, EXAMINE, ANY visibilityLimit0Background groundAngle1.57079groundColor 1 0.8 0.6, 0.6 0.4 0.2 skyAngle 0.2, 1.57079 skyColor 1 1 0, 1 1 1, 0.2 0.2 1 PointLight intensity0.35color1 1 1location4.79554 50.3417 -51.8209Viewpoint posit

25、ion81.3112 2.20005 -6.44401orientation0. -0. 0. 5.32716descriptionrightViewpoint position5.8923 8.75207 37.4917orientation1 0 0 0.descriptionfrontViewpoint position3.71209 11.4866 -164.924orientation-0. -0.99993 0. 3.14157descriptionbackViewpoint position-75.5409 -3.92723 -91.6657orientation-0. -0.

26、0. 2.33293descriptionleftTransform childrenShape appearanceAppearance materialDEF _0 Material geometryBox size30.9 0.5 7.5 translation38.2043 -11.7577 -37.9353Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size44 0.5 34 translation6.09145 -11.7487 -56.6952Transform childrenI

27、nline urlfangkuaiz1.wrltranslation-9.64711 -11.2552 -75.1707rotation0 1 0 3.14scale1 1 1Transform childrenInline urlfangkuaiz.wrltranslation21.3522 -12.3257 -68.6208rotation0 1 0 3.14scale1 1 1Transform childrenInline urlleftwindows.wrltranslation-42.7086 -9.68456 -54.6323rotation0 -1 0 1.57079scale

28、0. 1 0.Transform childrenInline urlleftwindows.wrltranslation56.6776 -9.53636 -53.8542rotation0 1 0 1.59069scale0. 1 0.Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size7 2.3 8.9 translation6.49652 -12.6474 -35.2384Transform childrenShape appearanceAppearance materialUSE _0

29、 geometryBox size18.9 0.5 15 translation19.2204 -11.7646 -35.709Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size19 0.5 12 translation-6.0365 -11.7483 -33.7512Transform childrenInline urlfangkuaiz.wrltranslation-8.33719 -12.7663 -37.8966Transform childrenInline urlfangkuai

30、z1.wrltranslation22.5037 -10.6295 -31.0415Transform childrenInline urlzhengqiang.wrltranslation40.3582 -7.99535 -35.365Transform childrenInline urlzhengqiangL.wrltranslation-16.8159 -8.27652 -35.3298Transform childrenInline urlwindows9.wrltranslation52.2902 -11.8565 -38.5036rotation0 1 0 1.57148Tran

31、sform childrenInline urlzhengqiangL.wrltranslation30.5848 -8.07789 -72.9203rotation0 1 0 3.14352scale1 1 1Transform childrenInline urlwindows9.wrltranslation-38.4666 -11.7504 -69.8092rotation0 -1 0 1.57scale1 1 1Transform childrenInline urlzhengqiang.wrltranslation-26.4858 -8.08624 -72.9566rotation0

32、 1 0 3.14352scale1 1 1Transform childrenInline urlwall.wrltranslation-9.9288 -15.5659 -78.9974rotation0 -1 0 1.55932Transform childrenInline url1.wrltranslation6.83797 19.8689 -53.0009Transform childrenInline urlqianfang.wrltranslation6.852 -9.90576 43.7841Transform childrenShape appearanceAppearanc

33、e materialUSE _0 geometryBox size25.5 0.5 7.5 translation40.7796 -11.7487 -70.1407Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size28.6 0.5 25 translation39.3355 -11.7487 -54.1801Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25.5 0.5 7.5 trans

34、lation-27.1672 -11.7487 -70.3554Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25 0.5 25 translation-27.2503 -11.7487 -54.1368Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size30.5 0.5 7.5 translation-24.6359 -11.7487 -38.2663Transform childrenI

35、nline urlsmallladder.wrl translation0.12805 5.60187 -0.Transform childrenInline urlcircle.wrl translation6.71467 9.03146 -53.9633Transform childrenShape appearanceAppearance materialDEF _1 Material geometryBox size3 0.25 7.5 translation39.3089 9.52323 -69.4972 rotation0 1 0 4.71239 scale4 4 4Transfo

36、rm childrenShape appearanceAppearance materialUSE _1 geometryBox size7.5 0.25 3 translation39.2062 9.52703 -38.277 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 7.5 translation-26.0688 9.54235 -69.6339 rotation0 1 0 4.71239 scale4 4 4Transform childrenS

37、hape appearanceAppearance materialUSE _0 geometryBox size7.5 0.25 3 translation-26.2708 9.50971 -38.2967 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 4.9 translation-35.0462 9.53663 -53.9117 scale4 4 4Transform childrenShape appearanceAppearance materi

38、alUSE _0 geometryBox size3 0.25 4.9 translation48.2377 9.51326 -53.7626 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 textureImageTexture urlpicture/floor1.gif textureTransformTextureTransform scale10 10 geometryBox size130 0.1 100 translation6.85145 -15.3173 -54.0648Transform childrenInline urlinside.wrl translation-15.2351 1.25397 -46.1326 rotation0 -1 0 1.57 scale4 2 4Transform childrenInline urlinside.wrl translation40.5624 1.02894 -45.7849 rotation0 -1 0 1.57 scale4 2 4Transform childrenInline urlL

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论