POV-Ray : Newsgroups : povray.advanced-users : Dot-Operator problems... : Dot-Operator problems... Server Time
29 Jul 2024 02:29:53 EDT (-0400)
  Dot-Operator problems...  
From: Tim Nikias v2 0
Date: 5 Mar 2003 12:06:42
Message: <3e662ea2$1@news.povray.org>
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

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