Outerra forum

Anteworld - Outerra Game => Tech demo, support, updates => Topic started by: 2eyed on September 24, 2013, 03:33:35 pm

Title: Water animation/wave hight adjustable?
Post by: 2eyed on September 24, 2013, 03:33:35 pm
I really like the way waves and surf animation is rendered with your engine.
Is it possible to alter wave height ?
What can be done to avoid the grid pattern or tiling when loooking from above?
In previous version the tiling seemed to be less noticeable.
Title: Re: Water animation/wave hight adjustable?
Post by: cameni on September 24, 2013, 05:00:43 pm
It's still WIP and the algorithms for the wave generation will change. However, there's a way to adjust the amplitudes (non-persistent way) by bringing up the script console (alt+c, if you have debug_keys=true in eng.cfg), and typing:
Code: [Select]
.bind m maprender
m.wave_amp(1.0);
m.surf_amp(1.0);

Those numbers are for open-sea waves and surf waves, respectively. It won't work with arbitrary numbers though, a usable range is between 0.0 and 1.0. There are some other internal limits that currently prevent it going higher without artifacts (or desynchronized simulation).
It won't help with the tiling much, although a lower wave amplitude may help some.
Title: Re: Water animation/wave hight adjustable?
Post by: 2eyed on September 25, 2013, 09:16:26 am
Thanks, will try that!