POV-Ray : Newsgroups : povray.advanced-users : Reproducing pigment from functions ... : Re: Reproducing pigment from functions ... Server Time
29 Jul 2024 12:29:53 EDT (-0400)
  Re: Reproducing pigment from functions ...  
From:
Date: 10 Apr 2002 09:45:08
Message: <dcf8bu4dmj97i0pp75r9rrb0559doesk0j@4ax.com>
On Wed, 10 Apr 2002 14:12:15 +0100, Michael Andrews <m.c### [at] readingacuk>
wrote:
>#declare REBUILD = pigment {
>  average
>  pigment_map {
>    [1 function { FNPIG(x,y,z).x } colour_map {[0 rgb 0][1 rgb 3*x]} ]
>    [1 function { FNPIG(x,y,z).y } colour_map {[0 rgb 0][1 rgb 3*y]} ]
>    [1 function { FNPIG(x,y,z).z } colour_map {[0 rgb 0][1 rgb 3*z]} ]
>  }
>}
>
>but with filter, transmit or colours with values greater than one this
>doesn't work.

have you teste below ? I'm not sure but I think it should work

#declare REBUILD = pigment {
  average
  pigment_map {
    [1 function { FNPIG(x,y,z).red } colour_map {[0 rgb 0][1 red 5]} ]
    [1 function { FNPIG(x,y,z).green } colour_map {[0 rgb 0][1 green 5]} ]
    [1 function { FNPIG(x,y,z).blue } colour_map {[0 rgb 0][1 blue 5]} ]
    [1 function { FNPIG(x,y,z).filter } colour_map {[0 rgb 0][1 filter 5]} ]
    [1 function { FNPIG(x,y,z).transmit } colour_map {[0 rgb 0][1 transmit 5]} ]
  }
}

ABX


Post a reply to this message

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