![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Here's my latest render. The scene uses two media for the sky: one for
the clouds and one for the haze. Either one of them by itself renders
pretty fast, but together they cause the render to take a *really* long
time.
-Mike
Post a reply to this message
Attachments:
Download 'gh_scene_outdoors_cubemap_atmos_gamma_b.png' (533 KB)
Preview of image 'gh_scene_outdoors_cubemap_atmos_gamma_b.png'
![gh_scene_outdoors_cubemap_atmos_gamma_b.png](/povray.binaries.images/attachment/%3C4aa30e68%40news.povray.org%3E/gh_scene_outdoors_cubemap_atmos_gamma_b.png?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
SharkD a écrit :
> Here's my latest render. The scene uses two media for the sky: one for
> the clouds and one for the haze. Either one of them by itself renders
> pretty fast, but together they cause the render to take a *really* long
> time.
>
> -Mike
>
> ------------------------------------------------------------------------
>
Are they overlaping or sharing the same container?
I'd try with containers that are distinct, with some gap between them.
That way, you compute one media, them, somewhat further, you compute the
other one. The haze could easily use a low samples value, like samples
3, while the clouds will use a larger samples value, like samples 30.
Alain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Alain wrote:
> Are they overlaping or sharing the same container?
>
> I'd try with containers that are distinct, with some gap between them.
> That way, you compute one media, them, somewhat further, you compute the
> other one. The haze could easily use a low samples value, like samples
> 3, while the clouds will use a larger samples value, like samples 30.
They each use their own container. The smaller container is inside the
larger. If it makes the scene render faster, I would like to change them
so they use the same container. Not sure how to go about doing this
though. I also don't want to make them use distinct volumes. Their media
should "add".
-Mike
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
SharkD a écrit :
> Alain wrote:
>> Are they overlaping or sharing the same container?
>>
>> I'd try with containers that are distinct, with some gap between them.
>> That way, you compute one media, them, somewhat further, you compute
>> the other one. The haze could easily use a low samples value, like
>> samples 3, while the clouds will use a larger samples value, like
>> samples 30.
>
> They each use their own container. The smaller container is inside the
> larger. If it makes the scene render faster, I would like to change them
> so they use the same container. Not sure how to go about doing this
> though. I also don't want to make them use distinct volumes. Their media
> should "add".
>
> -Mike
This forces both medias to use the same number of samples.
Also, the sampling for the clouds probably continue into the haze media.
To use only one container, you'll need to add another density pattern.
One media with a single density for the haze.
One media with two densities for the clouds. The new pttern can be
"planar" with a map similar to: (added in the cloud's media block)
density{planar {color_map{ [0 rgb 0][0.02 rgb 1] }}}
To have the clouds go sharply from invisible to full density.
Two media in a container add.
A media with two densities multiply the densities.
Alain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Alain wrote:
> This forces both medias to use the same number of samples.
> Also, the sampling for the clouds probably continue into the haze media.
>
> To use only one container, you'll need to add another density pattern.
>
> One media with a single density for the haze.
> One media with two densities for the clouds. The new pttern can be
> "planar" with a map similar to: (added in the cloud's media block)
> density{planar {color_map{ [0 rgb 0][0.02 rgb 1] }}}
> To have the clouds go sharply from invisible to full density.
>
> Two media in a container add.
> A media with two densities multiply the densities.
>
>
> Alain
Actually I am using concentric spheres. The media attached to the
smaller sphere uses an onion pattern, so I'll need to figure out how to
limit it to just the assigned area instead of repeating.
-Mike
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Here is the media for the cloud sphere, which is the inner of the two
volumes. What I need is to be able to "clip" the media to "InnerRadius"
and "OuterRadius" so that I can then simply copy/move the media to the
larger atmosphere sphere.
-Mike
//BEGIN
#local InnerRadius = EarthRadius + CloudMinRad;
#local OuterRadius = InnerRadius + CloudMaxRad;
#local BoundRadius = sin(acos(EarthRadius/OuterRadius)) * OuterRadius;
#local ScaleAmount = Width/2;
// #local testpattern = function {mod(sqrt(Sqr(X) + Sqr(Y) + Sqr(Z)), 1.0)}
#local CloudPigment = pigment
{
average
pigment_map
{
[2 onion scale CloudMaxRad/ScaleAmount phase
-mod(OuterRadius,CloudMaxRad)/CloudMaxRad/ScaleAmount]
[2 granite scale 1024 * 32/ScaleAmount]
}
}
#local CloudMedia = media
{
scattering {1, 0.5 * 1/ScaleAmount / 320}
method 3
intervals 1
// samples 30 //30, 100
samples 4
density
{
pigment_pattern {CloudPigment}
density_map {[0.60 rgb 0][0.61 rgb 1]}
}
}
#local CloudSphere = difference
{
sphere {0, OuterRadius}
sphere {0, InnerRadius}
bounded_by {cylinder {<0,EarthRadius,0,>, <0,OuterRadius,0,>,
BoundRadius}}
hollow
material
{
texture {pigment {rgbt 1}}
interior
{
media {CloudMedia}
}
scale ScaleAmount
}
translate -y * EarthRadius
}
//END
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
SharkD a écrit :
> Alain wrote:
>> This forces both medias to use the same number of samples.
>> Also, the sampling for the clouds probably continue into the haze media.
>>
>> To use only one container, you'll need to add another density pattern.
>>
>> One media with a single density for the haze.
>> One media with two densities for the clouds. The new pttern can be
>> "planar" with a map similar to: (added in the cloud's media block)
>> density{planar {color_map{ [0 rgb 0][0.02 rgb 1] }}}
>> To have the clouds go sharply from invisible to full density.
>>
>> Two media in a container add.
>> A media with two densities multiply the densities.
>>
>>
>> Alain
>
> Actually I am using concentric spheres. The media attached to the
> smaller sphere uses an onion pattern, so I'll need to figure out how to
> limit it to just the assigned area instead of repeating.
>
> -Mike
In that case, you can use the spherical pattern, scaled and with a
color_map set to only have a shell.
something like:
density{spherical scale 1000 color_map{[0 rgb 0][0.0000001 rgb 1][0.001
rgb 1][0.0010001 rgb 0]}}
Alain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Sven Littkowski
Subject: Re: Assumed_gamma, too bright and washed out
Date: 13 Sep 2009 03:08:05
Message: <4aac9a55$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
How did you do the glass spheres? Can you give me the code for them? Thanks.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Sven Littkowski wrote:
> How did you do the glass spheres? Can you give me the code for them? Thanks.
I *think* this is where I got them from:
http://www.interq.or.jp/blue/kawashu/
-Mike
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Sven Littkowski
Subject: Re: Assumed_gamma, too bright and washed out
Date: 13 Sep 2009 22:15:30
Message: <4aada742$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hmm... I just checked it out, maybe not good enough. i couldn't see these
glass spheres there. Sure it's from there? I just like them!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |