News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Burning ship fractal program

Started by NoCforMe, July 14, 2023, 04:19:40 AM

Previous topic - Next topic

NoCforMe

Here's a program I wrote several years ago that displays the "burning ship" fractal. It shows static images that you can zoom into and out of. It's quite a fractal, very spooky-looking with lots and lots of surprising detail in certain areas. Please play around with it if you like. Use File--> Create fractal... to display an image. I have a list of preset images, or you can play around with the parameters. Once an image is displayed you can right-click and use the popup menu to zoom in. Left-click to choose the position on which to center the zoom-in.

I wish it did more, like being able to interactively zoom and pan around. But since the images are so computational-intensive, this isn't easy to do. And when zooming in, I find the zoom-in "bottoms out" before too long; the problem here is that zooming in is accomplished by restricting the range of the image, and pretty soon the numbers get too small for the FPU to deal with them. Haven't figured out how to get around that.

I'll post the code if anyone's interested. It's pretty big and complicated, but as with all my stuff I'm certainly willing to share it.

There are some really good burning ship videos on YouTube to show the incredible complexity of deep zooms.
Assembly language programming should be fun. That's why I do it.

NoCforMe

Here are the formulas that create this fractal. Pretty simple. Amazing that such complexity arises out of them; where does all that stuff come from?
Assembly language programming should be fun. That's why I do it.

zedd151

Quote from: NoCforMe on July 14, 2023, 04:44:58 AM
Here are the formulas that create this fractal. Pretty simple. Amazing that such complexity arises out of them; where does all that stuff come from?
Benoit B. Mandelbrot.   https://nnart.org/history-of-fractals/#Benoit_B_Mandelbrot_Father_of_Fractals

jj2007

Looks good, but why does bs.exe take almost half a minute to launch?

When I open it with Olly, it takes 20 seconds to load the DLLs etc; once ready, when I press F9 to run bs.exe, it shows the dialog immediately.

This is on Win7-64. In my XP VM, it comes up immediately. Very weird :rolleyes:

Mikl__


NoCforMe

Quote from: jj2007 on July 14, 2023, 07:21:49 AM
Looks good, but why does bs.exe take almost half a minute to launch?
I have no idea. I noticed the same thing. At first I though it was maybe Windows Defender frowning and wondering whether it should permit the program to run.

Windoze 7(64) Pro here.

Quote
When I open it with Olly, it takes 20 seconds to load the DLLs etc; once ready, when I press F9 to run bs.exe, it shows the dialog immediately.

This is on Win7-64. In my XP VM, it comes up immediately. Very weird :rolleyes:
Assembly language programming should be fun. That's why I do it.

NoCforMe

Quote from: Mikl__ on July 14, 2023, 07:35:38 AM
Hi, NoCforMe!


Right back atcha! How's tricks with you? Did you try the fractal thing?
Assembly language programming should be fun. That's why I do it.

Greenhorn

Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

NoCforMe

Quote from: Greenhorn on July 15, 2023, 04:11:10 AM
Looks good  :thumbsup:

Thanks. Any suggestions? This was my first and only fractal program. I'd like to be able to dive deeper into the pattern.
Assembly language programming should be fun. That's why I do it.

six_L

Hi,NoCforMe
Looks good.  :thumbsup:
The Mandelbrot Fractals are amazing. There are so many variants.
Say you, Say me, Say the codes together for ever.

NoCforMe

Ackshooly, the burning ship fractal isn't part of the Mandelbrot set, strictly speaking. At most it's a variant of that set.

Still, it's all very cool. So many strange images!
Assembly language programming should be fun. That's why I do it.

raymond

Hi,NoCforMe
Just had a look at it. Interesting. :eusa_clap:  Will explore it further.

While on the subject of the Mandelbrot set, I got interested in it many many many years ago and I attempted to write my own program. For the curious ones not yet aware of it, you may d/l it from the same area as my FPU tut, where I cover complex numbers, i.e.

http://www.ray.masmcode.com/complex.html

Enjoy

Just remembered that the "Help" file may not be usable unless you have an old version of Windows.  :undecided:  :undecided:  :undecided:  :undecided:
Whenever you assume something, you risk being wrong half the time.
https://masm32.com/masmcode/rayfil/index.html

mineiro

Arthur C Clarke - Fractals: The Colours of Infinity (1995):
https://www.youtube.com/watch?v=DyeR19m8gGk
Also about fractal compression.

I'd rather be this ambulant metamorphosis than to have that old opinion about everything

daydreamer

cool NoCforme :thumbsup:
@raymond ,when you still worked did you used complex math?
when I went to school as teenager as electronics engineer,we also got some training in AC electric engines and taught complex math for the phase shift and how to compensate it with add condensator
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

raymond

Quote from: daydreamer on July 19, 2023, 08:27:31 PM@raymond ,when you still worked did you used complex math?

NO. Complex maths were not covered in high school, neither in chemistry classes at university. Only became aware of complex math when I was introduced to fractals later in life. And, desk tops were barely coming onto the market when I retired in '88 (i.e. 35 years ago!!!!).
Whenever you assume something, you risk being wrong half the time.
https://masm32.com/masmcode/rayfil/index.html