POV-Ray : Newsgroups : povray.programming : Media Density and Color Maps : Re: Media Density and Color Maps Server Time
28 Jul 2024 20:22:31 EDT (-0400)
  Re: Media Density and Color Maps  
From: Ron Parker
Date: 16 Jun 1999 12:15:53
Message: <3767cdb9@news.povray.org>
On Wed, 16 Jun 1999 08:56:23 -0700, Ken wrote:
>Ron Parker wrote:
>> 
>> On Wed, 16 Jun 1999 08:02:36 -0700, Ken wrote:
>> >
>> >  Currently the only color modifications allowed in a media density
>> >statment is by specifying a color map. Would it be possible to add
>> >image mapping to this function allowing the color pallet of the
>> >image used to effect the color density of the media ?
>> 
>> Yep.  It's a one-line change in parstxtr.c.  Works like a charm.
>> The only thing keeping it from working is that it is explicity
>> disallowed.  That's probably an oversight.
>
>  Strange they left that one out. Maybe there was not enough time to
>document it before the version release but on a few occassions now I
>have wished I could use this added feature.

I think it was just an honest mistake.  The error message is supposed
to apply to use of the image_map pattern in a normal block.  In older
code, normal and pigment were the only things that used patterns, so 
it would have made sense to force image_maps to be inside pigment blocks.
Odd, though, that the other two cases of things that could only be used
in pigment blocks (color and color_map) were fixed and image_map was 
not.


Post a reply to this message

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