资源描述:
《虚拟现实技术实验报告一》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、WORD完美格式华北水利水电大学虚拟现实技术实验报告2015~2016学年第二学期2013级专业计算机科学与技术班级:2013156学号:201315616姓名:张亚实验一创建VRML基本形体一、实验目的:熟悉虚拟现实建模语言的编辑环境,掌握创建基本形体和复杂形体的步骤二、试验内容:1、熟悉VRML的编辑环境;2、网格造型节点的使用;3、纹理贴图的使用;4、创建复合形体(带有文字注释的透明木板)5、挤出造型节点的使用三、核心程序源代码:1、熟悉VRML的编辑环境2、网格造型节点的使用#VRMLV2.0utf8Background{skyColor0.00.60.
2、8}Shape{appearanceAppearance{materialMaterial{diffuseColor0.80.20.2specularColor0.50.50.5..整理分享..WORD完美格式shininess0.2}}geometryElevationGrid{xDimension2xSpacing1zDimension12zSpacing0.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,
3、0,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,
4、2,0,2,2,1,0,2,1,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}}..整理分享..WORD完美格式3、纹理贴图的使用;#VRMLV2.0utf8Shape{appearanceAppearance{materialMaterial{}textureImageTexture{url"E:qq1.jpg"}}g
5、eometryBox{size111}}Transform{translation-101children[Shape{..整理分享..WORD完美格式appearanceAppearance{materialMaterial{diffuseColor011}}geometryBox{size220.16}}]}4、创建复合形体(带有文字注释的透明木板)#VRMLV2.0utf8Shape{appearanceAppearance{materialMaterial{diffuseColor0.80.20.1specularColor0.200transparen
6、cy0.1}}geometryBox{..整理分享..WORD完美格式size20155}}Shape{geometryText{string["hellohuashui!"]maxExtent10fontStyleFontStyle{family"hello"size8.0spacing5.0style"PLAIN"horizontalTRUEjustify["MIDDLE"]leftToRightTRUEtopToBottomTRUE}}}5、挤出造型节点的使用Background{skyColor[..整理分享..WORD完美格式0.00.60.8]}Sh
7、ape{appearanceAppearance{materialMaterial{diffuseColor0.80.10.1ambientIntensity0.2specularColor0.80.80.8shininess0.15}}geometryExtrusion{crossSection[0,-1,1,0,0,1,-8,1-8,2.02.2,2,2,-2,0,-2,-8,-5,-1.0,-1,]spine[1,0,0,-1,0,0,]scale[0.00.00.50.51.01.01.21.22.02.0]orientation[01000101.57
8、0103.140104.