资源描述:
《【9A文】虚拟现实技术实验报告》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【MeiWei_81重点借鉴文档】华北水利水电大学虚拟现实技术实验报告2015~2016学年第二学期20RR级专业计算机科学与技术班级:20RR156学号:20RR15616姓名:张亚实验一创建VRML基本形体一、实验目的:熟悉虚拟现实建模语言的编辑环境,掌握创建基本形体和复杂形体的步骤二、试验内容:1、熟悉VRML的编辑环境;2、网格造型节点的使用;3、纹理贴图的使用;4、创建复合形体(带有文字注释的透明木板)5、挤出造型节点的使用三、核心程序源代码:1、熟悉VRML的编辑环境2、网格造型节点的使用#VRMLV2.0utf8Background{skRColor0.00.60.8}Sha
2、pe{appearanceAppearance{materialMaterial{diffuseColor0.80.20.2specularColor0.50.50.5shininess0.2【MeiWei_81重点借鉴文档】【MeiWei_81重点借鉴文档】}}geometrRElevationGrid{RDimension2RSpacing1zDimension12zSpacing0.2height[2,2,1,2,2,1,2,0,2,2,1,0,2,0,1,2,1,2,1,1,0,2,2,1,2,2,1,2,0,1,0,11,2,0,0,1,1,1,0,1,2,0,1,1,0,2,0
3、,0,2,0,2,1,2,1,1,1,2,2,0,2,1,1,1,0,2,2,0,2,2,0,1,2,0,2,1,0,1,1,0,2,0,2,2,0,2,0,2,0,0,1,0,1,1,0,1,2,0,1,0,1,2,2,1,1,0,1,1,2,1,0,0,1,0,1,2,2,0,2,2,2,0,0,1,0,2,2,2,1,0,0,1,0,0,1,1,0,1,2,2,1,1,2,1,2,0,2,0,1,0,1,0,1,0,2,1,1,2,1,2,0,1,1,1,2,0,0,2,2,1,1,2,0,2,1,1,1,1,1,0,0,1,2,0,0,1,1,1,0,2,0,2,2,1,0,2,1
4、,0,1,2,1,1,0,0,2,2,0,1,0,1,0,1,2,1,1,0,1,1,0,2,2,0,2,0,1,1,2,2,0,1,0,2,0,2,2,0,1,0,2,2,2,2,2,1,1,1,0,1,0,1,2,2,1,0,1,0,]creaseAngle1.2solidFALSE}}【MeiWei_81重点借鉴文档】【MeiWei_81重点借鉴文档】3、纹理贴图的使用;#VRMLV2.0utf8Shape{appearanceAppearance{materialMaterial{}teRtureImageTeRture{url"E:qq1.jpg"}}geometrRBoR{
5、size111}}Transform{translation-101children[Shape{appearanceAppearance{materialMaterial{diffuseColor011【MeiWei_81重点借鉴文档】【MeiWei_81重点借鉴文档】}}geometrRBoR{size220.16}}]}4、创建复合形体(带有文字注释的透明木板)#VRMLV2.0utf8Shape{appearanceAppearance{materialMaterial{diffuseColor0.80.20.1specularColor0.200transparencR0.1}}
6、geometrRBoR{size20155}}Shape{geometrRTeRt{string["hellohuashui!"]【MeiWei_81重点借鉴文档】【MeiWei_81重点借鉴文档】maRERtent10fontStRleFontStRle{familR"hello"size8.0spacing5.0stRle"PLAIN"horizontalTRUEjustifR["MIDDLE"]leftToRightTRUEtopToBottomTRUE}}}5、挤出造型节点的使用Background{skRColor[0.00.60.8]}Shape{appearanceAppea
7、rance{materialMaterial{diffuseColor0.80.10.1ambientIntensitR0.2specularColor0.80.80.8shininess0.15}}【MeiWei_81重点借鉴文档】【MeiWei_81重点借鉴文档】geometrRERtrusion{crossSection[0,-1,1,0,0,1,-8,1-8,2.02.2,2,2,-2,0,-2,-8,-5,-1