|
![](/i/fill.gif) |
> Warp<war### [at] tag povray org> wrote:
>> D103<nomail@nomail> wrote:
>>> The disc had a pigment map, which started of as white, changed to yellow about
>>> half way, and then faded to transparency. It also had an ambient of 1, and was
>>> at the same position as the light source. When rendered the disc showed up as
>>> pure white, even when I reversed the pigment map.
>>
>> What pigment map, exactly? (Better yet: Show us the entire object
>> definition.)
>>
>> --
>> - Warp
>
> Here are the relevant objects :
>
> #declare LiPo =<-2000, 250, 0>;
> sphere { LiPo, 100 hollow pigment { Clear } interior { media { scattering { 1, 1
> } density { spherical density_map { [ 0 rgb 1 ] [ 0.25 rgbt<1, 1, 0.5, 0.5> ] [
> 1 rgbt 1 ] } } } } }
>
That media is white at the origin (absolute location <0,0,0>), shifting
to light yellow at 0.25 unit radius, then back to white at 1 unit and
stay white everywhere. The sphere is not centered at the origin, the
non-white part of the pattern is totaly outside the sphere.
> I have enabled radiosity with media on for this scene.
>
>
> D103
>
>
Radiosity have no effect on the media. "media on" in the radiosity block
enable the media to affect it's surrounding.
Why do you use rgbt in your density map? rgbt 1 acts like rgb 1.
I'd use simply this:
sphere { 0, 1 // unit sphere at the origin
hollow pigment { Clear }
interior { media { scattering { 1, 1}
density {
spherical density_map { [ 0 rgb 1 ] [ 0.75 rgb <1, 1, 0.5> ] [1 rgb 1
] } } } }
// NO transmit as it don't work for media
scale 100 // Scale up to desired dimention
translate LiPo // Finaly, place it where you want it.
}
Alain
Post a reply to this message
|
![](/i/fill.gif) |