POV-Ray : Newsgroups : povray.binaries.images : First try: eroded box [png ~38k] : Re: First try: eroded box [png ~38k] Server Time
4 Nov 2024 17:42:31 EST (-0500)
  Re: First try: eroded box [png ~38k]  
From: Christoph Hormann
Date: 28 Jul 2000 15:07:37
Message: <3981DA07.DF221BF2@schunter.etc.tu-bs.de>
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

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