|
|
On 08/26/2016 09:26 AM, clipka wrote:
> Am 26.08.2016 um 13:45 schrieb William F Pokorny:
>
> Speaking of density files -- since you've been dealing with those
> recently, how would you feel about implementing a 3-channel RGB variant?
> Something akin to `image_map` but in 3D? I have a hunch that some people
> might like to have such a thing, but I currently don't find the time myself.
>
I'll put it on my todo list & certainly think about it.
I reviewed in dome detail what folks have been doing with df3s lately
and submitted a pull request #81 to enable pigment_map use in the
density block.
This will let folks do the image stacking method inside povray with
something like:
#declare PigmR = pigment {
image_map { "Red.png" map_type 0 interpolate 2 } }
#declare PigmY = pigment {
image_map { "Yellow.png" map_type 0 interpolate 2 } }
#declare PigmG = pigment {
image_map { "Green.png" map_type 0 interpolate 2 } }
#declare PigmC = pigment {
image_map { "Cyan.png" map_type 0 interpolate 2 } }
#declare PigmB = pigment {
image_map { "Blue.png" map_type 0 interpolate 2 } }
#declare Object00 = object {
box { <0.45,0.45,0.00>,<0.55,0.55,1.00> }
texture { pigment { rgbt 1 } }
hollow on
interior {
media {
emission 3.00
samples 30
density {
gradient z
pigment_map {
[ 0.0 PigmR ]
[ 0.25 PigmY ]
[ 0.5 PigmG ]
[ 0.75 PigmC ]
[ 1.0 PigmB ]
}
}
}
}
}
I don't see any reason not to allow it & it works in my testing, but I'm
also a bit surprised it was not already enabled in the code?
Bill P.
Post a reply to this message
|
|