POV-Ray : Newsgroups : povray.binaries.images : Objets d'art: le carde, le sphère (44+46+44kbbu) : Re: Objets d'art: le carde, le sphère (44+46+44kbbu) Server Time
1 Oct 2024 07:22:19 EDT (-0400)
  Re: Objets d'art: le carde, le sphère (44+46+44kbbu)  
From: David Fontaine
Date: 4 Sep 2000 15:56:59
Message: <39B3FE8A.4A4FFC57@faricy.net>
Sigmund Kyrre Aas wrote:

> I like these! How did you make them?

Thankies!
360 fisheye camera
randomly generated, randomly positioned objects
coloration done via HLS distribution functions

For example
   box {
      <rand(Rnd),rand(Rnd),rand(Rnd)>,
      <rand(Rnd),rand(Rnd),rand(Rnd)>
      translate rand(Rnd)*z
      rotate <rand(Rnd),rand(Rnd),rand(Rnd)>*360
      pigment {
         color HLStoRGB(
            <rand(Rnd)*70+260,
            rand(Rnd)*.5+.25,
            1-pow(rand(Rnd),2)>
         )
         transmit rand(Rnd)
      }
      #declare Amb = rand(Rnd);
      finish {
         diffuse 1-Amb
         ambient Amb
         reflection rand(Rnd)*.8
         conserve_energy
      }
      interior { ior 1.25 }
   }

--
David Fontaine   <dav### [at] faricynet>   ICQ 55354965
Please visit my website:  http://davidf.faricy.net/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.