POV-Ray : Newsgroups : povray.newusers : about media : Re: about media Server Time
29 Jul 2024 02:23:18 EDT (-0400)
  Re: about media  
From: RusHHouR
Date: 2 Jan 2007 16:00:01
Message: <web.459ac7594c020cda47d3ae5e0@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> RusHHouR nous apporta ses lumieres en ce 01-01-2007 05:34:
> > Hi!
>
> > Im doing a dark alleyway scene, and im experimenting with media a bit...
>
> > http://img132.imageshack.us/img132/4606/alley2ru4.jpg
>

> > want these "clouds" that appear, probably as a result of the density
> > thing..
>
> > If you got any tips, please help me.
> > /rush
>
>
> > ----------the media code-----------
> > media {    // atmospheric media sample
> >   intervals 10   //10
> >   scattering { 1, 0.05 extinction 0.5  }
> >   density {
> >         bumps
> >         frequency 2            // <- add this line
> >     color_map {
> >       [0.00 color Gray20]
> >       [0.50 color Gray40]
> >       [1.00 color Gray20]
> >     }
> > }
> >   samples 1, 10
> >   confidence 0.9999
> >   variance 1/1000
> >   ratio 0.9 //0.9
> > }
>
>
>
>
> One thing that you can do, is to contain your media in some container. In your
> case, a cone with the sumit slightly over the light and a bit larger than the
> light's cone would probably do nice.
> As a side bonus, it would render faster as the media will now only be computed
> where it's visible.
> cone{<0,10,0>,0,0,Light_radius+0.1//adjust dimentions and translate as needed
>  pigment{rgbt 1}//perfectly transparent
>  hollow//so it can contain the media. It's the only use of that keyword.
>  interior{Your_media}
>  }
>
> --
> Alain
> -------------------------------------------------
> If you're ever about to be mugged by a couple of clowns, don't hesitate - go for
> the juggler.





Its not harder than that?!
Kewl! And rendering times _were_ getting outta hand...

Thanks!


Post a reply to this message

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