POV-Ray : Newsgroups : povray.binaries.images : Seeking the explanation Server Time
20 Nov 2024 02:17:49 EST (-0500)
  Seeking the explanation (Message 1 to 3 of 3)  
From: Jim Charter
Subject: Seeking the explanation
Date: 28 Jul 2003 22:42:46
Message: <3f25df26@news.povray.org>
I am using the first image as a source for eval_pigment which I use
to generate the second 'image' of colored spheres.  Except it seems to
be in grayscale. Any ideas? The relevant code:

#declare Source =
         pigment {
           image_pattern {
             png "04.png"
           }
         }

#local a=0;#while (a<1)
         #local b=0;#while (b<1)
                 sphere { <a,b,0>, .00325
                         pigment { rgb eval_pigment (Source, <a,b,0>)}
                 }
         #local b=b+.01;#end
#local a=a+.01;#end


Post a reply to this message


Attachments:
Download '04.jpg' (7 KB) Download '12.jpg' (28 KB)

Preview of image '04.jpg'
04.jpg

Preview of image '12.jpg'
12.jpg


 

From: Hugo Asm
Subject: Re: Seeking the explanation
Date: 29 Jul 2003 03:46:50
Message: <3f26266a@news.povray.org>
Hmm. Try to replace image_pattern with image_map, since a pattern is always
grayscale.. (btw I didn't know there was an image_pattern keyword)

Regards,
Hugo


Post a reply to this message

From: Jim Charter
Subject: Re: Seeking the explanation
Date: 29 Jul 2003 10:31:09
Message: <3f26852d$1@news.povray.org>
Hugo Asm wrote:
> Hmm. Try to replace image_pattern with image_map, since a pattern is always
> grayscale.. (btw I didn't know there was an image_pattern keyword)
> 
> Regards,
> Hugo
> 
> 
That was it.  Nice catch!  Thanks.
-Jim


Post a reply to this message

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