home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 44
/
Amiga_Dream_44.iso
/
Amiga
/
pov
/
pov3.0
/
pov3c.lha
/
POVRAY3
/
POV3DEMO
/
OTHER
/
GRIDLOOP.POV
< prev
next >
Wrap
Text File
|
1996-11-07
|
876b
|
33 lines
// Persistence Of Vision Raytracer version 3.0 sample file.
// GRIDLOOP.POV
// Demonstrates nested looping (for/next loop, the hard way)
#version 3.0
global_settings { assumed_gamma 2.2 }
#include "colors.inc"
#include "textures.inc"
camera {
location <0, 0, -20>
up <0,1,0>
direction z
right x* 4/3
look_at <0, 0, 0>
}
light_source { <0, 35, -25> White }
#declare XSIZE = 10
#declare YSIZE = 10
#declare I = -YSIZE /2 // initialize I
#while (I <= YSIZE /2) // for I =
#declare J= -XSIZE /2 // initialize J
#while (J <= XSIZE /2) // for J =
sphere { <I,J,0>, 0.5 pigment { White } }
#declare J=J+1 // next J
#end
#declare I=I+1 // next I
#end