Ambient Light Example Code


(set! time 0)

; loop for thirty frames
(while (< time 30)
  (begin

   (world
    (camera "main" "perspective" 'from '(2.5 2 3.5) 
	    'to '(0 1 0) 'fov 45)

    (light "distantlight" 'intensity .5 'from '(0 5 5))
    (separator
     (color '(1 0 0))
     (rotate '90 '(1 0 0))
     (surface "plastic")
     (disk 'radius 20)
     )
    (light "ambientlight" 'intensity (/ time 29))
    (translate '(0 1 0))
    (surface "matte")
    (read-det "skull.obj" "smooth")
   )

   ; set the frame name to "Frames/frame.

Return to lights page
mrl