POV-Ray : Newsgroups : povray.general : POV-Lab: plans and discussions : Re: POV-Lab: plans and discussions Server Time
4 May 2024 05:46:34 EDT (-0400)
  Re: POV-Lab: plans and discussions  
From: Bald Eagle
Date: 12 Feb 2023 13:50:00
Message: <web.63e9348c1a3112301f9dae3025979125@news.povray.org>
and then to shift the color values around in a non-linear mapping, just paste:

//  Modify color map index
  //#local NewIndex =  pow (NewIndex, 2);  // squared
  //#local NewIndex =  pow (NewIndex, 0.5);  // sqrt
  #local NewIndex =  sin (NewIndex * pi/2);



right below
#local NewIndex =  ReMap (Min, Max, 0, 1, OldIndex);

in macro FixColorMapArray.


Enjoy!


Post a reply to this message


Attachments:
Download 'remapcolormap.png' (50 KB)

Preview of image 'remapcolormap.png'
remapcolormap.png


 

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