POV-Ray : Newsgroups : povray.general : Interpolating between textures using clock? : Re: Interpolating between textures using clock? Server Time
27 Nov 2022 19:57:19 EST (-0500)
  Re: Interpolating between textures using clock?  
From: Bald Eagle
Date: 3 Feb 2022 18:45:00
Message: <web.61fc68307de8ac01f9dae3025979125@news.povray.org>
"tutki" <nomail@nomail> wrote:

> Huh, the map indices are allowed to be variable too?? Wow my grasp of SDL is a
> lot weaker than I thought. :-D

Sure - they are just "values".  You can use a variable name, or an equation for
the index.

I will often do things with "lines" or bands of color that I want to control the
spread of across the color map, and I'll define a half-width (hw) of that
region, and then use n-hw and n+hw as index entries.


> > colors.inc has a macro called CHSV2RGB in case the direct rgb variation doesn't
> > provide what you want.
> >
> > https://wiki.povray.org/content/Reference:Colors.inc
>
> Ohh, that looks very useful, thanks!

Sure - color interpolation has been discussed at some length a few times in the
past.   I find the HSV space to be useful since it is continuous in "colors" and
doesn't dip down into the grayscale regions.


Post a reply to this message

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