POV-Ray : Newsgroups : povray.general : deforming a texture on a mesh : Re: deforming a texture on a mesh Server Time
29 Jul 2024 20:16:16 EDT (-0400)
  Re: deforming a texture on a mesh  
From: clipka
Date: 3 Sep 2010 07:08:50
Message: <4c80d742$1@news.povray.org>
Am 03.09.2010 11:54, schrieb esterichia:

>> #macro FROM_BLACK(COLOR)
>> color_map
>> {
>>     [0 color rgb 0]
>>     [1 color COLOR]
>> }
>> #end
>
> This works but the colors are very dark. I thought I should use some other
> color_map, like
> [0 color rgb 0]
> [0.5 color COLOR]
> [1 color rgb 1]
> but this is not the case. Do I have to change the color_map?

The problem is that they are averaged instead of added; you'll need to 
multiply the colour by a factor of 3:

  [0 color rgb 0]
  [1 color COLOR * 3]


Post a reply to this message

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