Planetside Software Forums

General => File Sharing => Water => Topic started by: mogn on October 01, 2015, 10:19:46 AM

Title: winding river
Post by: mogn on October 01, 2015, 10:19:46 AM
According to professor Brian Cox all winding rivers has a has a ration between the river wave length
and the river with, between 10 and 14.

This river has a ratio near 10.

Creating a smooth profile (mask) with zero values and zero slope outside the limiting values x1,x2:

p = smooth step(x, x1, x2)
profile = 4*(1-p)*p

This profile has a max of one in the mid point of the range.
To create a flat river bottom the constant 4 is replaced with 4.2 and clamped to 0..1

The windings are created by replacing the x above by:
x' = x + 1500*perlin([0,0,z],1500, )

The profile (mask) multiplied by the original displayment (convert disp to  scalar)
is the mount od disk to subtract to the original disp.



Title: Re: winding river
Post by: archonforest on October 01, 2015, 12:42:26 PM
Wish to understand what u talking about... ???
...but thx for the tgd. I will study it to learn something new.  :)
Title: Re: winding river
Post by: mhaze on October 03, 2015, 04:08:50 AM
Very Clever.  It would be nice to add some smaller scale curves to the large ones.
Title: Re: winding river
Post by: TheBadger on October 04, 2015, 05:05:44 PM
I saved this one. Thanks. Should help me at some point.
Title: Re: winding river
Post by: Kadri on October 04, 2015, 05:14:49 PM

Thank you.