home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / vrml / glview.zip / HGJumpWorld.wrl < prev    next >
Text File  |  1996-04-02  |  4KB  |  202 lines

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     DEF Title Info { string    "GLView jump world"  }
  5.     Info { string "by Holger Grahn, hg@berlin.snafu.de" }
  6.  
  7.     ShapeHints {
  8.         vertexOrdering COUNTERCLOCKWISE
  9.         shapeType SOLID
  10.     }
  11.     DEF EntryView PerspectiveCamera {
  12.         position 0 -6 10
  13.         orientation 1 0 0 0.8
  14.         focalDistance 13
  15.         heightAngle  1.5
  16.         nearDistance 0.1
  17.         farDistance 30
  18.     }
  19.     DEF OneMoreView PerspectiveCamera {
  20.         position -0.76 -3.95 3.5134
  21.         orientation 1 0 0 1.4
  22.         focalDistance 13
  23.         heightAngle  1.5
  24.         nearDistance 0.1
  25.         farDistance 30
  26.     }
  27.  
  28.  
  29.     Material {
  30.         ambientColor    0.00714286 0.00169011 0
  31.         diffuseColor    0.314286 0.0743647 0
  32.         specularColor    0.760204 0.582954 0
  33.         emissiveColor    0 0 0
  34.         shininess    0.0408163
  35.         transparency    0
  36.     }
  37.  
  38.  
  39.     
  40.     DEF objects Switch {
  41.         whichChild -1
  42.     
  43.         DEF obj Separator {
  44.                 Cube { }
  45.         }
  46.         DEF obj2 Separator {
  47.                 Cone { }
  48.         }
  49.         DEF jumpBall Separator {
  50.             TimeTransform { function WRAP }
  51.             TimeTransform { function CYCLE }
  52.             TimeTransform { function SQR }
  53.             Shuttle { translation0 0 0 0
  54.                       translation0 0 0 5 }     
  55.             Sphere { radius 0.4}
  56.  
  57.         }
  58.     }
  59.     Separator {
  60.     ##    Sphere {}
  61.     }
  62.  
  63.     DEF Background Separator {
  64.             Material {
  65.             ambientColor    0 0 0 
  66.             diffuseColor    [0.5 0.05 0.05, 0.2 0.2 0.5]
  67.             specularColor    0 0 0
  68.             emissiveColor    0 0 0
  69.             shininess    0.0
  70.             transparency    0
  71.             }
  72.             #Texture2 { filename "balmoral.rgb" }
  73.  
  74.  
  75.             Scale { scaleFactor 25 25 1 }
  76.             Translation { translation -0.5 -0.5 0 }
  77.             
  78.             ShapeHints {
  79.                 vertexOrdering CLOCKWISE
  80.                 shapeType SOLID
  81.             }
  82.             Coordinate3 { point [ 0 0 0, 1 0 0, 0 1 0, 1 1 0 ]}
  83.             TextureCoordinate2 { point [ 0 0, 0 5, 5 5, 5 0 ] }
  84.             
  85.             MaterialBinding {value PER_VERTEX_INDEXED }
  86.             IndexedFaceSet {
  87.                 coordIndex [ 0, 2, 3, 1, -1]
  88.                 textureCoordIndex [ 0, 1, 2, 3, -1]
  89.                 materialIndex [ 0, 1, 0, 1, -1]
  90.             }
  91.     }
  92.  
  93.  
  94.     
  95.     WWWAnchor { name "LogoTextured.wrl"
  96.  
  97.  
  98.     DEF jumpingSpheres Separator {
  99.         Separator {
  100.             Translation { translation    -2 -1 0  }
  101.             USE jumpBall
  102.         }
  103.         Separator {
  104.             Translation { translation    2 -1 0  }
  105.             TimeTransform { translation 0.2 }
  106.             USE jumpBall
  107.         }
  108.  
  109.         Separator {
  110.             Translation { translation    -2 2 0  }
  111.             TimeTransform { scaleFactor 1.1 }
  112.             USE jumpBall
  113.         }
  114.  
  115.         Separator {
  116.             Translation { translation    -0.5 0 0  }
  117.             TimeTransform { translation 0.5 }
  118.             USE jumpBall
  119.         }
  120.  
  121.         Separator {
  122.             Translation { translation    -1 2 0  }
  123.             TimeTransform { translation 0.1 }
  124.             USE jumpBall
  125.         }
  126.         Separator {
  127.             Translation { translation    -1.5 -3 0  }
  128.             TimeTransform { translation 0.7 }
  129.             USE jumpBall
  130.         }
  131.         Separator {
  132.             Translation { translation    0.5 -2.5 0  }
  133.             TimeTransform { translation 0.4 scaleFactor 0.7 }
  134.             USE jumpBall
  135.         }
  136.         
  137.  
  138.     }
  139.     }
  140.  
  141.     DEF flyingCubes Separator {
  142.         Material {
  143.             ambientColor    0.00714286 0.00169011 0
  144.             diffuseColor    0.514286 0.0743647 0.2
  145.             specularColor    0.760204 0.582954 0.2
  146.             emissiveColor    0 0 0
  147.             shininess    0.0408163
  148.             transparency    0
  149.         }
  150.  
  151.  
  152.         WWWAnchor { name "MorphedRonny.wrl"
  153.         Separator {
  154.             Translation { translation    -5 5 0  }
  155.             Shuttle { translation1 0 0 20  translation0 0 0 -1 speed 0.25}
  156.             Rotation { rotation 1 0 0     1.57079}
  157.             Rotor {    }
  158.             Rotor { rotation 1 1 1     2.0 }
  159.             USE obj
  160.         }
  161.         }
  162.         
  163.         WWWAnchor { name "MorphedCow.wrl"
  164.         Separator {
  165.             Translation { translation    3.5 5 0  }
  166.             Shuttle { translation1  0 0 20  translation0 0 0 -1  speed 0.25}
  167.             Rotation { rotation 1 0 0     1.57079}
  168.             USE obj
  169.         }
  170.         }
  171.         WWWAnchor { name "http://www.snafu.de/~hg" description "GLView homepage"
  172.         Separator {
  173.             Translation { translation    -5 -2.0 0  }
  174.             Shuttle { translation1 0 0 20  translation0 0 0 -1 speed 0.25}
  175.             Rotor {    }
  176.             Rotor { rotation 1 1 0     1.8 }
  177.             Rotation { rotation 1 0 0     1.57079}
  178.             USE obj
  179.         }
  180.         }
  181.         WWWAnchor { name "ColoredTunnel.wrl" 
  182.         Separator {
  183.             Translation { translation    6 -2 0  }
  184.             Shuttle { translation1  0 0 20  translation0 0 0 -1  speed 0.25}
  185.             Rotor {    }
  186.             Rotor { rotation 1 1 0     -1.8 }
  187.             Rotation { rotation 1 0 0     1.57079}
  188.             USE obj
  189.         }
  190.         } 
  191.  
  192.         WWWAnchor { name "HGConeWorld.wrl"
  193.         Separator {
  194.             Shuttle { translation1  0 -6 10  translation0 2 4 -1  speed 0.5}
  195.             Rotor { rotation 1 0 0   1.5 }
  196.             Rotation { rotation 1 0 0     1.57079}
  197.             USE obj2
  198.         }
  199.         }
  200.     }
  201. }
  202.