POV-Ray : Newsgroups : povray.programming : Editing density structure : Re: Editing density structure Server Time
5 Jul 2024 14:25:35 EDT (-0400)
  Re: Editing density structure  
From: Chambers
Date: 25 Aug 2003 16:02:08
Message: <3f4a6b40@news.povray.org>
"Maurya" <mau### [at] hotmailcom> wrote in message
news:web.3f46c6586888b68bc22240400@news.povray.org...
> Actually I need to add the temperature tag because I dont want to
> use the linear interpolation in the color map. However I have changed the
> code and added my temperature tag to it that uses the temperature_file tag
> to read data and uses the blackbody radiation to compute the color!
> Thanks,
> Maurya

You could still do it by generating a color map of 256 entries, spaced as
you desire (and the linear interpolation would only be used between them,
making it much more accurate).  Something like lookup tables for sin, cos,
sqrt, etc.  Populate it with accurate values, and interpolate between them.

...Chambers


Post a reply to this message

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