POV-Ray : Newsgroups : povray.newusers : color of an image map Server Time
4 Nov 2024 17:37:58 EST (-0500)
  color of an image map (Message 1 to 3 of 3)  
From: kurtz le pirate
Subject: color of an image map
Date: 11 Dec 2004 12:39:59
Message: <kurtzlepirate-8E8FE7.18395911122004@news.povray.org>
hello,

is there a method to get the color (rgb values) of a point in an object
where is pigment is an image_map ?

thanks
klp


Post a reply to this message

From: Florian Brucker
Subject: Re: color of an image map
Date: 12 Dec 2004 16:05:41
Message: <41bcb2a5@news.povray.org>
> is there a method to get the color (rgb values) of a point in an object
> where is pigment is an image_map ?

Most simple way is probably to create a pigment of the image_map and use 
eval_pigment from functions.inc on it.
(See http://www.povray.org/documentation/view/3.6.1/449/)


HTH,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: kurtz le pirate
Subject: Re: color of an image map
Date: 13 Dec 2004 14:03:07
Message: <kurtzlepirate-766E2D.20030713122004@news.povray.org>
In article <41bcb2a5@news.povray.org>,
 Florian Brucker <tor### [at] torfboldcom> wrote:

>>Most simple way is probably to create a pigment of the image_map and use 
>>eval_pigment from functions.inc on it.
>>(See http://www.povray.org/documentation/view/3.6.1/449/)


  thanks florian, eval_pigment() works perfect !


Post a reply to this message

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