POV-Ray : Newsgroups : povray.general : trace question : Re: trace question Server Time
19 Apr 2024 23:26:25 EDT (-0400)
  Re: trace question  
From: jr
Date: 10 Sep 2017 15:22:09
Message: <59b590e1$1@news.povray.org>
hi,

On 10/09/2017 16:03, clipka wrote:
> Am 10.09.2017 um 16:01 schrieb Stephen:
>> On 10/09/2017 14:27, clipka wrote:
>>> Am 10.09.2017 um 15:13 schrieb Stephen:
>>>> If I trace an object. How can I get the colour of the intersection of
>>>> the ray and object. As far as I can see trace() only returns the normal.
>>> You'll need to know the pigment of the object, and invoke `eval_pigment`
>>> on the intersection point you get...
>> Thanks, I had a blank in my memory.
>>> ... and hope that the pigment isn't UV-mapped,
>> Hope is not involved because there is a good chance I would want to do
>> that. Is it at all possible?
> No; not with the current versions of POV-Ray. The `trace` function would
> have to be extended to report the UV coordinate of the intersection, so
> that you could then feed it into `eval_pigment` instead of the 3D
> coordinate.

do I understand this correctly?  if I trace some object with a regular
pigment it will work, but the trace will fail if the object's
pigment/colour is "not simple"?  seems .. strange.

regards, jr.


Post a reply to this message

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