




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、虚拟现实技术期末考核报告 院系:计算机科学与技术 班级:10班 学号:53141007 姓名:袁雪峰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
4、坐标 children域中的值可以是Shape节点,Group节点或另一个Transform节点。VRML中的节点有以下几种类型:造型尺寸、外观节点:Shape、Appearance、Material原始几何造型节点:Box、Cone、Cylinder、Sphere造型编组节点:Group、Switch、Billboard文本造型节点:Text、FrontStyle造型定位、旋转、缩放节点:Transform内插器节点:TimeSensor、PositionInterpolater、OrientationInterpolater、ColorInterpolator、 ScalarInterpo
5、lator、CoordinateInterpolator、感知节点:TouchSensor、CylinderSensor、PlaneSensor、SphereSensor、VisibilitySensor、ProximitySensor、Collision点、线、面集节点:ointSet、IndexedLineSet、IndexedFaceSet、Coordinate海拔节点:ElevationGrid挤出节点:Extrusion颜色、纹理、明暗节点:Color、ImageTexture、PixelTexture、MovieTexture、Normal控制光源的节点:ointLight、Dir
6、ectionalLight、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.0direct
7、ion 0 1 0color 1 1 1on TRUEViewpoint position8.96606 130 725.8 orientation-0.997096 -0.0760361 -0.0042219 0.111409fieldOfView0.785398descriptionfront1Viewpoint position8.96606 20 525.8 orientation-0.997096 -0.0760361 -0.0042219 0.111409fieldOfView0.785398descriptionfront2NavigationInfo avatarSize 0.
8、25, 1.6, 0.75 headlightTRUEspeed1type WALK, FLY, ANY visibilityLimit0Transform 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 -540rotatio
9、n 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrl #左侧Transform 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 #左侧后transl
10、ation -281 -41 225rotation 0 0 0 1.571scale 8.5 6.0 8.0childrenShape appearance 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 diffuseCo
11、lor 0.2 0.8 0.3geometry Box size 50 0.5 50 Transform translation -261 -8 -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.
12、8 0.3geometry Box size 50 0.5 50Transform #右侧楼translation 465 7 -141rotation 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
13、1.571scale 5.5 5.5 5.5 childrenInline url VRML9-1VRML9-1.wrl总体部分资源文件夹显示: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 p
14、osition 0 10 60orientation0 0 1 0fieldOfView0.785descriptionview1jump TRUETransformtranslation0 0 18childrenTransformtranslation0 0 0childrenInlineurl c3001.wrlTransformtranslation0 0 0childrenInlineurl down001.wrlTransformtranslation11.98 0 -20.04rotation 0 1 0 1.5708childrenInlineurl c2000.wrlTran
15、sformtranslation7.92 0 -36.01rotation 0 1 0 3.1416childrenInlineurl c1001.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
16、.675 0childrenInlineurl up.wrl1.3 资源文件夹显示2. 医院设计2.1医院截图显示2.2医院代码Background 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 sp
17、eed1 # typeWALK visibilityLimit0 DEF Camera01 Viewpoint position20 0 0 orientation0 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
18、 0 3.14 descriptionCamera04 DEF bigdoor Viewpoint position1 -2.7 4 descriptionCamera05DEF 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 IndexedF
19、aceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.05 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 0 0 2.5 scale 1 1 1 children USE tree1Transform #树 tran
20、slation 0 0 5 scale 1 1 1 children USE tree1Transform #树 translation 0 0 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
21、TreeFace2 IndexedFaceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.05 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 tre
22、e2Transform #树 translation -5 0 0 scale 1 1 1 children USE tree2Transform #树 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 u
23、rlbuildMAINLEFT.wrl Transform childrenTransform childrenInline urlbuildMAINOUT.wrl translation1.7 0 2Transform childrenTransform childrenInline urlbuildMAINRIGHT.wrl translation9 0 0Transform childrenShape appearanceAppearance materialMaterial ambientIntensity0 diffuseColor0.544676 0.7 0.0404636 geo
24、metryBox size20 0.2 20 translation3 -3.5 -32.3医院资源文件夹显示3. 文化宫3.1文化宫截图显示3.2文化宫代码NavigationInfo 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.
25、2 1 PointLight intensity0.35color1 1 1location4.79554 50.3417 -51.8209Viewpoint position81.3112 2.20005 -6.44401orientation0.0219329 -0.999671 0.0133035 5.32716descriptionrightViewpoint position5.8923 8.75207 37.4917orientation1 0 0 0.0111559descriptionfrontViewpoint position3.71209 11.4866 -164.924
26、orientation-0.000796307 -0.99993 0.0117774 3.14157descriptionbackViewpoint position-75.5409 -3.92723 -91.6657orientation-0.00583566 -0.999918 0.0114355 2.33293descriptionleftTransform childrenShape appearanceAppearance materialDEF _0 Material geometryBox size30.9 0.5 7.5 translation38.2043 -11.7577
27、-37.9353Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size44 0.5 34 translation6.09145 -11.7487 -56.6952Transform childrenInline urlfangkuaiz1.wrltranslation-9.64711 -11.2552 -75.1707rotation0 1 0 3.14scale1 1 1Transform childrenInline urlfangkuaiz.wrltranslation21.3522 -12
28、.3257 -68.6208rotation0 1 0 3.14scale1 1 1Transform childrenInline urlleftwindows.wrltranslation-42.7086 -9.68456 -54.6323rotation0 -1 0 1.57079scale0.999998 1 0.999998Transform childrenInline urlleftwindows.wrltranslation56.6776 -9.53636 -53.8542rotation0 1 0 1.59069scale0.999998 1 0.999998Transfor
29、m childrenShape appearanceAppearance materialUSE _0 geometryBox size7 2.3 8.9 translation6.49652 -12.6474 -35.2384Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size18.9 0.5 15 translation19.2204 -11.7646 -35.709Transform childrenShape appearanceAppearance materialUSE _0 geo
30、metryBox size19 0.5 12 translation-6.0365 -11.7483 -33.7512Transform childrenInline urlfangkuaiz.wrltranslation-8.33719 -12.7663 -37.8966Transform childrenInline urlfangkuaiz1.wrltranslation22.5037 -10.6295 -31.0415Transform childrenInline urlzhengqiang.wrltranslation40.3582 -7.99535 -35.365Transfor
31、m childrenInline urlzhengqiangL.wrltranslation-16.8159 -8.27652 -35.3298Transform childrenInline urlwindows9.wrltranslation52.2902 -11.8565 -38.5036rotation0 1 0 1.57148Transform childrenInline urlzhengqiangL.wrltranslation30.5848 -8.07789 -72.9203rotation0 1 0 3.14352scale1 1 1Transform childrenInl
32、ine urlwindows9.wrltranslation-38.4666 -11.7504 -69.8092rotation0 -1 0 1.57scale1 1 1Transform childrenInline urlzhengqiang.wrltranslation-26.4858 -8.08624 -72.9566rotation0 1 0 3.14352scale1 1 1Transform childrenInline urlwall.wrltranslation-9.9288 -15.5659 -78.9974rotation0 -1 0 1.55932Transform c
33、hildrenInline url1.wrltranslation6.83797 19.8689 -53.0009Transform childrenInline urlqianfang.wrltranslation6.852 -9.90576 43.7841Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25.5 0.5 7.5 translation40.7796 -11.7487 -70.1407Transform childrenShape appearanceAppearance
34、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 translation-27.1672 -11.7487 -70.3554Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25 0.5 25 translati
35、on-27.2503 -11.7487 -54.1368Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size30.5 0.5 7.5 translation-24.6359 -11.7487 -38.2663Transform childrenInline urlsmallladder.wrl translation0.12805 5.60187 -0.0243855Transform childrenInline urlcircle.wrl translation6.71467 9.03146
36、 -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 4Transform childrenShape appearanceAppearance materialUSE _1 geometryBox size7.5 0.25 3 translation39.2062 9.52703 -38.277 scale
37、4 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 childrenShape appearanceAppearance materialUSE _0 geometryBox size7.5 0.25 3 translation-26.2708 9.50971 -38.2967 scale4 4 4Trans
38、form childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 4.9 translation-35.0462 9.53663 -53.9117 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _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 4Tr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 机场电气建设方案(3篇)
- 工厂后勤招标方案(3篇)
- 花园隐蔽水池清理方案(3篇)
- 废弃果园管护方案(3篇)
- DB23-T3020-2021-气象为农服务效益专家评估技术规范-黑龙江省
- DB23-T3002-2021-第二积温带水稻灌溉技术操作规程-黑龙江省
- DB23-T2887-2021-小黑杨萌蘖更新技术规程-黑龙江省
- 外包软件项目管理制度
- 农村畜禽养殖管理制度
- 厂区接待车队管理制度
- GB/T 15256-1994硫化橡胶低温脆性的测定(多试样法)
- 风险辨识及控制措施记录
- 克雷洛夫寓言阅读测试题及参考答案
- 中考历史中国古代史知识复习1-精讲版课件
- 班组长执行力管理培训
- 迈尔尼《战争》高考文学类文本阅读练习及答案名师资料汇编
- 网络基础培训(简化版) 完整版PPT
- 某工厂供配电系统毕业设计
- 预防接种工作单位资质申请表
- 智慧健康管理ppt课件
- 顺驰地产战略执行聚焦战略的管理体系(89)页课件
评论
0/150
提交评论