home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 11 / boot-disc-1997-07.iso / SpceBldr / data.z / Clock.vcd < prev    next >
Text File  |  1996-12-03  |  15KB  |  564 lines

  1. #VRML V2.0 utf8  (Created By ISB 2.01)
  2. # This file was created with Internet3D Space Builder 1.0 Beta2.
  3. # According to License Agreement, you may not remove or modify this notice.
  4. # Last corrections: [Mon Dec 02 17:14:55 1996]
  5.  
  6.  
  7. PROTO ISBPicture [
  8.         exposedField SFVec3f    translation      0 0 0
  9.         exposedField SFRotation rotation         0 0 1 0
  10.         exposedField SFRotation scaleOrientation 0 0 1 0
  11.         exposedField SFVec3f    scale            1 1 1
  12.         exposedField MFNode frames []
  13.         exposedField SFBool soundEnabled FALSE
  14.         field MFString urlSound []
  15.         field SFInt32 frameCount 0
  16.         field SFInt32 playOrder 0        # 0-forward, 1-backward, 2-pingpong
  17.         field SFBool  pinned FALSE
  18.         eventIn SFFloat switchTime       # ROUTE here to animate
  19.         eventOut SFInt32 intDummy
  20. ]
  21. {
  22.     Transform { # childs: 1
  23.         translation IS translation
  24.         rotation IS rotation
  25.         scaleOrientation IS scaleOrientation
  26.         scale IS scale
  27.  
  28.         children [
  29.             DEF PICT_SWITCH Switch {
  30.                 whichChoice -1
  31.                 choice IS frames
  32.             }
  33.             Sound {
  34.                 minFront 100000
  35.                 maxFront 100000
  36.                 minBack 100000
  37.                 maxBack 100000
  38.                 source DEF AUDIO AudioClip { url IS urlSound }
  39.             }
  40.             DEF TOUCH TouchSensor {
  41.                 enabled IS soundEnabled
  42.             }
  43.         ]
  44.         ROUTE TOUCH.touchTime TO AUDIO.startTime
  45.     } # Transform end
  46.  
  47.     DEF PICT_SCRIPT Script {
  48.         eventIn SFFloat time_in IS switchTime
  49.         eventOut SFInt32 curFrame IS intDummy
  50.         field SFInt32 nFrames IS frameCount
  51.         field SFInt32 playOrder IS playOrder
  52.         field SFInt32 ping_pong_dir 0      # 0-forward, 1-backward
  53.         field SFInt32 nActiveFrame -1
  54.  
  55.         url "vrmlscript: 
  56.             function time_in() 
  57.             {
  58.                 if(nFrames == 0) 
  59.                     return;
  60.                 else if(nFrames == 1 && nActiveFrame == -1)
  61.                 {
  62.                     nActiveFrame = 0;
  63.                     curFrame = 0;
  64.                     return;
  65.                 }
  66.  
  67.                 nCurrentFrame = nActiveFrame;
  68.                 if(playOrder == 0) {
  69.                     if(++nActiveFrame == nFrames) nActiveFrame = 0;
  70.                 }
  71.                 else if(playOrder == 1) {
  72.                     if(--nActiveFrame == -1) nActiveFrame = nFrames-1;
  73.                 }
  74.                 else if(playOrder == 2) {
  75.                     if(ping_pong_dir == 0)
  76.                     {
  77.                         if(++nActiveFrame == nFrames) 
  78.                         {
  79.                             nActiveFrame = nFrames - 1;
  80.                             ping_pong_dir = 1;
  81.                         }
  82.                     }
  83.                     else
  84.                     {
  85.                         if(--nActiveFrame == -1)
  86.                         {
  87.                             nActiveFrame = 0;
  88.                             ping_pong_dir = 0;
  89.                         }
  90.                     }
  91.                 }
  92.                 if(nCurrentFrame != nActiveFrame)
  93.                     curFrame = nActiveFrame;
  94.             }"
  95.     }
  96.  
  97.     ROUTE PICT_SCRIPT.curFrame TO PICT_SWITCH.whichChoice
  98.  
  99. } # ISBPicture PROTO end
  100.  
  101. PROTO ISBPictureFrame [
  102.         field SFNode texNode NULL
  103. ]
  104. {
  105.     Shape {
  106.         appearance Appearance {
  107.             material Material {
  108.                 diffuseColor 0.5 0.5 0.5
  109.             }
  110.             texture IS texNode
  111.         }
  112.         geometry IndexedFaceSet { # faces: 1
  113.             convex FALSE
  114.             colorPerVertex FALSE
  115.             color Color {
  116.                 color 0 0 0
  117.             }
  118.             coord Coordinate {
  119.                 point [
  120.                     0 0 1,
  121.                     1 0 1,
  122.                     1 1 1,
  123.                     0 1 1
  124.                 ]
  125.             }
  126.             coordIndex [
  127.                 0, 1, 2, 3, -1
  128.             ]
  129.             texCoord TextureCoordinate {
  130.                 point [
  131.                     0 0,
  132.                     1 0,
  133.                     1 1,
  134.                     0 1
  135.                 ]
  136.             }
  137.             texCoordIndex [
  138.                 0, 1, 2, 3, -1
  139.             ]
  140.         }
  141.     } # Shape end
  142. } # ISBPictureFrame PROTO end
  143.  
  144.  
  145. Group { # childs: 3
  146.     children [
  147.         Shape {
  148.             appearance Appearance {
  149.                 material Material {
  150.                     diffuseColor 0.5 0.5 0.5
  151.                 }
  152.                 texture ImageTexture {
  153.                     url "WOOD/wood2.gif"
  154.                 }
  155.             }
  156.             geometry IndexedFaceSet { # faces: 27
  157.                 convex FALSE
  158.                 colorPerVertex FALSE
  159.                 color Color {
  160.                     color [
  161.                         0.476563 0.476563 0.476563
  162.                         0.476563 0.476563 0.476563
  163.                         0.476563 0.476563 0.476563
  164.                         0.476563 0.476563 0.476563
  165.                         0.476563 0.476563 0.476563
  166.                         0.476563 0.476563 0.476563
  167.                         0.476563 0.476563 0.476563
  168.                         0.476563 0.476563 0.476563
  169.                         0.476563 0.476563 0.476563
  170.                         0.476563 0.476563 0.476563
  171.                         0.476563 0.476563 0.476563
  172.                         0.476563 0.476563 0.476563
  173.                         0.476563 0.476563 0.476563
  174.                         0.476563 0.476563 0.476563
  175.                         0.476563 0.476563 0.476563
  176.                         0.476563 0.476563 0.476563
  177.                         0.476563 0.476563 0.476563
  178.                         0.476563 0.476563 0.476563
  179.                         0.476563 0.476563 0.476563
  180.                         0.476563 0.476563 0.476563
  181.                         0.476563 0.476563 0.476563
  182.                         0.476563 0.476563 0.476563
  183.                         0.476563 0.476563 0.476563
  184.                         0.476563 0.476563 0.476563
  185.                         0.476563 0.476563 0.476563
  186.                         0.476563 0.476563 0.476563
  187.                         0.476563 0.476563 0.476563
  188.                     ]
  189.                 }
  190.                 coord DEF Label_000 Coordinate {
  191.                     point [
  192.                         -0.105074 0.407839 -0.751663,
  193.                         -0.105074 0.407839 -0.922039,
  194.                         -0.144205 0.366211 -0.922039,
  195.                         -0.144205 0.366211 -0.751663,
  196.                         0.0289361 0.407839 -0.751663,
  197.                         0.0721027 0.370785 -0.751663,
  198.                         0.0721027 0.370785 -0.922039,
  199.                         0.0289361 0.407839 -0.922039,
  200.                         -0.116694 0.363865 -0.805092,
  201.                         0.0404555 0.363865 -0.805092,
  202.                         0.0404555 -0.398358 -0.805092,
  203.                         -0.116694 -0.398358 -0.805092,
  204.                         0.0404555 0.363865 -0.912585,
  205.                         0.0404555 -0.398358 -0.912585,
  206.                         -0.116694 0.363865 -0.912585,
  207.                         -0.116694 -0.398358 -0.912585,
  208.                         0.0404555 -0.398358 -0.751663,
  209.                         0.0404555 0.363865 -0.751663,
  210.                         0.0404555 0.363865 -0.787991,
  211.                         0.0404555 -0.398358 -0.787991,
  212.                         -0.116694 0.363865 -0.751663,
  213.                         -0.116694 -0.398358 -0.751663,
  214.                         -0.116694 -0.398358 -0.787991,
  215.                         -0.116694 0.363865 -0.787991,
  216.                         -0.204814 -0.440426 -0.739958,
  217.                         -0.16775 -0.440426 -0.7479,
  218.                         -0.16775 -0.440426 -0.927925,
  219.                         0.0916976 -0.440426 -0.927925,
  220.                         0.0916976 -0.440426 -0.7479,
  221.                         0.123467 -0.440426 -0.739958,
  222.                         0.123467 -0.440426 -0.930572,
  223.                         -0.204814 -0.440426 -0.930572,
  224.                         -0.204814 -0.482784 -0.739958,
  225.                         0.123467 -0.482784 -0.739958,
  226.                         0.123467 -0.482784 -0.930572,
  227.                         -0.204814 -0.482784 -0.930572,
  228.                         0.0916976 -0.413951 -0.7479,
  229.                         -0.16775 -0.413951 -0.7479,
  230.                         0.0916976 -0.413951 -0.927925,
  231.                         -0.16775 -0.413951 -0.927925,
  232.                         0.0721027 -0.413951 -0.751663,
  233.                         -0.144205 -0.413951 -0.751663,
  234.                         -0.144205 -0.413951 -0.922039,
  235.                         0.0721027 -0.413951 -0.922039
  236.                     ]
  237.                 }
  238.                 coordIndex [
  239.                     0, 1, 2, 3, -1,
  240.                     4, 5, 6, 7, -1,
  241.                     4, 7, 1, 0, -1,
  242.                     8, 9, 10, 11, -1,
  243.                     9, 12, 13, 10, -1,
  244.                     14, 8, 11, 15, -1,
  245.                     12, 14, 15, 13, -1,
  246.                     14, 12, 9, 8, -1,
  247.                     11, 10, 13, 15, -1,
  248.                     16, 17, 18, 19, -1,
  249.                     20, 21, 22, 23, -1,
  250.                     17, 20, 23, 18, -1,
  251.                     21, 16, 19, 22, -1,
  252.                     24, 25, 26, 27, 28, 25, 24, 29, 30, 31, -1,
  253.                     32, 33, 29, 24, -1,
  254.                     33, 34, 30, 29, -1,
  255.                     35, 32, 24, 31, -1,
  256.                     34, 35, 31, 30, -1,
  257.                     25, 28, 36, 37, -1,
  258.                     28, 27, 38, 36, -1,
  259.                     26, 25, 37, 39, -1,
  260.                     27, 26, 39, 38, -1,
  261.                     37, 40, 41, 42, 43, 40, 37, 36, 38, 39, -1,
  262.                     42, 41, 3, 2, -1,
  263.                     41, 21, 20, 17, 16, 21, 41, 40, 5, 4, 0, 3, -1,
  264.                     43, 42, 2, 1, 7, 6, -1,
  265.                     40, 43, 6, 5, -1,
  266.                 ]
  267.                 texCoord DEF Label_001 TextureCoordinate {
  268.                     point [
  269.                         0.38488 -0.112919,
  270.                         0.562618 -0.310317,
  271.                         0.681337 -0.203421,
  272.                         0.503599 -0.00602299,
  273.                         -0.0216885 -0.112919,
  274.                         -0.15265 -0.0177698,
  275.                         -0.308781 -0.232665,
  276.                         -0.17782 -0.327814,
  277.                         -0.0216885 -0.112919,
  278.                         -0.0216885 -0.378544,
  279.                         0.38488 -0.378544,
  280.                         0.38488 -0.112919,
  281.                         -0.644356 4.85136e-008,
  282.                         -0.167586 1.26176e-008,
  283.                         -0.167586 1.95726,
  284.                         -0.644356 1.95726,
  285.                         -0.167586 1.26176e-008,
  286.                         0 0,
  287.                         0 1.95726,
  288.                         -0.167586 1.95726,
  289.                         -0.811942 6.11312e-008,
  290.                         -0.644356 4.85136e-008,
  291.                         -0.644356 1.95726,
  292.                         -0.811942 1.95726,
  293.                         0 0,
  294.                         0.47677 0,
  295.                         0.47677 1.95726,
  296.                         0 1.95726,
  297.                         0.47677 0,
  298.                         0 0,
  299.                         0 -0.167586,
  300.                         0.47677 -0.167586,
  301.                         -0.644356 1.95726,
  302.                         -0.167586 1.95726,
  303.                         -0.167586 2.12485,
  304.                         -0.644356 2.12485,
  305.                         -0.0566369 1.95726,
  306.                         -0.0566369 4.2642e-009,
  307.                         0 0,
  308.                         0 1.95726,
  309.                         0.533406 -3.44953e-009,
  310.                         0.533406 1.95726,
  311.                         0.47677 1.95726,
  312.                         0.47677 -3.44953e-009,
  313.                         0 -0.0566369,
  314.                         0.47677 -0.0566369,
  315.                         0.47677 0,
  316.                         0 0,
  317.                         0.47677 2.0139,
  318.                         1.11022e-016 2.0139,
  319.                         0 1.95726,
  320.                         0.47677 1.95726,
  321.                         0.485351 2.24916,
  322.                         0.497733 2.13671,
  323.                         0.7784 2.13671,
  324.                         0.7784 1.34959,
  325.                         0.497733 1.34959,
  326.                         0.497733 2.13671,
  327.                         0.485351 2.24916,
  328.                         0.485351 1.25321,
  329.                         0.782527 1.25321,
  330.                         0.782527 2.24916,
  331.                         0 0,
  332.                         0.995959 0,
  333.                         0.995959 0.10877,
  334.                         0 0.10877,
  335.                         -0.134402 2.32989,
  336.                         -0.431578 2.32989,
  337.                         -0.431578 2.22112,
  338.                         -0.134402 2.22112,
  339.                         0.782527 2.35793,
  340.                         0.485351 2.35793,
  341.                         0.485351 2.24916,
  342.                         0.782527 2.24916,
  343.                         -0.308482 2.26882,
  344.                         0.687477 2.26882,
  345.                         0.687477 2.37759,
  346.                         -0.308482 2.37759,
  347.                         0.112447 0.121153,
  348.                         0.899576 0.121153,
  349.                         0.899576 0.189134,
  350.                         0.112447 0.189134,
  351.                         -0.146784 2.12474,
  352.                         -0.427451 2.12474,
  353.                         -0.427451 2.05675,
  354.                         -0.146784 2.05675,
  355.                         0.7784 2.13672,
  356.                         0.497733 2.13672,
  357.                         0.497733 2.06874,
  358.                         0.7784 2.06874,
  359.                         -0.212099 2.38172,
  360.                         0.57503 2.38172,
  361.                         0.57503 2.4497,
  362.                         -0.212099 2.4497,
  363.                         0.497733 2.06874,
  364.                         0.5036 1.34106,
  365.                         0.5036 1.99731,
  366.                         0.769223 1.99731,
  367.                         0.769223 1.34106,
  368.                         0.5036 1.34106,
  369.                         0.497733 2.06874,
  370.                         0.497733 1.28161,
  371.                         0.7784 1.28161,
  372.                         0.7784 2.06874,
  373.                         0.769225 1.99731,
  374.                         0.5036 1.99731,
  375.                         0.5036 -0.0060236,
  376.                         0.769225 -0.0060236,
  377.                         0.5036 1.99731,
  378.                         0.420135 1.95727,
  379.                         0.420135 -5.72828e-007,
  380.                         -0.0566369 -5.72828e-007,
  381.                         -0.0566364 1.95727,
  382.                         0.420135 1.95727,
  383.                         0.5036 1.99731,
  384.                         -0.15265 1.99731,
  385.                         -0.15265 -0.0177701,
  386.                         -0.0216885 -0.112919,
  387.                         0.384881 -0.112919,
  388.                         0.5036 -0.00602476,
  389.                         -0.15265 2.45887,
  390.                         0.5036 2.45887,
  391.                         0.503599 4.46221,
  392.                         0.38488 4.5691,
  393.                         -0.0216896 4.5691,
  394.                         -0.152651 4.47395,
  395.                         -0.15265 1.99731,
  396.                         -0.418275 1.99731,
  397.                         -0.418275 -0.0177697,
  398.                         -0.15265 -0.0177697
  399.                     ]
  400.                 }
  401.                 texCoordIndex [
  402.                     0, 1, 2, 3, -1,
  403.                     4, 5, 6, 7, -1,
  404.                     8, 9, 10, 11, -1,
  405.                     12, 13, 14, 15, -1,
  406.                     16, 17, 18, 19, -1,
  407.                     20, 21, 22, 23, -1,
  408.                     24, 25, 26, 27, -1,
  409.                     28, 29, 30, 31, -1,
  410.                     32, 33, 34, 35, -1,
  411.                     36, 37, 38, 39, -1,
  412.                     40, 41, 42, 43, -1,
  413.                     44, 45, 46, 47, -1,
  414.                     48, 49, 50, 51, -1,
  415.                     52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1,
  416.                     62, 63, 64, 65, -1,
  417.                     66, 67, 68, 69, -1,
  418.                     70, 71, 72, 73, -1,
  419.                     74, 75, 76, 77, -1,
  420.                     78, 79, 80, 81, -1,
  421.                     82, 83, 84, 85, -1,
  422.                     86, 87, 88, 89, -1,
  423.                     90, 91, 92, 93, -1,
  424.                     94, 95, 96, 97, 98, 99, 100, 101, 102, 103, -1,
  425.                     104, 105, 106, 107, -1,
  426.                     108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, -1,
  427.                     120, 121, 122, 123, 124, 125, -1,
  428.                     126, 127, 128, 129, -1,
  429.                 ]
  430.             }
  431.         }
  432.         Shape {
  433.             appearance Appearance {
  434.                 material Material {
  435.                     diffuseColor 0.5 0.5 0.5
  436.                     transparency 1
  437.                 }
  438.             }
  439.             geometry IndexedFaceSet { # faces: 1
  440.                 convex FALSE
  441.                 colorPerVertex FALSE
  442.                 color Color {
  443.                     color [
  444.                         0.726563 0.726563 0.726563
  445.                     ]
  446.                 }
  447.                 coord USE Label_000
  448.                 coordIndex [
  449.                     18, 23, 22, 19, -1,
  450.                 ]
  451.                 texCoord USE Label_001
  452.                 texCoordIndex [
  453.                     -1,
  454.                 ]
  455.             }
  456.         }
  457.         Shape {
  458.             appearance Appearance {
  459.                 material Material {
  460.                     diffuseColor 0.5 0.5 0.5
  461.                 }
  462.             }
  463.             geometry IndexedFaceSet { # faces: 1
  464.                 convex FALSE
  465.                 colorPerVertex FALSE
  466.                 color Color {
  467.                     color [
  468.                         0.476563 0.476563 0.476563
  469.                     ]
  470.                 }
  471.                 coord USE Label_000
  472.                 coordIndex [
  473.                     35, 34, 33, 32, -1
  474.                 ]
  475.                 texCoord USE Label_001
  476.                 texCoordIndex [
  477.                     -1
  478.                 ]
  479.             }
  480.         }
  481.         DEF Object12 Transform { # childs: 1
  482.             translation -0.0192096 -0.00621202 -0.392828
  483.             rotation 0 0 1 0
  484.             scaleOrientation 0 0 1 0
  485.             scale 0.613473 1.06937 0.607143
  486.             children [
  487.                 Shape {
  488.                     appearance Appearance {
  489.                         material Material {
  490.                             diffuseColor 0.5 0.5 0.5
  491.                         }
  492.                     }
  493.                     geometry IndexedFaceSet { # faces: 6
  494.                         convex FALSE
  495.                         colorPerVertex FALSE
  496.                         color Color {
  497.                             color [
  498.                                 0.476563 0.476563 0.476563
  499.                                 0.476563 0.476563 0.476563
  500.                                 0.476563 0.476563 0.476563
  501.                                 0.476563 0.476563 0.476563
  502.                                 0.476563 0.476563 0.476563
  503.                                 0.476563 0.476563 0.476563
  504.                             ]
  505.                         }
  506.                         coord DEF Label_002 Coordinate {
  507.                             point [
  508.                                 -0.180257 -0.410578 -0.791751,
  509.                                 0.118454 -0.410578 -0.791751,
  510.                                 0.118454 0.362203 -0.791751,
  511.                                 -0.180257 0.362203 -0.791751,
  512.                                 0.118454 -0.410578 -0.841862,
  513.                                 0.118454 0.362203 -0.841862,
  514.                                 -0.180257 -0.410578 -0.841862,
  515.                                 -0.180257 0.362203 -0.841862
  516.                             ]
  517.                         }
  518.                         coordIndex [
  519.                             0, 1, 2, 3, -1,
  520.                             1, 4, 5, 2, -1,
  521.                             6, 0, 3, 7, -1,
  522.                             4, 6, 7, 5, -1,
  523.                             3, 2, 5, 7, -1,
  524.                             6, 4, 1, 0, -1
  525.                         ]
  526.                     }
  527.                 }
  528.             ]
  529.         }
  530.         DEF Cl4 ISBPicture {
  531.             translation -0.116694 -0.393943 -0.787991
  532.             rotation 0 0.164086 -0.986446 1.43667e-031
  533.             scaleOrientation -1 0 0 1.5708
  534.             scale 0.166565 0.0383521 0.767042
  535.             pinned TRUE
  536.             frameCount 14
  537.             playOrder 0
  538.             frames [
  539.                 ISBPictureFrame { texNode ImageTexture { url "CL00.gif" } }
  540.                 ISBPictureFrame { texNode ImageTexture { url "CL01.gif" } }
  541.                 ISBPictureFrame { texNode ImageTexture { url "CL02.gif" } }
  542.                 ISBPictureFrame { texNode ImageTexture { url "CL03.gif" } }
  543.                 ISBPictureFrame { texNode ImageTexture { url "CL04.gif" } }
  544.                 ISBPictureFrame { texNode ImageTexture { url "CL05.gif" } }
  545.                 ISBPictureFrame { texNode ImageTexture { url "CL06.gif" } }
  546.                 ISBPictureFrame { texNode ImageTexture { url "CL07.gif" } }
  547.                 ISBPictureFrame { texNode ImageTexture { url "CL08.gif" } }
  548.                 ISBPictureFrame { texNode ImageTexture { url "CL09.gif" } }
  549.                 ISBPictureFrame { texNode ImageTexture { url "CL10.gif" } }
  550.                 ISBPictureFrame { texNode ImageTexture { url "CL11.gif" } }
  551.                 ISBPictureFrame { texNode ImageTexture { url "CL12.gif" } }
  552.                 ISBPictureFrame { texNode ImageTexture { url "CL13.gif" } }
  553.             ]
  554.         }
  555.         DEF _PictureTimer TimeSensor {
  556.             loop TRUE
  557.             startTime 0.1
  558.         }
  559.     ]
  560.     ROUTE _PictureTimer.fraction_changed TO Cl4.switchTime
  561. }
  562. # Faces total: 35
  563. # Facesets total: 2
  564.