Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - 256x256 Heightmap Generator

Author
Message
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 1st Nov 2014 04:14 Edited at: 1st Nov 2014 04:16
(HAPPY HALLOWEEN!)

Actually you could make it bigger than 256, but there's plenty of detail on each one.

You can play will all the variables and get drastic results...
You can also sharpen or lessen the blur by changing both 'get image' texture flags.

The code is my usual slop-style, but runs like a thief =)





Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Nov 2014 15:50
Simple method yet with pleasant results. Nice work.

I modified your code slightly, structurally more than anything. It's a little shorter and in a function now.




"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Le Verdier
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 2nd Nov 2014 18:31
I tried a very quick render of it!

All hail the new flesh

Attachments

Login to view attachments
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 2nd Nov 2014 20:02 Edited at: 2nd Nov 2014 20:11
Thanks guys!!

Nice, Phaelax... the function format is better for dropping into a larger coder, yes? I need to do more work with functions myself.

Hey that's a cool pic, Le Verdier! I like the shadows!
Is that rendered with Blitz Terrain or something else?

I'm just now delving into texture splatting based on an old shader by DaveC9000. When I can figure out how the alpha maps affect one another I should be able to make some nice landscapes with multiple detail textures.

Le Verdier
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 2nd Nov 2014 21:31 Edited at: 2nd Nov 2014 21:32
It isn't realtime, I used Vue 2014
A raw 512*512 texture with no fractal details,
Atmosphere and texture provided...
As I said, a very quick render!

All hail the new flesh
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Nov 2014 15:01
[Le Verdier's pic!]



Login to post a reply

Server time is: 2024-11-23 07:55:37
Your offset time is: 2024-11-23 07:55:37