POV-Ray : Newsgroups : povray.advanced-users : Using images in density-medias? Server Time
29 Jul 2024 18:24:13 EDT (-0400)
  Using images in density-medias? (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Using images in density-medias?
Date: 5 Feb 2002 18:22:31
Message: <3c606937@news.povray.org>
Tim Nikias <tim### [at] gmxde> wrote:
: It does create some sort of emission, based on the calculated grayness
: of a colored pixel, but the colors get lost. That's not the behaviour of
: POV-Ray 3.1g, and probably MegaPOV (I don't use MegaPOV).

  When I try to render a scene like that in povray 3.1g, it says:

error: Keyword 'image_map' can only be used in a pigment statement.

  In MegaPov it works, though.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Tim Nikias
Subject: Re: Using images in density-medias?
Date: 6 Feb 2002 00:41:30
Message: <3C60C1F2.761C8F7D@gmx.de>
>
>   When I try to render a scene like that in povray 3.1g, it says:
>
> error: Keyword 'image_map' can only be used in a pigment statement.
>
>   In MegaPov it works, though.

Thats the error I meant. Someone suggested using image_pattern,
and that gives only gray-scale media from the image.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: RAY
Subject: Re: Using images in density-medias?
Date: 6 Feb 2002 23:45:39
Message: <3c620673$1@news.povray.org>
> I wanted to create an emission-media which actually uses
> an image as base, simulating a glowing image.
color_map your emmision media!


Post a reply to this message

From: Christopher James Huff
Subject: Re: Using images in density-medias?
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

<<< Previous 10 Messages Goto Initial 10 Messages

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