POV-Ray : Newsgroups : povray.advanced-users : Extracting information from an existing color_map : Re: Extracting information from an existing color_map Server Time
8 May 2024 17:05:34 EDT (-0400)
  Re: Extracting information from an existing color_map  
From: Bald Eagle
Date: 18 Feb 2023 09:05:00
Message: <web.63f0da2d1908580e1f9dae3025979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> Hi Bill,
> I'm not keeping up well with this thread, but I have a couple thoughts.

It's just some crazy experiments - no worries.   :)

> ---
>
> Remember v3.8 supports color_map blend_mode and blend_gamma modifiers
> which are internal to the color_map definition. These can skew the
> overall color_map behavior.

Yes, they can - there are always complicating factors, but we digitize and
convert things as best we can, given the constraints.   But once it's working,
it would be an interesting layer to add - importing the gamma-sdjusted values
and back-calculating what the original raw rgb values were.
If nothing else, it will be an experiment that will further solidify my
knowledge of color-handling: like all of the gamma and srgb stuff.

> On accessing color_map values out of 'accessible' range(a) we need
> updated POV-Ray source. This has been implemented in my povr fork and
> was discussed back in 2019 here (though you completely hijacked the
> thread for another useful bug/fix :-) ):
>
>
http://news.povray.org/povray.beta-test.binaries/thread/%3C5dab3f55%241%40news.povray.org%3E/

You know what they say: "Find out what you're good at, and stick with it!"  :D
I hope you like where the POVRayanese Source Code Liberation Front landed the
plane.  ;)


> (a) As you know, the *_map mechanism in POV-Ray itself has long
> supported  key/index values well outside the [0-1] range,

By "supported", I'm assuming that you mean "doesn't crash".  or "Ignores
out-of-range index values" and "wraps out of range key values back into the 0-1
range".


> but we cannot
> make use of this in any official POV-Ray release due other internal
> limitations.

Maybe we need a vogon_bypass keyword.
"It's a bypass - y'gotta build bypasses."

I have read many of the POV-Ray development discussions stretching way back -
and the long-standing goal of "fixing" things periodically percolates through my
mind.  Once again, there is no user/publicly accessible comprehensive
mission/position statement / goal checklist / idea pile / record of
in-progress/abandoned experiments and results roadmap of how all the POV-Ray
internals work (that I know of)

I'm not necessarily saying that we should do the following, but imagine that we
had such a "full" description, and somehow all of the POV-Ray source code was
lost and we had to start over from scratch.   Would it be easier to achieve the
desired goal(s) starting fresh, or are there serious things we would lose
without untangling and extracting them from the current bramble patch?


Post a reply to this message

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