POV-Ray : Newsgroups : povray.general : Photons and simulating a data projector : Re: Photons and simulating a data projector Server Time
30 Jul 2024 20:25:25 EDT (-0400)
  Re: Photons and simulating a data projector  
From: Christian Froeschlin
Date: 12 Jul 2008 08:58:39
Message: <4878aa7f$1@news.povray.org>
Paul Bourke wrote:

> Do you know where the equivalent is in the 3.6.1 source?

Actually, I just downloaded the sources for 3.7b out of curiousity
when they were announced, so I'm no expert and didn't know the 3.6
sources at all. But I just downloaded them now and my guess is
that you need to modify some assignment in "no_interpolation"
(image.cpp) depending on the image type, e.g, replacing

   colour[pFILTER] += (DBL)map_colour->Filter * DIV_1_BY_255;
   colour[pTRANSM] += (DBL)map_colour->Transmit * DIV_1_BY_255;

with

   colour[pTRANSM] += (DBL)map_colour->Filter * DIV_1_BY_255;
   colour[pFILTER] += (DBL)map_colour->Transmit * DIV_1_BY_255;

if the image has a Colour_Map.


Post a reply to this message

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