POV-Ray : Newsgroups : povray.newusers : Defined a pigment; what's the color at <vect>? Server Time
1 Nov 2024 12:22:01 EDT (-0400)
  Defined a pigment; what's the color at <vect>? (Message 1 to 3 of 3)  
From: gregjohn
Subject: Defined a pigment; what's the color at <vect>?
Date: 21 Aug 2008 21:20:01
Message: <web.48ae137054c8e32034d207310@news.povray.org>
I've defined a pigment.  I'm looking for a way to evaluate the pigment at a
specific location.  I thought there may have been a path to do this in 3.6, but
I cannot get the syntax right.  Any tips?


Post a reply to this message

From: Leroy Whetstone
Subject: Re: Defined a pigment; what's the color at <vect>?
Date: 21 Aug 2008 22:22:33
Message: <48AE3F8C.7000706@joplin.com>
gregjohn wrote:
> I've defined a pigment.  I'm looking for a way to evaluate the pigment at a
> specific location.  I thought there may have been a path to do this in 3.6, but
> I cannot get the syntax right.  Any tips?
> 
> 

#include"functions.inc"
then use: eval_pigment(Pigment, Vect)


Post a reply to this message

From: Warp
Subject: Re: Defined a pigment; what's the color at <vect>?
Date: 22 Aug 2008 04:01:06
Message: <48ae7242@news.povray.org>
Leroy Whetstone <lrw### [at] joplincom> wrote:
> #include"functions.inc"
> then use: eval_pigment(Pigment, Vect)

  If you are going to evaluate the pigment a lot of times in a loop,
it's must faster if you create a pigment function just once, and then
just call that. Look at the implementation of eval_pigment() to see
how it's done.

-- 
                                                          - Warp


Post a reply to this message

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