home *** CD-ROM | disk | FTP | other *** search
- // ActiveVRML 1.0 ASCII
- // Saucer2 Sample Script
-
- // The first step is to import the raw media for our sample
- shipred = first (import ("shipred.gif"));
- shipblue = first (import ("shipblue.gif"));
- mountain = first (import("mountain.gif"));
- clouds = first (import("clouds.gif"));
-
- // The saucer will alternate between two different images
- saucer = shipred until predicate (time > 1) =>
- (shipblue until predicate (time > 1) => saucer);
-
- // Define a 2D transformation to describe the saucer's position
- movement = translate (0.005 * time - 0.05, 0.007);
-
- // Define a new saucer object that has movement applied to it
- activesaucer = transformImage (movement, saucer);
-
- // Define the expression used for display output
- model = mountain over activesaucer over clouds;