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
6
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 =)

+ Code Snippet



Attachments

Login to view attachments
Phaelax
DBPro Master
14
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Agartha
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.

+ Code Snippet


"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Le Verdier
5
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
6
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
5
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
6
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: 2017-11-22 10:59:32
Your offset time is: 2017-11-22 10:59:32