POV-Ray : Newsgroups : povray.advanced-users : Phong BRDF pigment { function{} } : Re: Phong BRDF pigment { function{} } Server Time
24 Apr 2024 17:29:42 EDT (-0400)
  Re: Phong BRDF pigment { function{} }  
From: Tor Olav Kristensen
Date: 11 Nov 2022 21:45:00
Message: <web.636f07bd6d24d7090618e0f89db30a9@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

>...

> I would love to get everything ironed out so as to not have to worry about weird
> fudge factors, so that when I puzzle out and refine applying the importance
> sampling part, I can focus on the real issues and not be chasing ghosts in the
> code.

>...

> #declare R_hatX = function {RX (x , y, z) / SFn_vlength (RX (x , y, z), RY (x ,
> y, z), RY (x , y, z))}
> #declare R_hatY = function {RY (x , y, z) / SFn_vlength (RX (x , y, z), RY (x ,
> y, z), RY (x , y, z))}
> #declare R_hatZ = function {RZ (x , y, z) / SFn_vlength (RX (x , y, z), RY (x ,
> y, z), RY (x , y, z))}
>...

Hi Bill

In your code above you pass RX once and RY twice as arguments to your
SFn_vlength() function, but I guess that you intended to pass RX, RY and RZ as
arguments.

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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