资源描述:
《创建vrml基本形体虚拟现实》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、华北水利水电学院虚拟现实技术实验报告实验一创建VRML基本形体一、实验目的:熟悉虚拟现实建模语言的编辑环境,掌握创建基本形体和复杂形体的步骤二、试验内容:1、熟悉VRML的编辑环境;2、网格造型节点的使用;3、纹理贴阁的使用;4、创建复合形体(带有文字注释的透明木板)5、挤出造型节点的使用三、核心程序源代码:M格造彻节点:#VRMLV2.0utf8Shape{appearanceAppearance{materialMaterial{diffuseColor200251240specularColor111shini
2、ness0.9}}geometryElevationGrid{xDimension11xSpacing0.5zDimension11zSpacing0.5height[~2,-2,_2,_2,_2,_2,_2,_2,-2,_2,_2,-2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,-2,-2,0.1,-0.4,0.1,-0.2,0.1,-0.2,0.1,-0.4,0,-2,-2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,-2,-2,0.1,-0.4,0.1,
3、-0.2,0.1,-0.2,0.1,-0.4,0,-2,-2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,-2,一2,0.1,-0.4,0.1,-0.2,0.1,-0.2,0.1,-0.4,0,—2,一2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,-2,-2,0.1,-0.4,0.1,-0.2,0.1,-0.2,0.1,-0.4,0,-2,-2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,-2,_2,_2,_2,_2,_2,_2,_
4、2,_2,_2,_2,-2,]creaseAngle5.571solidFALSE}}模拟皮凳:纹理贴图:#VRMLV2.0utf8Background{skyColor[111]}Transform{translation-400children[Shape{appearanceDEFbAppearancematerialMaterial{}textureImageTexture{url"Koala.jpg”}}}1}Shape{appearanceUSEbgeometryCylinder{}}Transform{
5、translation0-20childrenfShape{appearanceUSEbgeometryCone{}}I}创建复合形体(带有文字注释的透明木板):#VRMLV2.0utf8Background{frontUrl"Koala.jpg"Transform{translation-150-10childrenfShape{appearanceAppearance{materialMaterial{diffuseColor1.01.01.0transparency0.8}}geometryBox{size51
6、60.5}}1}Transform{translation-140-10children
7、Shape{appearanceAppearance{materialMaterial{diffuseColor1.000.0}}geometryText{stringf"Koalabear”1length[844]fontStyleFontStyle{family”SANS”size1.5style"BOLD”justify[MLEFTnHENDH1horizontalFALSE}}1}挤出造型节点:#VRMLV2.0utf8
8、Background{skyColor[0.80.60.8]}Shape{appearanceAppearance{materialMaterial{diffuseColor0.80.20.2ambientlntensity0.1specularColor0.80.80.8shininess0.15}}geometryExtrusion{crossSection[0.51.0,0.50.5,1.00.5,1.0-0.5,0.5-0.5,0.5-1.0,-0.5-1.0,-0.5-0.5,-1.0-0.5,-1.00.
9、5,-0.50.5,-0.51.0,0.51.0
10、spinef1.00.00.00.50.00.00.00.00.0-0.50.00.0-0.10.00.0
11、scale[0.00.00.50.51.01.01.51.52.02.0
12、solidFALSEcreaseAngle1.57}}五、小结(包括收获、心得体会、存在的问题及解决问题的方法、建