POV-Ray : Newsgroups : povray.newusers : about media Server Time
31 Oct 2024 23:28:48 EDT (-0400)
  about media (Message 1 to 4 of 4)  
From: RusHHouR
Subject: about media
Date: 1 Jan 2007 05:35:01
Message: <web.4598e3a2fb205ac747d3ae5e0@news.povray.org>
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
}


Post a reply to this message

From: RusHHouR
Subject: Re: about media
Date: 1 Jan 2007 06:45:00
Message: <web.4598f3794c020cda47d3ae5e0@news.povray.org>
Well... setting all the colors in the color map to the same did the trick...
Probably not the A+ way to do it, but who can tell on the outcome.. ;)


Post a reply to this message

From: Alain
Subject: Re: about media
Date: 1 Jan 2007 12:00:30
Message: <45993e2e@news.povray.org>
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.


Post a reply to this message

From: RusHHouR
Subject: Re: about media
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.