Mandelbrot Core

kobus
Posts: 2
Joined: Sun Dec 13, 2020 2:25 pm
Been thanked: 9 times

Mandelbrot Core

Unread post by kobus »

All,

Did a Mandelbrot core a couple of months ago as wanted to learn about FPGAs.

Have uploaded it to https://github.com/jacquesdriessen/MiSTer-mandelbrot.

Control with the keyboard (z/x is zoom in / out, and adws to navigate). Rest of it should be self explanatory.

In terms of technical implementation:
- Only a small amount of VHDL (simply to integrate things).
- Most of the logic is done using drawings [found it amazing that you can just "draw what you want"]
- There is one part distributing all the "points to be calculated" over the pipelines.
- Could cram 20 pipelines on the design (you can individually switch the off) that do the actual work.
- And the last part then takes the output of the pipelines and moves it to the frame buffer.

I hope you will enjoy it.

Jacques.
User avatar
LamerDeluxe
Posts: 308
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 163 times
Been thanked: 41 times

Re: Mandelbrot Core

Unread post by LamerDeluxe »

Awesome, another classic added to MiSTer and really fascinating to have it implemented in FPGA. Looking forward to trying it.
User avatar
aberu
Posts: 446
Joined: Tue Jun 09, 2020 8:34 pm
Location: Longmont, CO
Has thanked: 72 times
Been thanked: 83 times

Re: Mandelbrot Core

Unread post by aberu »

This is very cool! Thanks!

Now someone do the matrix effect next! :P
hiddenbyleaves
Posts: 77
Joined: Mon Nov 02, 2020 11:25 am
Has thanked: 24 times
Been thanked: 14 times

Re: Mandelbrot Core

Unread post by hiddenbyleaves »

There is a genesis homebrew called Matrix Digital Rain that I boot my MiSTer into instead of the menu core.
hiddenbyleaves
Posts: 77
Joined: Mon Nov 02, 2020 11:25 am
Has thanked: 24 times
Been thanked: 14 times

Re: Mandelbrot Core

Unread post by hiddenbyleaves »

Will this display on a crt?
kobus
Posts: 2
Joined: Sun Dec 13, 2020 2:25 pm
Been thanked: 9 times

Re: Mandelbrot Core

Unread post by kobus »

Assume it will not display on a CRT. Using 1920x1080 HDMI Framebuffer.
AntialiasedPixel
Posts: 28
Joined: Mon May 25, 2020 2:17 am
Been thanked: 1 time

Re: Mandelbrot Core

Unread post by AntialiasedPixel »

This is super cool! I keep meaning to do some projects with my DE-10. I got about as far as generating some color gradients on the screen a year ago and haven't had time to tinker with it since.

What limits zooming on fractals? Is it the iterations or a memory thing? I remember using Fractint for DOS on a 386 and being able to zoom in super far. It seems like it's somewhat limited here, but I haven't played around with the settings a ton yet.
User avatar
pgimeno
Posts: 157
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 50 times
Been thanked: 25 times

Re: Mandelbrot Core

Unread post by pgimeno »

AntialiasedPixel wrote: Sat Mar 20, 2021 7:16 pm What limits zooming on fractals? Is it the iterations or a memory thing? I remember using Fractint for DOS on a 386 and being able to zoom in super far. It seems like it's somewhat limited here, but I haven't played around with the settings a ton yet.
The limit is precision. Fractint (which still lives) switches to arbitrary precision numbers at certain zoom levels, but doing the same in hardware is complicated.
User avatar
pgimeno
Posts: 157
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 50 times
Been thanked: 25 times

Re: Mandelbrot Core

Unread post by pgimeno »

Checked it now, it works great up to the precision!

Would it be possible to enable screenshots? When I tried to take one, it said "Scaler not compatible".

Also, would it be possible to add flipping of up/down and left/right? I get confused, especially with left/right.
AntialiasedPixel
Posts: 28
Joined: Mon May 25, 2020 2:17 am
Been thanked: 1 time

Re: Mandelbrot Core

Unread post by AntialiasedPixel »

pgimeno wrote: Sat Mar 20, 2021 9:45 pm Also, would it be possible to add flipping of up/down and left/right? I get confused, especially with left/right.
I'll second this request, the controls were opposite what I was expecting.
User avatar
Moondandy
Posts: 151
Joined: Mon May 25, 2020 2:14 am
Location: London, UK
Has thanked: 1 time
Been thanked: 9 times

Re: Mandelbrot Core

Unread post by Moondandy »

That's very cool you did this, there is a Mandelbrot core on the NT Mini Noir. Can this be added into the Main repro in the Other section?
User avatar
ericgus09
Posts: 103
Joined: Mon May 25, 2020 2:47 am
Has thanked: 1 time
Been thanked: 5 times

Re: Mandelbrot Core

Unread post by ericgus09 »

I am getting a really bad display with this core anyway to override the resolution settings, doesn't seem to play nice with my DELL LCD monitor (U2410 F Size: 24 in Resolution: 1920 x 1200).. screen is scrambled and jumping all over the place.. no stable picture .. F12 menu works but the graphics are a total fail.
User avatar
bazza_12
Posts: 137
Joined: Sun May 24, 2020 7:49 pm
Location: Yorkshire, UK
Has thanked: 60 times
Been thanked: 24 times
Contact:

Re: Mandelbrot Core

Unread post by bazza_12 »

ericgus09 wrote: Sun Mar 21, 2021 10:28 pmscreen is scrambled and jumping all over the place.. no stable picture .. F12 menu works but the graphics are a total fail.
same :(
The music is reversible but time is not. Turn back. Turn back
User avatar
Alkadian
Posts: 354
Joined: Thu May 28, 2020 9:55 am
Has thanked: 73 times
Been thanked: 19 times

Re: Mandelbrot Core

Unread post by Alkadian »

I confirm this behaviour, same here.
Post Reply