vrml實(shí)例源代碼(擺球、風(fēng)扇、書柜代碼)_第1頁
vrml實(shí)例源代碼(擺球、風(fēng)扇、書柜代碼)_第2頁
vrml實(shí)例源代碼(擺球、風(fēng)扇、書柜代碼)_第3頁
vrml實(shí)例源代碼(擺球、風(fēng)扇、書柜代碼)_第4頁
vrml實(shí)例源代碼(擺球、風(fēng)扇、書柜代碼)_第5頁
已閱讀5頁,還剩1頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、1. 會(huì)動(dòng)的擺球#VRML V2.0 utf8Background skyColor .6 .6 1Transform translation 0 -2.5 0children Shapeappearance Appearance material MaterialdiffuseColor 0 1 1 geometry Box size 10 1 1Transform translation 4 0 0children ShapeappearanceAppearancematerial Material diffuseColor1 0 1geometry Box size0.5 5.8 0.6

2、Transform translation -4 0 0children ShapeappearanceAppearancematerial Material diffuseColor1 0 1geometry Box size0.5 5.8 0.6Transformtranslation 0 2.5 0rotation 0 0 1 1.571children Shapeappearance Appearance materialMaterial diffuseColor .5 0 1geometry Cylinder radius 0.2 height 7.5DEFhk Transform

3、children Groupchildren Transform translation 0 -1.42 0children ShapeappearanceAppearance material Material diffuseColor2 1 1geometry Sphereradius0.3Transform translation 0 0.6 0children ShapeappearanceAppearance material Material diffuseColor0 .8 1geometry Cylinder radius 0.1 height 3.5DEF left Tran

4、sform translation-1.2 0 0center 0 2.35 0children USE hk Transform translation0.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 0 center0 2.35 0children USE hk DEFtime TimeSensorcycleInterval 1loop TRUE enabled TRUE

5、DEFz1 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, DEFz2 OrientationInterpolator 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 TOz1.set_fraction ROUTE time.fraction_changed TOz2.set_fraction ROU

6、TE z1.value_changedTO right.rotation ROUTE z2.value_changedTO left.rotation2. 不用電的電風(fēng)扇#VRML V2.0 utf8Background skyColor 1 1 0.9DEF a Transform translation0 1.3 -0.2children Shape appearance Appearance material Material diffuseColor 1 1 1geometry Sphereradius0.2Transform translation 1 0 0scale 0.9 0.

7、3 0.1center -1 0 0rotation 0 0 1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Sphereradius1 Transform translation 1 0 0scale 0.9 0.3 0.1center -1 0 0rotation 0 0 1 2.094children Shape appearance Appearance material Material diffuseColor 0 1 0geometry Sphereradiu

8、s1 Transform 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 Sphereradius1Transform translation 0 1.3 0scale 7 7 1.5center 0 0 0rotation 0 0 1 0children Shape appearance Appearance material Material

9、diffuseColor 0 1 1 transparency 0.77geometry Sphereradius 0.3 Transform 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.2 Transform translation 0 0 -0.8children Shape appearance Appearance mater

10、ial Material diffuseColor 1 1 1 geometry Cylinderheight 2.8 radius 0.13Transform translation 0 -1.4 0children Shape appearance Appearance material Material diffuseColor 0 0.5 1 geometry Boxsize 3 0.2 2.3 Transform translation1 -1.3 0.8children Shape appearance Appearance material Material diffuseCol

11、or 1 0 0geometry Sphereradius0.2 Transform translation-1 -1.3 0.8children Shape appearance Appearance material Material diffuseColor 0 1 0geometry Sphereradius0.2DEF sj TimeSensor enabled TRUEcycleInterval 1loop TRUE DEFzhuan OrientationInterpolator key0 0.25 0.5 0.75 1keyValue 0 0 1 0 0 0 1 1.57 0

12、0 1 3.14 0 0 1 4.71 0 0 1 6.28 ROUTE sj.fraction_changed TO zhuan.set_fractionROUTE zhuan.value_changed TO a.rotation3. 見鬼似的書柜#VRML V2.0 utf8 #VRML V2.0 utf8Background skyColor 0.8 0.8 09.8Transform translation0 3 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box

13、 size 3 0.2 2Transform translation1.5 1.1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 4 2Transform translation-1.5 1.1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 4 2 Transform translation0 1.1 -0

14、.9children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 4 0.2 DEF zuo Transform center 0.8 0 0 translation0.8 1.1 1children Shape appearance Appearance material Material diffuseColor 0 1 1geometry Box size 1.6 4 0.2DEFyou Transform center-0.8 0 0translation-0.8

15、 1.1 1children Shape appearance Appearance material Material diffuseColor 0 1 1geometry Box size 1.6 4 0.2 Transform translation0 1 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 3 0.2 2 Transform translation0 -1.65 -0.9children Shape appearance Appearanc

16、e material Material diffuseColor 0 0 1geometry Box size 3 1.5 0.2 Transform translation-1.5 -1.65 0children Shape appearance Appearance material Material diffuseColor 0 0 1geometry Box size 0.2 1.5 2 Transform translation1.5 -1.65 0children Shape appearance Appearance material Material diffuseColor

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

18、 translation0 -1.65 0.05children Shape appearance Appearance material Material diffuseColor 1 0 1geometry Box size 2.8 1.1 1.9DEF sj TimeSensor loop TRUEcycleInterval 2DEFzhuan OrientationInterpolator 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 0 DEFzhuan1 OrientationInterpolator key0 0.25 0.5 0.75 1keyValue 0 1 0 00 1 0 -1.570 1 0 -1.570 1 0 00 1 0 0DEFctd PositionInterpolator key0 0.5 1keyValue 0 -1.65

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論