• Welcome to Dark Bit Factory & Gravity.
 

Terrain Experiment

Started by rdc, April 04, 2007

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rdc

I thought I would try out the terrain tutorial I found in FB. Here's a little quickie. Press space bar to generate new map, esc to quit.


benny!

[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Paul

Thats really cool  :)
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

zawran

#3
Back in 2004, I was playing around with Blitz3D and terrain generation. I read that exact same tutorial and its really good. I managed to create a terrain tool with which I could generate random terrain that looked decent.





It can create both regular color map, and textured based on up to 8 textures which get drawn accoding to map height and blended into each other. It also has a feature for creating a shadow map based on sun angle and location which could be drawn onto the map, so its static but with Blitz3D it was what many did because it wasn't fast enough for lots of dynamically create shadows.

I can highly recommend that tutorial to anyone remotely interested in terrain generation.

@rdc,  really nice looking considering how fast you have pieced that generator together. It took me a long time I remember to get anything decent looking, but as with everything else, just keep at it, and it will improve over time.

rdc

Nice one zawran. That prog looks quite good.

zawran

If someone wants to play with it, they can get it here: http://zac-interactive.dk/temp/tmg.zip

Shockwave

Cheers for linky Zawran :)

Rdc, that's a great first build!

I'm a sucker for terrain stuff, I love all kinds of computer gernerated landscapes, I fell in love with them back in the days of the Amiaga after seeing the ones Corto made in the demo "Substance" although I realise that this is a different method, they are still excellent and make me smile to this day :) I even made a 3D landscape thing for one of the competitions on this forum myself once.
Shockwave ^ Codigos
Challenge Trophies Won:

rdc

Thanks. The prog is way too slow, but I liked the simplicity of the method. I have seen much more complicated algos that didn't produce results much better than this. This would probably be of more use with OGL or DX.

ferris

Great job dude :)

I used to do terrains for voxels by generating a fractalplasma.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

rdc

cha0s and redcrab did a few improvements on the program. Much faster and looks much better. Src and exe included.


ninogenio

wow very nice rdc

you might be able to get this faster again yousing crt memset to clear your pal and other stuff.
also if you yoused pointer arithmatic in the normilize function instead of x+y*sw that might speed it up a bit more again.
you wont get mouch more speed though just thought it might be worth mensioning.

ohh one last thing /(max - min) that will be slow in that for loop hows about 1.0/(max-min) out side the for loop in the normilize.
Challenge Trophies Won:

zawran

A better color range, looking good there RDC, keep it coming.

rdc

cha0s and redcrab deserve the credit for this version. I just thought I would pass it along since it is much improved over what I did.


Shockwave

Looks very nice indeed, thank you for posting the update :)
Shockwave ^ Codigos
Challenge Trophies Won: