POV-Ray : Newsgroups : povray.newusers : Looking for Full RGB color spectrum for my media density file. : Re: Looking for Full RGB color spectrum for my media density file. Server Time
25 Apr 2024 22:42:11 EDT (-0400)
  Re: Looking for Full RGB color spectrum for my media density file.  
From: Alain
Date: 21 Dec 2015 20:13:09
Message: <5678a3a5$1@news.povray.org>

> I am looking for color map that maps the deepest red at 0 value of my density
> file and then works to green at .5 value and then works to deepest blue at the 1
> value of my density file.
>
> The kind of color map that you would use for a rain weather map.  I have worked
> enough with colors to know that what I am looking for sounds easy, but might not
> be easy at all.  RGB colors are kind of tricky.
>
> The pov code below is an example of my format, but does not have the right color
> map.
>
>

Why is your color_map so complexe? Why do you think that you need those 
black stripes? Why do you repeat the sequence 
black-blue-black-green-black-red 8 times?
Why don't you keep it simple?

How about this?

color_map{
  [0.00   rgb<0,0,1>]
  [0.97/2 rgb<0,1,0>]
  [0.97   rgb<1,0,0>]
  [1.00   rgb 1]
}

Or

color_map{
  [0.0      rgb<0,0,1>]
  [0.97/4   rgb<0,1,1>]
  [0.97/2   rgb<0,1,0>]
  [0.97*3/4 rgb<1,1,0>]
  [0.97     rgb<1,0,0>]
  [1.0      rgb 1]
}

You may also try substituting srgb in place of rgb to use the sRGB 
colour space instead of the linear colour space used with plain RGB values.


Alain


Post a reply to this message

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