POV-Ray : Newsgroups : povray.binaries.images : Atmospheric Media Example Server Time
18 Nov 2024 16:19:26 EST (-0500)
  Atmospheric Media Example (Message 1 to 5 of 5)  
From: Bryan Valencia
Subject: Atmospheric Media Example
Date: 13 Jul 2005 14:13:37
Message: <42d559d1$1@news.povray.org>
I think I'm finally getting a handle on this scattering media stuff.

Is there a way to use media to make water raining down from the slots above,
or do I need to make a raindrop macro and millions of droplets?


Post a reply to this message


Attachments:
Download 'AtmosphericMedia1.jpg' (55 KB)

Preview of image 'AtmosphericMedia1.jpg'
AtmosphericMedia1.jpg


 

From: Slime
Subject: Re: Atmospheric Media Example
Date: 13 Jul 2005 16:45:27
Message: <42d57d67@news.povray.org>
> Is there a way to use media to make water raining down from the slots
above,
> or do I need to make a raindrop macro and millions of droplets?


Rain is difficult for a few reasons. Each raindrop needs to have a surface
to properly refract light, which means media alone won't produce the correct
result. Even then, in order for that surface to produce the proper light
reflections and refractions, you need to have enough samples on the raindrop
(anti aliasing can help here). On top of all that, for really realistic
rain, you probably need motion blur, too. You can always fake this with a
cylinder instead of a sphere for each drop, but it's hard to make that work
with refraction if you want to make it "transparent" towards the top and
bottom of the cylinder.

You can *try* media with some sort of density pattern to form the separate
rain drops, but I'm not sure how well it will work.

Regarding your image: It's a good image, but the lighting is hurting it IMO.
It looks very uniformly lit, and there are unexpected sharp shadows from the
pipes (I take it there are invisibly light sources floating around
somewhere). I'd like to say that you should rely on radiosity for the
lighting, but there are so few sources of light that that would probably be
very slow and cause artifacts. So here's what I recommend:

 - Make the sun and sky much brighter. If we're in a dark tunnel, our eyes
would be adjusted to the dark and the sky wouldn't look grey like it does.
Both the sky and the light hitting the floor would be very bright, so I
recommend bringing that up.
 - Make sure to use a very low ambient value; you can't rely on ambient when
your entire scene is lit by ambient light. You'll have to fake the ambient
lighting on your own:
 - The three main sources of light in this scene are the opening in the far
back, the slits on top, and the light bouncing off the floor from where it
hits on bottom. In each of those places (the door in back, the three
openings on top, the three places light falls on the floor and maybe some
more places off screen), create a large area_light that covers the source.
You may have to use light_groups to make sure that, for instance, the area
lights near the floor don't light up the floor. (Another possibility is to
give the floor no_shadow and put the area light underneath it.) Use a lot of
samples for the area lights, since the point is to get very soft lighting.
This may be slow, but it will probably be faster than relying on radiosity
alone. Also be sure to turn off media interaction with these area lights.
 - Finally, you might try adding radiosity on top of all this to increase
realism and get more variations between well-lit and poorly-lit areas.

You do seem to have a good handle on the media!

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Alain
Subject: Re: Atmospheric Media Example
Date: 13 Jul 2005 20:01:11
Message: <42d5ab47$1@news.povray.org>
Bryan Valencia nous apporta ses lumieres en ce 2005-07-13 14:13:
> I think I'm finally getting a handle on this scattering media stuff.
> 
> Is there a way to use media to make water raining down from the slots above,
> or do I need to make a raindrop macro and millions of droplets?
> 
> 
> 
If you don't care about reflections and refraction from the water droplets, try a
crackle pattern 
for the media density. Use a pigment_map like [0.5 rgb 0][0.8 rgb 10] and use a
relatively small 
scale, like 0.05 or less (what looks best in your case). This will create a media
whose density is 
zero almost evarywhere, with small blury areas of high density. You can scale unevenly
and use some 
rotation to make "rain" that fall with an angle.
You will need a prety high samples count to get good results, probably more than 500!
and a small 
move of the camera can have large effect. Using jitter in the media can make 2
consecutive renders 
of exactly the same scene apear quite different due to the purely random aspect of the
jitter.

Alain


Post a reply to this message

From: Joanne Simpson
Subject: Re: Atmospheric Media Example
Date: 14 Jul 2005 01:05:01
Message: <web.42d5f1c7ff05731a500142a10@news.povray.org>
I have tried a lot of different techniques to simulate rain, include lots of
little drops, media, isosurfaces, etc. In my image for the IRTC
"catastrophe" round, I used a combination of techniques to simulate heavy
rain that you might find useful. Source files are there too.

(http://www.irtc.org/ftp/pub/stills/2005-04-30/irtc0504.jpg)

I think the key things to keep in mind are:
* water acts like a lens, so you need it to refract light
* water falling on hard surfaces will bounce back up and so you need
scattered particles
* things in the rain are wet and will be shiny
* rain will cascade over roofs and overhangs.

Anyway, have a look.

Joanne
http://www.onewhiteraven.com


Post a reply to this message

From: Slime
Subject: Re: Atmospheric Media Example
Date: 14 Jul 2005 01:39:41
Message: <42d5fa9d$1@news.povray.org>
> * things in the rain are wet and will be shiny

This reminded me: Gilles Tran's "A Wet Bird" did a great job of using this
fact, plus a little fog and an umbrella, to make a scene look rainy without
actually having any raindrops.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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