POV-Ray : Newsgroups : povray.unofficial.patches : UberPOV is back : Re: UberPOV is back Server Time
7 Dec 2022 17:37:53 EST (-0500)
  Re: UberPOV is back  
From: clipka
Date: 28 Aug 2016 00:05:16
Message: <57c262fc$1@news.povray.org>
Am 27.08.2016 um 21:13 schrieb William F Pokorny:

> 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?

I don't see any obvious reason either, but I've learned that doesn't
mean anything, especially when talking about the parser. There might be
something dark and sinister lurking in the depths.

I'd feel a lot more compfortable if, for the time being, you'd just
enable `image_map` in `density{}` statements.


Post a reply to this message

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