Terrain generation

3 replies [Last post]
joanrocagas
User offline. Last seen 13 years 3 weeks ago. Offline
Joined: 2011-04-05
Posts: 1

Hi all!

I'm an indie developer and we are creating an hedgewars/worms clone. We are not sure how to generate the terrain. We have looked at metaballs, midpoint displacement, etc... Basically we would like to get terrains similar to the ones you have in hedgewars, with caves and overhangs, but, we would like to avoid creating holes. Maybe someone here could point us the right direction or explain us a bit how it is done in hedgewars.

Thanks
By the way, congrats to you all, great commnunity and great open source game!

sheepluva
sheepluva's picture
User offline. Last seen 21 hours 43 sec ago. Offline
Joined: 2009-07-18
Posts: 563

From what I know we use template curves for landscape generation.
These curves are varied by applying random offsets.
By using curves that are far enough from each other to avoid resulting holes you may be able to accomplish what you are looking for.

That method ofc isn't the most "random" possible one, but that's what we use afaik.
(that's why random maps often seem familiar, although they are actually different, but based on the same template players played on before)

Thanks for your kind words and good luck with you indie game Smile

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 2006-11-27
Posts: 576

sheepluva is right. We use templates, which are passed through wave transformation several times with defferent parameters. Couldn't manage to invent something better.

Koda
Koda's picture
User offline. Last seen 10 weeks 4 days ago. Offline
Joined: 2008-11-10
Posts: 215

instead of creating a clone, why don't you join us? Smile
together we are stronger!!!

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]