lake wobble

Forum Archive - from http://theuniversal.net
Locked
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

lake wobble

Post by flametard »

how do i get my ocean to have waves like the ones on syv? i tried messing with my max/min sea levels and not much happened. and the "lake wobble" option seems to be grey and non-clickable.
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

Good question. :wink:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Always a slightly obscure one this.. (Coz i keep meaning to change/improve it one day..)

First of all you need to set *settings -> Landscape -> Sea Rendering mode to one of the modes that indicates wave effects are applied. (5 or 6 - Syv uses 5)

Once thats on, the amplitude, wavelength and general behaviour of the sea is controlled using..

Code: Select all

*settings -> Landscape -> 
Wave Range Mod
Wave Height Mod 1
Wave Height Mod 2
These values are combined in magically random mathematical ways to determine where each point in the sea is at any particular time. (For 'magically random mathematical ways' read 'Mit has no idea how his code works' ;] ).
In theory, Range mod controls the wavelength (i.e. a high value creates waves with peaks close together) and the other two are combined to create the height of the waves.

As a starting point, Syv uses :

Code: Select all

Wave Range Mod = 32
Wave Height Mod 1 = 4717
Wave Height Mod 2 = 3764
Though, because the nature of the waves is affected by your landscape scale, you might find these values produce a different effect on your particular world.

Couple of final 'advanced user' notes..
1) To help generate waves that don't repeat in too obvious a way, the two height mod values should be 'different' - in the sense of not easily dividing into each other. (One odd number and one even number is a fair start).
2) Keeping the range mod in the form of a regular 'binary' number is sometimes helpful to avoid the waves acting weirdly. e.g. numbers like 4, 8, 16, 32, 64 tend to work best.
Locked