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
19 Apr 2024 22:47:00 EDT (-0400)
  Re: Looking for Full RGB color spectrum for my media density file.  
From: sirzerp
Date: 23 Dec 2015 15:15:18
Message: <web.567b001f1d62f6e725a5dca20@news.povray.org>
Thank for your answer, I will try it.  The reason that the first color scheme is
so complex is that I plot out equal potential contours of EM fields.

Continuous volumes of the same color have the save value in the density file.

Here's an example done with pov-ray.

https://youtu.be/nUsZniD6alA




Alain <kua### [at] videotronca> wrote:

> > 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.