|
|
Thorsten Froehlich wrote:
>
> > You could use two shorts instead of three, and compute the third with z =
> > sqrt(1 - x^2 - y^2). Then the memory use would only go up by 33% per sample.
> > (Besides, it would probably be faster than vnormalizing the whole vector
> > every time.)
>
> Never mind, I checked and it really does. This has to be fixed. A fix will
> be in POV-Ray 3.51.
Be careful, this could possibly 'break' old radiosity scenes because the
directions will slightly differ (although the differences will not be
large of course). Calculating the direction vectors at the beginning and
not during every ra_gather() call would be a good idea IMO. I already
made this modification for Megapov in case you want it.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|