|
![](/i/fill.gif) |
So, what I'm trying to do is code some Mesh-Creation-Macros.
The initial thing I'm starting with is a heightfield. All it does
is run across a given pigment and determine the height from
that (similiar to the real heightfield).
However, the hf's resolution is set by the User.
My problem is this:
When reading PNG images, POV will issue
1.732051... as highest value, where the the function is called
like this:
#macro _MCM_HF_Evaluate(_Pig,_PosUV)
#local _MCM_HF=function{pigment{_Pig}};
#local _Return=_MCM_HF(_PosUV.x,_PosUV.y,_PosUV.z).red;
_Return
#end
Since I'm only using the red-component, why is it that
larger? White is composed of rgb <1,1,1>, so I expect
to get 1 back, not 1.7... Anybody got an idea what this
is about?
--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmx de
Post a reply to this message
|
![](/i/fill.gif) |