《vrml实例源代码摆球风扇书柜代码word文档良心出品》由会员分享,可在线阅读,更多相关《vrml实例源代码摆球风扇书柜代码word文档良心出品(6页珍藏版)》请在金锄头文库上搜索。
1、1会动的摆球#VRML V2.0 utf8Background skyColor .6 .6 1Transform translation 0 -2.5 0 children Shape appearance Appearance material MaterialdiffuseColor 0 1 1 geometry Box size 10 1 1Transform translation 4 0 0children Shape appearanceAppearancematerial Material diffuseColor10 1geometry Box size 0.5 5.8 0.
2、6Transform translation -4 0 0children Shape appearanceAppearancematerial Material diffuseColor10 1geometry Box size 0.5 5.8 0.6Transform translation 0 2.5 0rotation 0 0 1 1.571children Shape appearance Appearance materialMaterial diffuseColor .5 0 1 geometry Cylinder radius 0.2 height 7.5materialMat
3、erialdiffuseColor 2 1 1geometry Sphere radius0.3Transform translation 0 0.6 0children Shape appearance Appearance materialMaterialdiffuseColor 0 .8 1geometry Cylinder radius 0.1 height 3.5DEF left Transform translation -1.2 0 0center 0 2.35 0children USE hk Transform translation 0.6 0 0rotation 0 0
4、1 0children USE hk Transform translation -.6 0 0rotation 0 0 1 0children USE hk DEF right Transform translation 1.2 0 0center 0 2.35 0children USE hk Appearance DEF hk Transform children Group children Transform translation 0 -1.42 0 children Shape appearanceDEF time TimeSensor cycleInterval 1loop T
5、RUE enabled TRUE DEF z1 OrientationInterpolator key 0 0.25 0.5 0.75 1 keyValue 0 0 1 0,0 0 1 0.5,0 0 1 0,0 0 1 0,0 0 1 0,DEF z2Orientationinterpolator key 0 0.25 0.5 0.75 1 keyValue 0 0 1 0,0 0 1 0,0 0 1 0,0 0 1 -0.5,0 0 1 0,ROUTE time.fraction_changed TOz1.set_fractionROUTE time.fraction_changed TO
6、z2.set_fractionROUTE z1.value_changed TO right.rotationROUTE z2.value_changed TOleft.rotationShapeTransform translation 1 0 02.不用电的电风扇#VRML V2.0 utf8Background skyColor 1 1 0.9DEF a Transform translation 0 1.3 -0.2children Shapeappearance Appearance material Material diffuseColor 1 1 1 geometry Sphe
7、re radius 0.2Transform translation 1 0 0scale 0.9 0.3 0.1center -1 0 0rotation 0 0 1 0children appearance Appearance material Material diffuseColor 0 0 1 geometry Sphere radius 1Transform translation 1 0 0scale 0.9 0.3 0.1center -1 0 0rotation 0 0 1 2.094children Shape appearance Appearance material
8、 Material diffuseColor 0 1 0 geometry Sphere radius 1scale 0.9 0.3 0.1center -1 0 0rotation 0 0 1 4.18children Shapeappearance Appearance material Material diffuseColor 1 0 0 geometry Sphere radius 1Transform translation 0 1.3 0scale 7 7 1.5center 0 0 0rotation 0 0 1 0children Shapeappearance Appear
9、ance material Material diffuseColor 0 1 1 transparency 0.77 geometry Sphere radius 0.3Transform translation 0 1.3 -0.72rotation 1 0 0 1.57children Shapeappearance Appearance material Material diffuseColor 1 0 1 geometry Cylinder height 0.75 radius 0.2children Shape appearance Appearance material Mat
10、erial diffuseColor 0 0.5 1 geometry Box size 30.2 2.3Tran sform translation 1 -1.3 0.8children Shape appearance Appearance material Material diffuseColor 1 0 0 geometry Sphere radius0.2Transform translation -1 -1.30.8children Shape appearance Appearance material Material diffuseColor 0 1 0 geometry
11、Sphere radius0.2Transform translation 0 -1.4 0Transform translation 0 0 -0.8DEF sj TimeSensor enabled TRUEchildren Shapeappearance Appearance material Material diffuseColor 1 1 1 geometry Cylinder height 2.8 radius 0.13cycleinterval 1loop TRUEDEF zhuan Orientationinterpolator key 0 0.25 0.5 0.75 1 k
12、eyValue 0 0 1 00 0 1 1.570 0 1 3.140 0 1 4.710 0 1 6.28translation 1.5 1.1 0ROUTE sj.fraction_changed TO zhuan.set_fractionROUTE zhuan.value_changed TO a.rotationTran sform children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 4 2 Transform translation -1.5 1
13、.1 0 children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 4 2 Transform translation 0 1.1 -0.9 children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 4 0.2Transform translation 1.5 -1.65 0OrientationInterpolator 3.见鬼似的书柜
14、#VRML V2.0 utf8#VRML V2.0 utf8Background skyColor 0.8 0.8 09.8Transform translation 0 3 0children Shapeappearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 0.2 2DEF zuo Transform center 0.8 0 0translation 0.8 1.1 1children Shape appearance Appearance material Material diffuseColor 0 1 1geometry Box si