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] Fractal land, heightmap

Years of Service
User Offline
Joined: 3rd Dec 2010
Location: France
Posted: 3rd Dec 2010 15:41 Edited at: 3rd Dec 2010 16:39
Good morning !
I have a source code for creator/user of heightmap:

Magicien Basic sévit encore
Dr Tank
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Southampton, UK
Posted: 9th Dec 2010 21:13
This gives nice results. Might use this later. Thanks.
Years of Service
User Offline
Joined: 21st Aug 2009
Posted: 17th Dec 2010 13:45 Edited at: 17th Dec 2010 14:20
Hey, it's good. I just modified it to add 256 colours and improve the performance a bit. I'm also adding a bit of test code.

The modified code:

The test code:

There is no such thing as "Too Fast!"
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 20th Mar 2011 02:44
it freezes after i input a(0,2) in your version ^ and after i input a(2,1) in the original poster's version.
Green Gandalf
VIP Member
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Mar 2011 13:51 Edited at: 21st Mar 2011 01:50
I have exactly the same problem. I don't think it's actually hanging - it's waiting for input from you.

What seems to be happening is that the input prompt for the last few a(,) entries isn't showing on the screen for some reason. Not sure why. I would expect the text to scroll up the screen but it doesn't. You can still enter the numbers though.

I changed the code slightly and it works fine. Just add a CLS here:

The results are nice though.

I've encountered a few display oddities recently after upgrading my GFX card drivers and wonder if the two problems are connected.

here's a typical image using the following numbers:

iterations 8
a values 0 0 0 0 250 0 0 0 0

Edit Interesting. Just tested the original on my older XP laptop and it works fine. So it looks like another of those annoying system problems. The extra CLS was needed on my Vista desktop.


Login to view attachments

Login to post a reply

Server time is: 2024-03-02 03:48:37
Your offset time is: 2024-03-02 03:48:37