View Single Post
Old 11-23-10, 05:03 AM   #575
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

@Stiebler:

At EnvSim.act+0xDD61 you see the call for a routine which itself calls Random32(). There you see what happens. Of course this is pseudo-random but hopefully with a very long period since it's based on a 32bit-key. So it repeats the first time after 2^32 = 4G random numbers.

The problems I fear with simply damping down a factor are as follows:

1) The algorithm to calculate wind-speed is not simple and time-independent as I thought at first. It is not only

15*(RANDOM)+15 -> delimited to [0,449-15] and with -1<RANDOM<+1

This could be fixed by using this algorithm

7,5*(RANDOM)+7,5 with -1<RANDOM<+1

which does not even need to be delimited.

There seems to be a loop-back that considers older windspeeds for calculating the new ones. This closed loop also explains the tendency to converge to a certain value (15). An simple random algorithm without loop-back would never converge.

So if we change one factor we could change the whole loop-back behavior (and shred the whole algorithm).

2) As Hitman said, 15m/s is not the hightest windspeed and other people are there wanting higher waves. If we damp down that factor, windspeeds will be lower in average. I would not like that.


But let me first find out how to program for 64-Bit systems. DLL's and ACTs are loaded in a different way in 64 Bit OS, and obviously I made a mistake. If I don't find the cause of my error, there is no need to talk about algorithm.

And then it's important to find out how to manipulate clouds / fog.

And after that all we can test different algorithms to fix the weather.

Greetings,
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote