|
![](/i/fill.gif) |
Hi folks,
I'm trying to update one of my old POVray files that used 'halo' to
work with 3.1 using media. The original halo block looked like...
halo {
emitting
spherical_mapping
linear
turbulence 1.5
color_map {
[ 0.0 color rgbt <1, 0, 0, 1> ]
[ 0.5 color rgbt <1, 1, 0, -2> ]
[ 1.0 color rgbt <1, 0, 0, 1> ]
}
frequency 2
samples 20
scale 0.3
}
And I've got so far as using the following media...
interior {
media {
emission rgb<1, 1, 1>
density {
spherical
turbulence 1.5
color_map {
[ 0.0 rgbt <1, 0, 0, 1> ]
[ 0.5 rgbt <1, 1, 0, -2> ]
[ 1.0 rgbt <1, 0, 0, 1> ]
}
// frequency 2
scale 0.3
}
// samples 20,20
}
}
But the problem I'm having is that with the original halo, the color_map
gave me a graduation from 'completely transparent red' (ie. black if viewed
on a black surface) to yellow and back again.
Where as with the media, I'm getting red to yellow to red. i.e It's
ignoring the transparency completely, and I get a mainly red sphere
rather than a mainly transparent one.
Am I doing something silly?
Cheers,
--
Jonathan Hunt
jon### [at] xlcus co uk
Post a reply to this message
|
![](/i/fill.gif) |