|
|
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] gmxde
Post a reply to this message
|
|
|
|
It must have something to do with that value being the square root of 5,
huh?
"Tim Nikias v2.0" <tim### [at] gmxde> wrote in message
news:3e66300f$1@news.povray.org...
> Uups, take that back. Everythings working a-okay. Just spotted
> some side-effect...
>
> --
> Tim Nikias v2.0
> Homepage: http://www.digitaltwilight.de/no_lights
> Email: Tim### [at] gmxde
>
>
Post a reply to this message
|
|
|
|
On Thu, 6 Mar 2003 08:44:56 -0500, Rick Gutleber wrote:
> It must have something to do with that value being the square root of 5,
> huh?
I think you mean the square root of 3 :P
--
light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE
Post a reply to this message
|
|