|
|
On 04/12/2018 01:05 PM, Bald Eagle wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
>
>> A trick I find useful when working with maps is to hard code a value as
>> follows using function{} :
>>
>> // pigment_pattern {NR_wood_grain}
>> function { 0.91 }
>> texture_map {...}
>
> I'm not quite following what you're doing with the function{} here.
>
>
It's a debug aid. Normally a <whatever>_map responds to a pattern or
function generating a 0 to 1 value based upon the x,y,z position of a
point.
When something is amiss, it's sometimes hard to know whether the issue
is the construction of the map or if the pattern/function generating the
0 - 1 values is incorrect.
Coding 'function { 0.91 }' fixes the value the *_map uses at 0.91 no
matter the x,y,z position of the point. It is a way to verify the *_map
gives you exactly what you expect for color, pigment, texture or density
for any given value. If you wanted to see what the interpolated texture
at 0.25 looks like between 0.2 and 0.3 texture entries in a texture_map,
you'd code 'function { 0.25 }' and render to see.
Bill P.
Post a reply to this message
|
|