|
|
On 22-2-2017 13:17, Thomas de Groot wrote:
> This version does interesting things, different from the previous one. I
> am not entirely sure if it solves the problem and I need to investigate
> further.
>
I think it is worthwhile to re-think the random starting point code as
the existing one has not a coverage including the complete terrain.
I use RRand() from rand.inc (to be included into the scene) in the
following manner:
First, add the following lines after the height_field making:
#declare Min = min_extent(Terrain);
#declare Max = max_extent(Terrain);
Then replace the line:
#declare Pos = trace(ThisTerrain, <rand(r)-.55, 10*Flattening,
rand(r)-.55>*0.9*TS, -y);
by:
#declare Pos = trace(ThisTerrain, <RRand(Min.x, Max.x, r),
10*Flattening, RRand(Min.z, Max.z, r)>, -y);
The result is shown in the attached image, searching for 100 streams I
commented out the black cones).
--
Thomas
Post a reply to this message
Attachments:
Download 'ka_water4.jpg' (186 KB)
Preview of image 'ka_water4.jpg'
|
|