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

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、1.會動的擺球#vrml v2.0 utf8 background skycolor .6 .6 1 transform translation 0 -2.5 0 children shape appearance appearance material materialdiffusecolor 0 1 1 geometry box size 10 1 1 transform translation 4 0 0 children shape appearanceappearance material material diffusecolor 1 0 1 geometry box size 0

2、.5 5.8 0.6 transform translation -4 0 0 children shape appearanceappearance material material diffusecolor 1 0 1 geometry box size 0.5 5.8 0.6 transform translation 0 2.5 0 rotation 0 0 1 1.571 children shape appearance appearance materialmaterial diffusecolor .5 0 1 geometry cylinder radius 0.2 hei

3、ght 7.5 def hk transform children group children transform translation 0 -1.42 0 children shape appearanceappearance material material diffusecolor 2 1 1 geometry sphere radius0.3 transform translation 0 0.6 0 children shape appearanceappearance material material diffusecolor 0 .8 1 geometry cylinde

4、r radius 0.1 height 3.5 def left transform translation -1.2 0 0 center 0 2.35 0 children use hk transform translation 0.6 0 0 rotation 0 0 1 0 children use hk transform translation -.6 0 0 rotation 0 0 1 0 children use hk def right transform translation 1.2 0 0 center 0 2.35 0 children use hk def ti

5、me timesensor cycleinterval 1 loop true 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 z2 orientationinterpolator 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

6、toz1.set_fraction route time.fraction_changed toz2.set_fraction route z1.value_changed to right.rotation route z2.value_changed to left.rotation 2.不用電的電風扇#vrml v2.0 utf8 background skycolor 1 1 0.9 def a transform translation 0 1.3 -0.2 children shape appearance appearance material material diffusec

7、olor 1 1 1 geometry sphere radius0.2 transform translation 1 0 0 scale 0.9 0.3 0.1 center -1 0 0 rotation 0 0 1 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry sphere radius1 transform translation 1 0 0 scale 0.9 0.3 0.1 center -1 0 0 rotation 0 0 1 2.094 childre

8、n shape appearance appearance material material diffusecolor 0 1 0 geometry sphere radius1 transform translation 1 0 0 scale 0.9 0.3 0.1 center -1 0 0 rotation 0 0 1 4.18 children shape appearance appearance material material diffusecolor 1 0 0 geometry sphere radius1 transform translation 0 1.3 0 s

9、cale 7 7 1.5 center 0 0 0 rotation 0 0 1 0 children shape appearance appearance material material diffusecolor 0 1 1 transparency 0.77 geometry sphere radius 0.3 transform translation 0 1.3 -0.72 rotation 1 0 0 1.57 children shape appearance appearance material material diffusecolor 1 0 1 geometry c

10、ylinder height 0.75 radius 0.2 transform translation 0 0 -0.8 children shape appearance appearance material material diffusecolor 1 1 1 geometry cylinder height 2.8 radius 0.13 transform translation 0 -1.4 0 children shape appearance appearance material material diffusecolor 0 0.5 1 geometry box siz

11、e 3 0.2 2.3 transform translation 1 -1.3 0.8 children shape appearance appearance material material diffusecolor 1 0 0 geometry sphere radius0.2 transform translation -1 -1.3 0.8 children shape appearance appearance material material diffusecolor 0 1 0 geometry sphere radius0.2 def sj timesensor ena

12、bled true cycleinterval 1 loop true def zhuan orientationinterpolator key 0 0.25 0.5 0.75 1 keyvalue 0 0 1 0 0 0 1 1.57 0 0 1 3.14 0 0 1 4.71 0 0 1 6.28 route sj.fraction_changed to zhuan.set_fraction route zhuan.value_changed to a.rotation 3.見鬼似的書柜#vrml v2.0 utf8 #vrml v2.0 utf8 background skycolor

13、 0.8 0.8 09.8 transform translation 0 3 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 3 0.2 2 transform translation 1.5 1.1 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 0.2 4 2 transform translation -1.5

14、 1.1 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 0.2 4 2 transform translation 0 1.1 -0.9 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 3 4 0.2 def zuo transform center 0.8 0 0 translation 0.8 1.1 1 child

15、ren shape appearance appearance material material diffusecolor 0 1 1 geometry box size 1.6 4 0.2 def you transform center -0.8 0 0 translation -0.8 1.1 1 children shape appearance appearance material material diffusecolor 0 1 1 geometry box size 1.6 4 0.2 transform translation 0 1 0 children shape a

16、ppearance appearance material material diffusecolor 0 0 1 geometry box size 3 0.2 2 transform translation 0 -1.65 -0.9 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 3 1.5 0.2 transform translation -1.5 -1.65 0 children shape appearance appearance materia

17、l material diffusecolor 0 0 1 geometry box size 0.2 1.5 2 transform translation 1.5 -1.65 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 0.2 1.5 2 transform translation 0 -2.3 0 children shape appearance appearance material material diffusecolor 0 0 1 g

18、eometry box size 3 0.2 2 transform translation 0 -1 0 children shape appearance appearance material material diffusecolor 0 0 1 geometry box size 3 0.2 2 def ct transform translation 0 -1.65 0.05 children shape appearance appearance material material diffusecolor 1 0 1 geometry box size 2.8 1.1 1.9 def sj timesensor loop tru

溫馨提示

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

評論

0/150

提交評論