POV-Ray : Newsgroups : povray.unofficial.patches : radiosity samples: 255x255x255 probably isn't enough : Re: radiosity samples: 255x255x255 probably isn't enough Server Time
2 Jul 2024 18:40:17 EDT (-0400)
  Re: radiosity samples: 255x255x255 probably isn't enough  
From: Troy S  Ristow
Date: 7 Jan 2003 20:06:46
Message: <3e1b79a6$1@news.povray.org>
"Apache" <apa### [at] yahoocom> wrote in message
news:3e1b6a20@news.povray.org...
> I use this function in radiosit.cpp:
>
>   dest_vec[Z] = sqrt(1. - pow(src_vec->x, 2.)-pow(src_vec->x, 2.));
>

I'm assuming that you meant: dest_vec[Z] = sqrt(1. - pow(src_vec->x,
2.)-pow(src_vec->y, 2.));

If you just cut and pasted this code then you may want to re-run your tests,
because this would make a huge difference.

And I would at least expand pow function to square a value into a single
multiplication for efficiency.

--- Troy S. Ristow


Post a reply to this message

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