home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / vrml / cp2b2x.exe / DATA.Z / proto.wrl < prev    next >
Text File  |  1996-06-26  |  1KB  |  67 lines

  1. #VRML V2.0 utf8
  2.  
  3. #
  4. # proto.wrl
  5. #   ROUTE to a proto instance including simple shapes with no color.
  6. #
  7.  
  8. Background {
  9.     skyColor [0 0 1]
  10. }
  11.  
  12. PROTO SampleShapes [
  13.     exposedField SFVec3f shapesTranslation 0 0 0
  14. ] {
  15. Transform {
  16.     translation IS shapesTranslation
  17.         children [
  18.             Transform {
  19.                     children [Shape {geometry Box {}}]
  20.                 },
  21.         Transform {
  22.                     translation 3 0 0
  23.             children [Shape {geometry Cylinder {}}]
  24.         },
  25.         Transform {
  26.                     translation 6 0 0
  27.             children [Shape {geometry Cone {}}]
  28.         },
  29.         Transform {
  30.                     translation 9 0 0
  31.             children [Shape {geometry Sphere {}}]
  32.         }
  33.     ]
  34. }
  35. }
  36.  
  37. DEF TIME TimeSensor{
  38.     loop TRUE
  39.     cycleInterval 10
  40. }
  41.  
  42.  
  43. DEF POS1 PositionInterpolator{
  44.     keys [0, 0.5, 1]
  45.     values [-5 0 0, 0 0 0, -5 0 0]
  46. }
  47.  
  48. DEF INS1 SampleShapes {
  49.     shapesTranslation -5 0 0
  50. }
  51.  
  52. DEF POS2 PositionInterpolator{
  53.     keys [0, 0.5, 1]
  54.     values [0 0 0, 4 4 4, 0 0 0]
  55. }
  56.  
  57. DEF INS2 SampleShapes {
  58.     shapesTranslation 0 0 0
  59. }
  60.  
  61. ROUTE TIME.fraction TO POS1.set_fraction
  62. ROUTE POS1.value_changed TO INS1.shapesTranslation
  63.  
  64. ROUTE TIME.fraction TO POS2.set_fraction
  65. ROUTE POS2.value_changed TO INS2.shapesTranslation
  66.  
  67.