POV-Ray : Newsgroups : povray.advanced-users : Pigment functions... : Re: Pigment functions... Server Time
6 Oct 2024 13:18:00 EDT (-0400)
  Re: Pigment functions...  
From: Samuel Benge
Date: 12 Sep 2006 23:14:59
Message: <450777b3$1@news.povray.org>
Kenneth wrote:
> Samuel Benge <stb### [at] hotmailcom> wrote:
> 
>> Does this help? It's approximated using the default assumed_gamma, and
>> may not be perfect, but it's a start:
>>
> 
> So THAT'S how it's done. Thanks, Samuel.  VERY useful.

Your welcome!

> The color_map entry [0 rgb 0] is kind of a mystery to me, though.
> What does color_map{[0 rgb 0][1 rgb x*1.55]}, for example, actually tell
> POV-Ray to do, in this case? (I do understand the x*1.55 part.)

An image has three color channels which range between 0 & 255.  All the 
color_map is telling POV to do is to apply a color range from 0 to 1.55 
(255*1.5)for the red channel. All the channels are combined to make a 
complete rgb image.

~Sam


Post a reply to this message

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