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.

Work in Progress / HyperFractals - A powerful fractal-generating program

Author
Message
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 20th Aug 2008 16:08 Edited at: 2nd Sep 2008 18:50
I've sorted out most of the algorithms, file reading and displaying. Unlike other fractal programs made in DBPro, these fractals are perfectly smooth, and more flexible. The fractals are also rendered differently - the entire image is iterated simultaneously, so you can see the fractal evolving after just a few seconds. Here's a sample .PNG image (attached). The fractals are specified in a user-friendly .hf2 file (my own format).



Here is the .hf2 code used to completely specify this fractal:



If anyone wants a particular fractal making for them, I'd be happy to generate one. (This one took about 20 seconds to render)

The optomist's right, The pessimist's right.

Attachments

Login to view attachments
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 20th Aug 2008 16:17 Edited at: 2nd Sep 2008 18:50
Here's a more standard Mandelbrot-type fractal, a detailed zoom of the Seahorse valley, rendered in fiery colours.



The .hf2 code for it is as follows:



The optomist's right, The pessimist's right.

Attachments

Login to view attachments
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 20th Aug 2008 16:24 Edited at: 20th Aug 2008 16:24
And the entire Mandelbrot set, rendered in the same electric palette as the lightning bolt.



The optomist's right, The pessimist's right.

Attachments

Login to view attachments
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 20th Aug 2008 16:31
Wow thats really cool

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 20th Aug 2008 16:59 Edited at: 2nd Sep 2008 18:50
@Roxas - Thanks

It is also possible to genetically cross-breed fractals. Here's a mix between a Mandelbrot Set and Julia Set:





The optomist's right, The pessimist's right.

Attachments

Login to view attachments
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 20th Aug 2008 17:43
Quote: "It is also possible to genetically cross-breed fractals."


Holy crap, I didn't know that.

Good work - fractals are awesome.

Don't you just hate that Zotoaster guy?
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 20th Aug 2008 17:55
That is beautiful. I've been a big fan of fractals.
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 20th Aug 2008 21:16
Whilst making this program, I've discovered something, and incorporated it into my program:

I don't know whether you already know this, but when you open a file associated with a .exe it passes the filename, capped by inverted commas, to the command line, accessible from cl$(). This means that you can automatically open a file in your program when you double-click on that file.

The optomist's right, The pessimist's right.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 21st Aug 2008 00:52
Impressive images, well done.
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 21st Aug 2008 16:24 Edited at: 2nd Sep 2008 18:51
The most recent tested feature is the "Batch Process" ability. Up to 6 variables (centre X, centre Y, Julia X, Julia Y, Mandelbrot X, Mandelbrot Y) can be used as for-next loops. Here's the .hf2 code for the batch processing (this will generate 24 seperate images):



This takes about 30 minutes to fully render, but the result is incredible. By tiling the 24 images together in Paint a collosal image such as this one (3600x2400) can be formed.

The optomist's right, The pessimist's right.

Attachments

Login to view attachments
Darth Kiwi
19
Years of Service
User Offline
Joined: 7th Jan 2005
Location: On the brink of insanity.
Posted: 21st Aug 2008 18:32
Good lord absolutely incredible.

Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 27th Aug 2008 19:26
I once tried generating a 12000x9000 pixel-mandelbrot in dbp, afair it needed ~20 minutes to compute everything, but due to the images size dbp crashed when saving it. Your resuls look pretty cool. Maybe the next step would be rendering videos, e.g. with zooms into a fractal (you find tons of them on youtube, but just one made with dbp). Of course not as high-res as the image above.. however, good luck with whatever you do next.

Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 27th Aug 2008 19:41
Some nice, modern looking fractals there .

It's a shame DBPro is missing a scroll palette command.


Health, Ammo, and bacon and eggs!
SunnyKatt
18
Years of Service
User Offline
Joined: 16th Sep 2006
Location: USA
Posted: 27th Aug 2008 20:02
This is really nice.
I can't find a fractal generator with a zoom function anywhere. I love the mandelbrot set, but being able to zoom wherever you like would be sweet.

Favorite Quote: Dramatized code? Code Drama!

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Aug 2008 22:32
@ZekeGames - You can zoom with a little mandelbrot snippet I posted a while ago (almost 6 years ago!!)

http://forum.thegamecreators.com/?m=forum_view&t=1886&b=11

The code could do with a bit of updating but it does generate some nice looking images and you can zoom in with the mouse.

Boo!
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 27th Aug 2008 23:45
@Mr. Kohlenstoff: Your program is obviously faster than mine, but it's not surprising considering I've used a smoothing technique (which continues iterating, even after the point has escaped) as well as a slower display method.

Making zoom animations would take lots of processing, but the display method is an animation. Instead of sweeping a fully-iterated image from left to right, the entire image is updated by 1 iteration each loop. This has the effect of changing a low-iteration image into a high-iteration image over time.

