|
![](/i/fill.gif) |
Abe wrote:
> Mike Kost <con### [at] povray tashcorp net> wrote:
>> Sebastian H. wrote:
>>
>> > Mike Kost wrote:
>> >> http://povray.tashcorp.net
>> >
>> > Your sky sphere tutorial is really helpful.
>> > I'll try it out on the weekend. Good work.
>> >
>> > Sebastian
>>
>> Thanks - I'm glad it's helpful.
>>
>> I've started using a series of Python scripts to automate the whole
>> process, so what I'm doing now has advanced beyond my tutorial. Something
>> new to write-up when it settles down, I guess.
>>
>> Mike
>
> How about letting POV do the work? I was able to do a reasonable facsimile
> of the sampling process in POV sdl.
>
> -- SNIP --
> -- /SNIP --
>
> Abe
A very elegant solution. This will be fun to try out.
In the past, I have had poor experiences with auto-generated color_maps. All
the results I've gotten are prone to having banding problems. Some of it is
due to unlucky pixel distributions, but it becomes difficult to get good
results over a wide range of images without lots of trial and error (and by
then, I can do it faster by hand sampling). Over-sample too much, and it
picks up high frequency noise that creates banding. Under-sample and the
colors look cheesy (and again has visual bands).
I have not tried averaging along the X axis yet, so I'm curious to try your
Povray code out, but I think the problem goes a little deeper: real skies
and linear interpolation don't mix. Sunsets do not have discontinuous first
derivatives, but linearly interpolated color maps do. I believe that the
visual problems in rendered skies come from large changes in slope when
passing a control point in the color map. Averaging and using weighted
color map entries distribution work to cover up the problem. The real
solution, in my (by now not so humble) opinion, is to extend color maps to
allow cubic or b-spline interpolation. A higher order interpolation will
match the original sunset image with just 5 - 10 point color map entries.
Perhaps it's time to solicit the Povray coders for an enhancement...
All the best,
Mike
--
http://povray.tashcorp.net/
Post a reply to this message
|
![](/i/fill.gif) |