POV-Ray : Newsgroups : povray.beta-test : Initialisation of a 4-vector array : Re: Initialisation of a 4-vector array Server Time
26 Apr 2024 21:04:11 EDT (-0400)
  Re: Initialisation of a 4-vector array  
From: Felix Wiemann
Date: 24 Jan 2002 06:18:12
Message: <3c4fed74$1@news.povray.org>
> With the following, w4[0].t is not set correctly.
>
> w4[1].t and w4[2].t are set correctly.

Confirmed.

> Curiously, this does not happen with an array of only 2 elements.

Confirmed.

It seems to be a problem with adding 4D and 3D-vectors. With 4D-vectors
used in array w, it doesn't occur. When using {x + 0, y + 0, z + 0}
instead of {x, y, z}, the numbers are:
0.123 -1.#QO
0.456  0.456
0.789  0.789
When rendering with str(w4[ix].x,6,3) and then rendering with
str(w4[ix].t,6,3), it's one time correctly calculated. The error comes
back when rendering the same scene again.


Post a reply to this message

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