收藏 分享(赏)

vrml实例源代码(摆球、风扇、书柜代码).docx

上传人:HR专家 文档编号:11855596 上传时间:2021-03-01 格式:DOCX 页数:6 大小:71.11KB
下载 相关 举报
vrml实例源代码(摆球、风扇、书柜代码).docx_第1页
第1页 / 共6页
vrml实例源代码(摆球、风扇、书柜代码).docx_第2页
第2页 / 共6页
vrml实例源代码(摆球、风扇、书柜代码).docx_第3页
第3页 / 共6页
vrml实例源代码(摆球、风扇、书柜代码).docx_第4页
第4页 / 共6页
vrml实例源代码(摆球、风扇、书柜代码).docx_第5页
第5页 / 共6页
点击查看更多>>
资源描述

1、1.会动的摆球#VRML V2.0 utf8Background skyColor .6 .6 1Transform translation 0 -2.5 0children Shape appearance Appearance material MaterialdiffuseColor 0 1 1 geometry Box size 10 1 1Transform translation 4 0 0children ShapeappearanceAppearancematerial Material diffuseColor10 1geometry Box size0.5 5.8 0.6T

2、ransform translation -4 0 0children ShapeappearanceAppearancematerial Material diffuseColor10 1geometry Box size0.5 5.8 0.6Transform translation 0 2.5 0rotation 0 0 1 1.571children Shapeappearance Appearance material Material diffuseColor .5 0 1geometryCylinderradius0.2height7.5DEF hk Transform chil

3、dren Groupchildren Transform translation 0 -1.42 0children ShapeappearanceAppearance materialMaterialdiffuseColor2 1 1geometry Sphere radius0.3Transform translation0 0.6 0children ShapeappearanceAppearance materialMaterialdiffuseColor0 .8 1geometry Cylinderradius 0.1 height 3.5DEF left Transform tra

4、nslation -1.2 0 0center 0 2.35 0children USE hk Transform translation 0.6 0 0rotation 0 0 1 0children USE hk Transform translation -.6 0 0rotation 0 0 1 0children USE hk DEF rightTransform translation1.2 0 0center0 2.35 0children USE hk DEF time TimeSensor cycleInterval 1loop TRUE enabled TRUE DEF z

5、1 OrientationInterpolator key0 0.25 0.5 0.75 1keyValue 0 0 1 0,0 0 1 0.5,0 0 1 0,0 0 1 0,0 0 1 0,DEFz2OrientationInterpolator key0 0.25 0.5 0.75 1keyValue 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 TO z1.set_fractionROUTE time.fraction_changed TO z2.set_fractionROUTE z1.v

6、alue_changed TOright.rotationROUTE z2.value_changed TOleft.rotation2.不用电的电风扇#VRML V2.0 utf8Background skyColor 1 1 0.9DEF a Transform translation 0 1.3 -0.2children Shape appearance Appearance material Material diffuseColor1 1 1geometry Sphere radius0.2Transform translation 1 0 0scale 0.9 0.3 0.1cen

7、ter -1 0 0rotation 0 0 1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Sphere radius1Transform translation 1 0 0scale 0.9 0.30.1center -1 0 0rotation 0 0 1 2.094children Shape appearance Appearance material Material diffuseColor 0 1 0geometry Sphere radius1Transf

8、orm translation 1 0 0scale 0.9 0.3 0.1center -1 0 0rotation 0 0 1 4.18children Shape appearance Appearance material Material diffuseColor 1 0 0 geometry Sphere radius1Transform translation 0 1.3 0scale 7 7 1.5center 0 0 0rotation 0 0 1 0children Shape appearance Appearance material Material diffuseC

9、olor 0 1 1transparency 0.77geometry Sphere radius 0.3Transform translation 0 1.3 -0.72rotation 1 0 0 1.57children Shape appearance Appearance material Material diffuseColor 1 0 1 geometry Cylinderheight 0.75 radius 0.2children Shape appearance Appearance material Material diffuseColor 0 0.5 1 geomet

10、ry Boxsize 30.2 2.3Transform translation 1 -1.30.8children Shape appearance Appearance material Material diffuseColor1 0 0geometry Sphere radius0.2Transform translation -1 -1.30.8children Shape appearance Appearance material Material diffuseColor0 1 0geometry Sphere radius0.2Transform translation 0

11、0 -0.8DEF sj TimeSensor enabled TRUEchildren cycleInterval 1Shape loop TRUEappearance Appearance material Material DEF zhuan OrientationInterpolator diffuseColor 1 1 1 key0 0.25 0.5 0.75 1geometry Cylinderheight 2.8 radius 0.13keyValue 0 0 1 00 0 1 1.570 0 1 3.14Transform translation 0 -1.4 00 0 1 4

12、.710 0 1 6.28ROUTE sj.fraction_changed TO zhuan.set_fraction ROUTE zhuan.value_changed TO a.rotationTransform children Shape translation 1.5 1.1 0appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 4 2Transform translation -1.5 1.1 0children Shape appearance Appearance ma

13、terial Material diffuseColor 0 0 1geometry Box size 0.2 4 2Transform translation 0 1.1 -0.9children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 4 0.23.见鬼似的书柜DEF zuo Transform #VRML V2.0 utf8center 0.8 0 0#VRML V2.0 utf8Background skyColor 0.8 0.8 09.8Transform

14、 translation 0 3 0children Shape translation0.8 1.1 1children Shape appearance Appearance material Material diffuseColor 0 1 1appearance Appearance material Material geometry Box size 1.6 4 0.2diffuseColor 0 0 1geometry Box size 3 0.2 2DEFyouTransform center-0.8 0 0translation -0.8 1.1 1children Sha

15、pe appearance Appearance material Material diffuseColor 0 1 1geometry Box size 1.6 4 0.2Transform translation 0 1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 0.2 2Transform translation 0 -1.65 -0.9 children Shape appearance Appearance material Materi

16、al diffuseColor 0 0 1geometry Box size 3 1.5 0.2Transform translation -1.5 -1.65 0 children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 1.5 2Transform translation 1.5 -1.65 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Bo

17、x size 0.2 1.5 2Transform translation 0 -2.3 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 0.2 2Transform translation 0 -1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 0.2 2DEFct Transform translation 0

18、-1.65 0.05 children Shape appearance Appearance material Material diffuseColor 1 0 1geometryBoxsize2.8 1.11.9DEF sj TimeSensor loop TRUEcycleInterval 2DEF zhuanOrientationInterpolator key0 0.25 0.5 0.75 1keyValue 0 1 0 00 1 0 1.570 1 0 1.570 1 0 1.570 1 0 0DEF zhuan1OrientationInterpolator key0 0.25

19、 0.5 0.75 1keyValue 0 1 0 00 1 0 -1.570 1 0 -1.570 1 0 00 1 0 0DEFctdPositionInterpolator key 0 0.5 1keyValue 0 -1.650.050-1.65 20-1.65 0.05ROUTEsj.fraction_changedTOctd.set_fractionROUTEsj.fraction_changedTOzhuan.set_fractionROUTEsj.fraction_changedTOzhuan1.set_fractionROUTEzhuan.value_changedTOzuo.rotationROUTEzhuan1.value_changedTOyou.rotationROUTE ctd.value_changed TOct.translation

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 中等教育 > 小学课件

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报