POV-Ray : Newsgroups : povray.advanced-users : Using images in density-medias? : Re: Using images in density-medias? Server Time
29 Jul 2024 20:16:08 EDT (-0400)
  Re: Using images in density-medias?  
From: Christopher James Huff
Date: 7 Feb 2002 08:56:39
Message: <chrishuff-10CAED.08583807022002@netplex.aussie.org>
In article <3C602B2E.39A4AA9F@gmx.de>, Tim Nikias <tim### [at] gmxde> 
wrote:

> Before, all I did, was use image-map right inside
> the density-statement, but I don't get it to work.

POV 3.5 doesn't support that feature (I wonder when it got added to 
MegaPOV?), but you should still be able do it this way...

#declare imgFn = function {pigment {image_map {...}}}

density {average
    density_map {
        [1 function {imgFn(x, y, z).red}
            color_map {[0 rgb 0] [1 red 3]}]
        [1 function {imgFn(x, y, z).green}
            color_map {[0 rgb 0] [1 green 3]}]
        [1 function {imgFn(x, y, z).blue}
            color_map {[0 rgb 0] [1 blue 3]}]
    }
}

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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