@VanB: Are there any palette commands whatsoever? I've been using a list array consisting of DWORD colour values. To scroll that palette you just need to use:

colour = palette(address mod colours)

@ZekeGames: My program (in effect) has a zoom ability, as the centre position and zoom level can be altered in the text file.

@Spooky: Very fast, and amazing for 20 lines of code. The only criticism is the distinct bands of colour created by using the escape-time algorithm. The sum(EXP(distance)) approach that I've used reduces these bands of colour.

The optomist's right, The pessimist's right.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Aug 2008 13:41
These are great, I love the glow-effect you get, is that down to the palette?

Do you have any plans to do more with this - incorporate it into some other project?

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 28th Aug 2008 14:31 Edited at: 2nd Sep 2008 18:51
It's not just the palette, it's the sum(EXP(distance)) smoothing. Here's an image of the lightning with and without smoothing:



The smoothing can be turned off in the .hf2 file, if the speed advantage is absolutely necessary.

As for incorporating it into another project, the fact that it uses no media or plugins (except for the .hf2 file) means that it can be called like this:



This means that hyperfractals could be used in your own DBPro projects, and would only require about 2MB of space.

The optomist's right, The pessimist's right.

Attachments

Login to view attachments
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 30th Aug 2008 11:06 Edited at: 30th Aug 2008 11:06
Nebulae can now be made in HyperFractals. This one reminds me of the Plieades cluster and the Crab Nebula:



The optomist's right, The pessimist's right.

Attachments

Login to view attachments
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 30th Aug 2008 19:50
Looks really awesome, and I would love to try it out!

Are you going to post the exe?

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th Aug 2008 19:58
Holy Jesus, that Nebulae is insanely ASTOUNDING!


How long did it take to generate that!?

3.11 We do not tolerate posts made for the purpose of putting down another forum member, group of members, religion, our company, our staff or any of our moderators, past or present.
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 31st Aug 2008 03:04
Download plz!

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 31st Aug 2008 19:51
The nebula took 20-30 minutes on a 1.3GHz processor.
As soon as I compile a HTML help file highlighting all of the features, I will post the zipped executable.

The optomist's right, The pessimist's right.
SunnyKatt
18
Years of Service
User Offline
Joined: 16th Sep 2006
Location: USA
Posted: 1st Sep 2008 03:07
spooky - Can you post an EXE of yours as well?

I can't wait to try these out!

Favorite Quote: Dramatized code? Code Drama!

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 2nd Sep 2008 00:35
@ZekeGames - Sure, find a version attached together with source code that is slightly different to the old snippet.

You can change the number in the .ini file to change the 'iterations' value. Basically the higher the number the more detail is created.

Program will run at same res as desktop. When fractal is fully drawn you can drag out a rectangle to zoom in.

Boo!

Attachments

Login to view attachments
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 2nd Sep 2008 04:24
Fun to play with!

What were your settings for the nebula?

RIP Max-Tuesday, November 2 2007
You will be dearly missed.
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 5th Sep 2008 11:23 Edited at: 5th Sep 2008 11:32
My settings for the nebula were:



But don't expect to be able to put that code into Spooky's program!



I have accidentally managed to create a new "bumpmapped" rendering scheme, which creates a 3D effect on a 2D image:



The optomist's right, The pessimist's right.

Attachments

Login to view attachments
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 5th Sep 2008 13:14
[b][/b]

Alucard94
17
Years of Service
User Offline
Joined: 9th Jul 2007
Location: Stockholm, Sweden.
Posted: 5th Sep 2008 16:14
Roxas pretty much summed it up, that's amazing.


TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2008 17:37
Quote: "Fatal error: Maximum execution time of 30 seconds exceeded in C:\apollo\public_html\common.php on line 85"


That`s what happens when I try to view your Nebulae. Amazing job anyway!

Suicide is away of telling God, You can’t fire me I quit !!!!!
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 7th Sep 2008 18:23
Here's the zipped application (executable, help file, examples). The help file is sufficient for you to get started, but it's still in its infancy.

The optomist's right, The pessimist's right.

Attachments

Login to view attachments
mmavipc
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location:
Posted: 7th Sep 2008 18:52
This is amazing
SunnyKatt
18
Years of Service
User Offline
Joined: 16th Sep 2006
Location: USA
Posted: 22nd Sep 2008 02:49
Epic looking, I'll try this out.

Favorite Quote: Dramatized code? Code Drama!

wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 22nd Sep 2008 15:15
wow I see a lot of uses for this program

wind
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 23rd Sep 2008 17:43 Edited at: 23rd Sep 2008 18:34
Thanks for the comments.
Here's a natural-looking one you can create:


And here's the algorithm:



The optomist's right, The pessimist's right.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-30 02:33:05
Your offset time is: 2024-09-30 02:33:05