POV-Ray : Newsgroups : povray.advanced-users : image_map and eval_pigment : Re: image_map and eval_pigment Server Time
24 Apr 2024 21:30:55 EDT (-0400)
  Re: image_map and eval_pigment  
From: Leroy
Date: 6 Dec 2016 14:20:01
Message: <web.58470e37f8a7e8a8c6bb200e0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> clipka <ano### [at] anonymousorg> wrote:
>
> > Well, what is the problem (in terms of symptoms) then?
>
> I get nothing but <0, 0, 0> as a result from the way I post it here - but when I
> use TdG's macro which uses trace() and then passes the position to
> eval_pigment(), somehow THAT works....
>
> I also have a bit of back pain right between the shoulder blades.   :D
>
> My results seem to indicate some type of Black Magic at work - maybe someone can
> borrow my code to emit darkness in a scene .... ;)

I think this is the problem
declare Shade = eval_pigment (Picture, <PosX, PosY, 0>);

PosX and PosY are the size of Picture in pixels
but the image_map is always 0,0 to 1,1


Post a reply to this message

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