Do you have to select or can you generate?

No, I don't have to select -- that image was essentially chosen at random (with some aesthetic judgement applied) from an image search for 'gold'; so its data is far from sacrosanct -- but I have tried generating a gold-scale and found it very difficult to do. My attempts so far have produced gradients with either distinct banding, or limited range (too much near black at the bottom and bright yellow near the top), or too strong a tint towards red or yellow throughout the gradient.

Then I tried finding an image that contained a smooth transition from lowlite to hilite from which I could crop a smooth gradient; but they are either too short, resulting in banding when applied to a CG image; or they contain waves and distortions (due to surface irregularities or secondary reflections) that show up as non-linear transitions in CGs.

That's when I hit on the idea of sampling an image (like the source image in the root node) and subsetting it 'somehow'.

The problem (I think) is that, whether subsetting or generating, I need to transition through the relevant hsv space in 3 dimensions rather than 2; and probably not in a straight line either to boot.

To explain: if you look at this image which shows 3 views of the same dataset.

What I think those views show is that I need to select or generate a path through that subset of the hsv gamut, traversing in a kind of S-shape. But an S-shape in all 3 dimensions!

That is, starting at the lower left of the top-left view, proceeding mostly right for the first (say) 10% then somewhat steeper than 45 degrees across the middle, and then at a shallow angle for the last 10% or so into the top-right corner.

But also, tracing a similarly shallow S-shape (diagonally) in both other dimensions at the same time. bottom-left to top-right in the bottom left view; and bottom-right to top-left in the upper-right view.

But once again, I'm stuck for a good way to do that?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^2: A data selection problem(in3D). by BrowserUk
in thread A data selection problem(in3D). by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.