POV-Ray : Newsgroups : povray.beta-test.binaries : Vanish/Ghost/Killer bug : Re: Vanish/Ghost/Killer bug Server Time
16 May 2024 19:29:03 EDT (-0400)
  Re: Vanish/Ghost/Killer bug  
From: Jaime Vives Piqueres
Date: 15 Apr 2002 15:23:10
Message: <3cbb289d@news.povray.org>
Tim Nikias wrote:

> This is the minimum scene-file Thorsten Froehlich requested to
> check the bug. When tracing with focal-blur, objects get
> cut in half or vanish, depending on which object you use
> to be translated by vnormalize(<0,0,0>).

  Oh... well, if you use vstr() with vnormalize(<0,0,0>), you will se it 
returns a vector <nan,nan,nan>. If you look also at the docs, the 
description for vnormalize() "criptically" states that "vnormalize(<0,0,0>) 
will not give a usefull result". This sounds more like an undesired side 
effect than a bug... and from the docs wording I can supose there is no 
easy solution for the problem. Note this sentence was not on the 3.1 docs, 
so I suspect it was discussed on a previous bug report...
 
  Anyhow, if your using vnormalize inside loops, you can test for the 
"special case" to replace it with the apropiate value (if it makes sense at 
all).

  Hope this helps! 


-- 
Jaime Vives Piqueres

La Persistencia de la Ignorancia
http://www.ignorancia.org


Post a reply to this message

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