POV-Ray : Newsgroups : povray.advanced-users : How to make my own 3D pigment? : Re: How to make my own 3D pigment? Server Time
26 Jun 2024 08:37:20 EDT (-0400)
  Re: How to make my own 3D pigment?  
From: Lars R 
Date: 23 Jun 2011 02:35:32
Message: <4e02deb4$1@news.povray.org>
>  If I understood it correctly, I think the "average" pattern should help
> there: create 3 separate pigments for each function, then use a
> pigment_map to average them together.

AFAIK the pigment_maps have to be nested:

the outermost pigment is i.e. 'gradient z' and it pigment_map maps from
the "black/red/green/yellow" pigment of the front xy face to the
"blue/magenta/cyan/white" pigment of the back xy face.

The two 4-color pigments are created the same way:

A gradient in y direction to merge from "black/red" at the bottom to
"green/yellow" at the top => Front face pigment.

A second gradient in y direction to merge from "blue/magenta" at the
bottom to "cyan/white" at the top => back face pigment.

And finally, each of the four vertical ramps are "gradient x" from "left
color" to "left color + red".

Do I got it?

			Lars R.


Post a reply to this message

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