|
|
|
ALIEN
TRAVELER
Don't worry, this is a friendly alien, but it doesn't want you to break through its ship's shields! Make the ship fly closer to the "planet's surface" (the background), spin around or make slow, gliding circles. Or take a look in its windows (Ooo! Scary!) This world makes use of three Live3D features: Background Image Are those the natural, geological formations of an extraterrestrial planet or is it strange, alien architecture that you see? Whichever the case, the background image in this world was designed to suggest a planet's surface. Using a planet of your own choosing is easy. For example:
DEF BackgroundImage Info {
string "alienbak.gif"
}
Animated Texture Two extensions were needed to make the spaceship's shields. First, an animated texture was constructed. The Animated Texture extension requires that the texture (image file) be 128 pixels wide by multiples of 128 pixels high. In this case, a paint program was used to make a pattern of small white dots, then replicate the dots in different positions for each of four frames. Each set of dot patterns was then copied, in sequence, into a 128x512 pixel image and exported as a 16 color GIF file. (The same process was used for the ship's window animation, except that a morphing program was used to generate most of 22 frames, and the final image is a 256 color GIF file.) Transparent Texture After the animation GIF file was completed for the shields, giftrans.exe was used on the GIF animation file to create a version whose background color was transparency. The new GIF file was then specified as the texture for a VRML Cube. For example:
Separator {
Texture2Transform {
scaleFactor 8 8
}
Texture2 {
filename "shields.gif"
}
Cube {
width 0.75
height 0.75
depth 0.75
}
}
Notice the "Texture2Transform" node that's used before the "Texture2" node. The VRML "Texture2Transform" node allows manipulation of subsequent "Texture2" nodes within the same Separator. Though other parameters may be affected, such as translation and rotation, in this case, the texture was scaled using the "scaleFactor" parameter. The "8 8" values tell Live3D to display the texture 8 times along the X axis and 8 times along the Y axis. Experiment with these values, using different textures, to see what kinds of effects you can achieve.
|