POV-Ray : Newsgroups : povray.general : Determining color : Re: Determining color Server Time
1 Aug 2024 04:14:22 EDT (-0400)
  Re: Determining color  
From: Ger
Date: 11 Apr 2006 12:52:14
Message: <443bdebe@news.povray.org>
Trevor G Quayle wrote:

> Ger <No.### [at] ThankYou> wrote:
>> Is it possible to read the color of a certain point in an image_map?
>>
>> Iow, I have an image_map mapped onto a box and I would like to know what
>> the color is when I do a trace() from a point over the box
>>
>>
>> --
>> Ger
> 
> Make a function of the image map and evaluate the function.
> 
> #local PIMAGE = function {
> pigment{image_map {IMAGEMAP}
>  TRANSFORM //scale, translate and rotate to appropriate postion
> }
> 
> #declare COL=PIMAGE(x,y,z);
> 
> 
> -tgq

Works. Thanks.
-- 
Ger


Post a reply to this message

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