POV-Ray : Newsgroups : povray.advanced-users : particle system : Re: particle system Server Time
1 Jul 2024 06:03:18 EDT (-0400)
  Re: particle system  
From: Kay-Ju
Date: 27 Jun 2009 11:15:00
Message: <web.4a463673816b3b0aba336aa70@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "Kay-Ju" <k.j### [at] gmxde> wrote:
> > I.e. i have a field consisting of let's say 32
> > by 32 small spheres and i want them to be translated
> > along the y-axis according to the map-color.
> >
> > Can this be done?
> > In an easy way?
>
> There are multiple ways to do this. I guess the easiest is to #define a pigment
> from the image, and use eval_pigment() (defined in functions.inc) in a double
> loop to retrieve the color at the respective point in the image (note that the
> coordinates should normally range from 0 to 1); you can then use the .red,
> ..green or .blue component of the returned color vector (or .gray for the
> brightness) to compute the desired translation.

Thank you both.
That is perfectly the information i have been
questing for.

cu
Kay-Ju


Post a reply to this message

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