POV-Ray : Newsgroups : povray.unofficial.patches : Problem with MegaPOV 0.7 (broken since 0.6A) : Re: Problem with MegaPOV 0.7 (broken since 0.6A) Server Time
1 Sep 2024 20:17:31 EDT (-0400)
  Re: Problem with MegaPOV 0.7 (broken since 0.6A)  
From: John M  Dlugosz
Date: 14 Mar 2001 19:38:09
Message: <3ab00ef1$1@news.povray.org>
> To port color_maps/pigment_maps/whatever_maps from the old (clipped)
noise3D
> to the new (scaled) version, divide all map indices by 2 and add 0.25.
For
> example,
>
> color_map{
>     [.2 rgb 1]
>     [.5 rgb <1,1,0>]
>     [.7 rgb <0,0,1>]
> }
>
> becomes
>
> color_map{
>     [.35 rgb 1]
>     [.5  rgb <1,1,0>]
>     [.6  rgb <0,0,1>]
> }
>
> --
> Mark

Something is still amiss -- it still looks the "broke" way.  It seems odd
that the range 0-1 in the original maps to 0.25-0.75 in the new, so what
happens when the function returns something outside that range?  It will
give the first or last value in the map.

If the conversion is really supposed to go the other way, I don't know what
to do with the parts of the map that spill outside the legal range.

--John

==========

Changed T_Stone9 as follows: (the marble map is unchanged, the granite map
changed like so)

old:
    #declare T_Grnt9 =
    texture {
    pigment
     {granite
      turbulence 0.6
      color_map
       {[0.000, 0.154   color rgbf <0.894, 0.886, 0.886, 0.000>
                        color rgbf <0.745, 0.745, 0.753, 0.000>]
        [0.154, 0.308   color rgbf <0.745, 0.745, 0.753, 0.000>
                        color rgbf <0.902, 0.902, 0.859, 0.000>]
        [0.308, 0.444   color rgbf <0.902, 0.902, 0.859, 0.000>
                        color rgbf <0.729, 0.706, 0.694, 0.000>]
        [0.444, 0.615   color rgbf <0.729, 0.706, 0.694, 0.000>
                        color rgbf <0.588, 0.592, 0.635, 0.000>]
        [0.615, 0.803   color rgbf <0.588, 0.592, 0.635, 0.000>
                        color rgbf <0.608, 0.616, 0.659, 0.000>]
        [0.803, 1.001   color rgbf <0.608, 0.616, 0.659, 0.000>
                        color rgbf <0.894, 0.886, 0.886, 0.000>]
       }
     }

new:
    ...
       {[0.000, 0.327   color rgbf <0.894, 0.886, 0.886, 0.000>
                        color rgbf <0.745, 0.745, 0.753, 0.000>]
        [0.327, 0.404   color rgbf <0.745, 0.745, 0.753, 0.000>
                        color rgbf <0.902, 0.902, 0.859, 0.000>]
        [0.404, 0.472   color rgbf <0.902, 0.902, 0.859, 0.000>
                        color rgbf <0.729, 0.706, 0.694, 0.000>]
        [0.472, 0.5575   color rgbf <0.729, 0.706, 0.694, 0.000>
                        color rgbf <0.588, 0.592, 0.635, 0.000>]
        [0.5575, 0.6515   color rgbf <0.588, 0.592, 0.635, 0.000>
                        color rgbf <0.608, 0.616, 0.659, 0.000>]
        [0.6515, 0.7505   color rgbf <0.608, 0.616, 0.659, 0.000>
                        color rgbf <0.894, 0.886, 0.886, 0.000>]
       }
     }


Post a reply to this message

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