
On Mon, 16 Aug 2004, Peter Moulder wrote:
On Sun, Aug 15, 2004 at 01:04:00PM -0300, bulia byak wrote:
I don't see that we need this custom RNG thing. Storing the generated random number with the star gives us portability and more.
[...] Depending on a system-provided RNG, on the other hand, may result in different rendering on different platforms or lib versions.
No. Was I not sufficiently clear? We store the number with the star. I.e. in the XML. When we open the file on another platform with its different processor and different library versions, we don't call any random number generator, we just read the number from the file, and use the same number.
There are a lot of numbers involved; we can either store them all, or store a single value to seed a portable PRNG to generate the rest.
I suppose we could theoretically infer things from the standard polygon data, but that gets too complicated to be worthwhile for e.g. rounded stars.
-mental