1、 Shape appearance Appearance material Material diffuseColor 0.2 0.3 0.3 geometry Box #广告牌 size 12 6.5 0.2 translation 0.0 0.0 -0.02 Shape appearance Appearance texture ImageTexture url advertisement.png material Material diffuseColor 0.0 0.0 0.0 geometry Box size 11 5.6 0.4 #广告屏幕 DEF leg Transform #
2、广告柱子 translation 5 -4 0.1 scale 0.04 0.04 0.04 children Shape # Shape 模型节点 appearance Appearance material Material #空间物体造型外观 diffuseColor 0.2 0.3 0.3 #一种材料的漫反射颜色 geometry Cylinder #柱体节点 radius 2.0 #圆柱体半径 height 100.0 #圆柱体高 top TRUE #圆柱体有顶 #bottom TRUE #圆柱体有底 bottom FALSE side TRUE #圆柱体有曲面Transform #
3、椅子腿 translation -10 0 0 children USE leg 2.2热气球 截图: 程序: #VRML V2.0 utf8Group Background skyColor 0.2 0.5 0.6 #创建月球造型 Transform translation 0 0 0.0 scale 1 1 1 children Shape #银白颜色 texture ImageTexture url balloon.png material Material #空间物体造型外观 diffuseColor 0.5 0.5 0.7 #一种材料的漫反射颜色 ambientIntensity 0
4、.4 #多少环境光被该表面反射 specularColor 0.8 0.8 0.9 #物体镜面反射光线的颜色 shininess 0.20 #造型外观材料的亮度 geometry Sphere #球体 radius 4 translation 0 -4 0.0 scale 1 0.6 0.6 Shape color.png diffuseColor 0.3 0.2 0.0 #一种材料的漫反射颜色 specularColor 0.7 0.7 0.6 #物体镜面反射光线的颜色 shininess 0.2 #造型外观材料的亮度 geometry Cylinder #潜艇舰桥(嘹望塔) radius
5、1.0 height 3.0 side TRUE top TRUE bottom TRUE 热气球运动程序:DEF fly1 Transform #引入月球造型 children Inline url balloon.wrl DEF Time1 TimeSensor #时间传感器 cycleInterval 32 loop TRUE DEF flyinter1 PositionInterpolator #移动位置节点 key #相对时间的逻辑值 0.0,0.083,0.166,0.252,0.332,0.412,0.496,0.581,0.664,0.747,0.83,0.913,1.0 ke
6、yValue #空间坐标的位置值与相对时间的逻辑值 0 0 -20, 6.6 0 -15, 13.2 0 -9, 20 0 0, 13.2 0 9, 6.6 0 15 0 0 20 -6.6 0 15 -13.2 0 9 -20 0 0 -13.2 0 -9 -6.6 0 -15 0 0 -20 ROUTE Time1.fraction_changed TO flyinter1.set_fractionROUTE flyinter1.value_changed TO fly1.set_translation2.3国旗截图: translation -22 -3 22 scale 0.1 0.1
7、 0.1 Transform appearance Appearance texture ImageTexture url flag.gif geometry Box size 27 0.1 27 translation 0 15 0flagbase.gif geometry Cylinder radius 0.2 bottom TRUE top TRUE height 30 side TRUE Transform radius 2.0 height 1.0 translation 4 28 0 scale 2 2 2china.gif size 4.0 2.0 0.01Viewpoint o
8、rientation 0 1 0 1.2 position -15 -2 252.4公共汽车DEF Bus Transform children DEF body Shape appearance Appearance material DEF LtGray_Color Material ambientIntensity 0.25diffuseColor 0.70213 0.70213 0.70213texture ImageTexture url bus_side.jpggeometry IndexedFaceSet coord Coordinate point 1.7909 0 -7.67
9、,1.7909 0 7.6904,1.7909 1.982 7.6904,1.7909 3.964 7.1949,1.7909 3.964 -7.1745,1.7909 3.4685 -7.67,-1.8015 0 -7.67,-1.8015 0 7.6904,-1.8015 1.982 7.6904,-1.8015 3.964 7.1949,-1.8015 3.964 -7.1745,-1.8015 3.4685 -7.67 coordIndex 0, 5, 4, 2, -1, 0, 2, 1,-1, 4, 3, 2, -1, 11, 6, 7,8, -1, 9, 10, 11, 8, -1 texCoord TextureCoord
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1