POV-Ray : Newsgroups : povray.binaries.images : Bezier pigment colours : Re: Bezier pigment colours Server Time
2 Oct 2024 06:25:03 EDT (-0400)
  Re: Bezier pigment colours  
From: Margus Ramst
Date: 2 Jun 2000 21:41:36
Message: <3938542B.7BD55CD1@peak.edu.ee>
Tor Olav Kristensen wrote:
> 
> Any comments ?
>

I'd like to see some way to specify color_map indices in the macro call.
Perhaps have the macro take an array as a parameter. Something like:

array[6][Number of indices]
{
{Position, StartP, StartV, EndP, EndV, Nr_of_entries},
{Position, StartP, StartV, EndP, EndV, Nr_of_entries},
...
}

> Are there other ways to get smooth transitions
> between colours in a color_map ?
> 

MegaPOV has built-in spline functions. They work very much like your
macro, but IIRC only linear and cubic splines are supported. The basic
method would still have to be the same, though.

Margus


Post a reply to this message

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