// POV VRML background generator // Created by Armagon Aug. 24, 1998 // Modified for Quake II use Mar. 6, 1999 // Render with something like +KFF6 +W256 +H256 +FN // +KFF6 sets it to render six frames; one for each view // +W and +H control the width and height, repectively // +FN sets it to render PNGs; +FT instead does uncompressed TGAs // The width and height may be changed to other powers of 2, // and although this saves files as PNGs, you probably want to change // them to jpegs. #declare Quake2 = 1; // Comment out this line for use with VRML #include "MyScene.pov" // Replace with name of your POV scene camera{ up y right x location 0 look_at z * -100 angle 90 #switch (int(clock*5)) #case (0) // Front // Do nothing #break #case (1) // Left rotate y * 90 #break #case (2) // Right rotate y * -90 #break #case (3) // Back rotate y * 180 #break #case (4) // Top rotate x * 90 rotate y * 180 #ifdef (Quake2) rotate y * 90 #end #break #case (5) // Bottom rotate x * -90 rotate y * 180 #ifdef (Quake2) rotate y * 90 #end #break #end // Move the camera to somewhere in the world. It may also be rotated. translate y * 200 // This spot will be the center of the background. }