POV-Ray : Newsgroups : povray.binaries.scene-files : Wind pattern code and reed stalk example : Re: Wind pattern code and reed stalk example Server Time
27 Apr 2024 11:12:38 EDT (-0400)
  Re: Wind pattern code and reed stalk example  
From: kurtz le pirate
Date: 27 Sep 2014 09:23:07
Message: <5426ba3b$1@news.povray.org>

> On 19-9-2014 21:53, LanuHum wrote:
>> In the console there are a lot of lines:
>> File '/usr/share/povray-3.7/include/math.inc' line 232: Possible Parse
>> Error:
>> Normalizing zero-length vector.
>
> I know but I don't know what to do about that. As far as I know I have
> dealt with all zero-length vectors.



because sometimes <Norm> is equal to <0.000, 1.000, 0.000>
then, you caculate VerAng with :
	#local VerAng = VAngleD(<Norm.x, 0, Norm.z>, Norm);

first parameter become <0.000, 0.000, 0.000>

VAngleD use vnormalize that is not defined for a null vector.

and you get :
	Possible Parse Error: Normalizing zero-length vector.


you can, for exemple, correct this by adding smalls values to <Norm>
	#if ((Norm.x = 0.0) &  (Norm.z = 0.0))
		#local Norm = <0.0001, Norm.y, 0.0001>;
	#end



> Anyway, they have no effect on the render.

no visible difference in fact :)



---
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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