Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playable Heightmap

Tags:

c#

height

terrain

I have a game with infinity procedually generated terrain. I'm using 1/f noise for the height (I think this is perlin noise?). Anyway it looks nice, but its not very playable since it doesn't really have flat areas. Just decreasing the amplitude won't work since I still want a large variation in height. Does anyone know of a filter I can apply to the heightmap to encourage flat areas while keeping a large range of heights?

Written in C#

EDIT: I've realised that what I want is for steep gradients to become steeper, and for flat gradients to become flatter. The terrain needn't be realistic, just "fun" for an FPS.

like image 533
Hannesh Avatar asked Mar 10 '26 19:03

Hannesh


1 Answers

I believe you need to use a smoothing function to get rid of the jaggedness of the terrain, if that seems to be your problem.

I only glanced through this page, but it may be a decent guide: http://www.float4x4.net/index.php/2010/06/generating-realistic-and-playable-terrain-height-maps/

like image 191
Dr. Wily's Apprentice Avatar answered Mar 12 '26 09:03

Dr. Wily's Apprentice



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!