POV-Ray : Newsgroups : povray.general : Tracing colour Server Time
25 Nov 2024 23:42:28 EST (-0500)
  Tracing colour (Message 1 to 6 of 6)  
From: Nekar Xenos
Subject: Tracing colour
Date: 10 Apr 2013 12:21:22
Message: <op.wvb2dstbufxv4h@xena>
I'm working on a paint macro that uses trace(). I need to know the pigment  
colour at the trace co-ordinate. Is this possible?

-- 
-Nekar Xenos-


Post a reply to this message

From: clipka
Subject: Re: Tracing colour
Date: 10 Apr 2013 12:31:50
Message: <516593f6$1@news.povray.org>
Am 10.04.2013 18:21, schrieb Nekar Xenos:
> I'm working on a paint macro that uses trace(). I need to know the
> pigment colour at the trace co-ordinate. Is this possible?

Basically, yes. eval_pigment() is the feature you're looking for. Note 
however that you need keep track yourself of all transformations applied 
to the object (and/or the texture) you assigned that pigment to.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Tracing colour
Date: 10 Apr 2013 12:40:00
Message: <web.516594d085f08ead78641e0c0@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote:
> I'm working on a paint macro that uses trace(). I need to know the pigment
> colour at the trace co-ordinate. Is this possible?

Try eval_pigment() in functions.inc.


Post a reply to this message

From: Nekar Xenos
Subject: Re: Tracing colour
Date: 10 Apr 2013 14:50:33
Message: <op.wvb9aev5ufxv4h@xena>
On Wed, 10 Apr 2013 18:31:45 +0200, clipka <ano### [at] anonymousorg> wrote:

> Am 10.04.2013 18:21, schrieb Nekar Xenos:
>> I'm working on a paint macro that uses trace(). I need to know the
>> pigment colour at the trace co-ordinate. Is this possible?
>
> Basically, yes. eval_pigment() is the feature you're looking for. Note  
> however that you need keep track yourself of all transformations applied  
> to the object (and/or the texture) you assigned that pigment to.
>

Thanks.

-- 
-Nekar Xenos-


Post a reply to this message

From: Nekar Xenos
Subject: Re: Tracing colour
Date: 10 Apr 2013 16:25:37
Message: <op.wvcdoud9ufxv4h@xena>
On Wed, 10 Apr 2013 18:35:28 +0200, Cousin Ricky <rickysttATyahooDOTcom>  
wrote:

> "Nekar Xenos" <nek### [at] gmailcom> wrote:
>> I'm working on a paint macro that uses trace(). I need to know the  
>> pigment
>> colour at the trace co-ordinate. Is this possible?
>
> Try eval_pigment() in functions.inc.
>
Hhmm.... After closer inspection it seems I'm going to have a hard time  
trying to evaluate a pigment on a uv-mapped mesh...

-- 
-Nekar Xenos-


Post a reply to this message

From: clipka
Subject: Re: Tracing colour
Date: 11 Apr 2013 19:39:53
Message: <516749c9$1@news.povray.org>
Am 10.04.2013 22:25, schrieb Nekar Xenos:
> On Wed, 10 Apr 2013 18:35:28 +0200, Cousin Ricky <rickysttATyahooDOTcom>
> wrote:
>
>> "Nekar Xenos" <nek### [at] gmailcom> wrote:
>>> I'm working on a paint macro that uses trace(). I need to know the
>>> pigment
>>> colour at the trace co-ordinate. Is this possible?
>>
>> Try eval_pigment() in functions.inc.
>>
> Hhmm.... After closer inspection it seems I'm going to have a hard time
> trying to evaluate a pigment on a uv-mapped mesh...

Whoops - yes, that's a problem indeed.


Post a reply to this message

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