POV-Ray : Newsgroups : povray.advanced-users : Dot-Operator problems... Server Time
25 Nov 2024 09:29:59 EST (-0500)
  Dot-Operator problems... (Message 1 to 5 of 5)  
From: Tim Nikias v2 0
Subject: Dot-Operator problems...
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

From: Tim Nikias v2 0
Subject: Re: Dot-Operator problems...
Date: 5 Mar 2003 12:12:47
Message: <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

From: Andrew Coppin
Subject: Re: Dot-Operator problems...
Date: 5 Mar 2003 17:08:29
Message: <3e66755d@news.povray.org>
LOL... I hate it when that happens ;-)

Be happy.
Andrew.


Post a reply to this message

From: Rick Gutleber
Subject: Re: Dot-Operator problems...
Date: 6 Mar 2003 09:01:17
Message: <3e6754ad@news.povray.org>
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

From: Greg Edwards
Subject: Re: Dot-Operator problems...
Date: 10 Mar 2003 19:52:30
Message: <1qgiciok6x13j.w5xvgxgwiqj3$.dlg@40tude.net>
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

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