|
|
ingo wrote:
>
> Generate a "raindrop" with a force between 0 and 10.
> Go to the first voxel in the first layer. If value of the voxel is 0, go
> to the first voxel in the next layer (=z direction).
> Reduce voxel and raindrop by two. Is there still some juice in the drop,
> randomly choose a direction +x, -x, +y or -y. Go in that direction till
> you hit a voxel that is not 0. Reduce voxel and drop by two. Do so until
> raindrop is 0 or you move outside the df3.
> Then generate a second drop, goto the second drop of the first layer etc.
> Do so for all voxels in the layer. Then start all over again. Do this 20
> times for each frame rendered.
>
Sounds like you do not need a 3d-array for that, shouldn't it also work on a
normal heightfield in a similar way, it would be similar to your method, but
like with only two possible values (0, 1) for each voxel.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|