Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:08 
User avatar

Joined: 31st Mar, 2008
Posts: 1883
This place is understandably glum at the moment. I hope this will cheer someone up, maybe the older and geekier among you *waves*.

At some point during the last couple of months, Microsoft finally fixed whatever it was that was preventing me from installing Visual Studio 2015 Community in Windows 10. So I have been teaching myself some DirectX, and while learning pixel shaders, I had a light-bulb moment.

And here is the result, a program that will let you zoom around in the Mandelbrot set in real time. Behold a demonstration:



You basically just left click to zoom in, right click to zoom out. The program will start up with a text summarizing the functions available. Esc to quit.

You can use alt-enter to leave full screen mode.

The program should work on Windows 7 (fully updated) or newer, but you need a graphics card that supports Shader Model 4.0 (ie. DirectX 10, I think). That's probably almost all of them by now. If you don't have that, the program will simply quit with a baffling message.

I have limited the maximum zoom level, because beyond the chosen point, the floating point number representation becomes insufficient for the calculations, and things start the get wobbly and pixelated anyway.

If you get areas where the spirals have black holes at the centre, or where the edge of the black part (the actual Mandelbrot set) looks incomplete, you can try increasing the max. iterations. But be careful! Setting this too high may cause the program to become unresponsive, since it will basically lock the pixel shaders. I have limited this possibility to a point that seems safe, but I have no way of knowing if it is enough for all computers - so just make sure the frame rate doesn't drop too far. Be particularly wary if there is a lot of black on the screen since this is where that max. number of calculations are done. If you are unsure, don't touch it, or at least make sure you don't have any unsaved work in other programs (probably the right thing to do in any case).

Now then, THIS IS UNSIGNED CODE STRAIGHT OUT OF MY COMPUTER. I have obviously done my utmost to ensure that this program is safe to run. It doesn't do any I/O writes or network stuff. But if you suspect that I am a terrible person, or simply inept, don't run it! Or use a sandbox or whatever. YOU RUN IT AT YOUR OWN RISK!. I am truly sorry to have to say this, because it sounds terrible, but I feel I need to cover my back.


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:12 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69719
Location: Your Mum
That looks cool.

What's a Mandelbrot set?

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:13 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55719
Location: California
Grim... wrote:
That looks cool.

What's a Mandelbrot set?

It's mathematical awesomeness.

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:16 
User avatar

Joined: 31st Mar, 2008
Posts: 1883
Grim... wrote:
That looks cool.

What's a Mandelbrot set?

https://en.wikipedia.org/wiki/Mandelbrot_set

You young and fast living types, you wouldn't know this sort of thing.


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:19 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12336

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 15:58 
User avatar

Joined: 31st Mar, 2008
Posts: 1883
BTW, if you try to run it and Windows says No Fucking Way, click 'More info' to get to tell it Yes Fucking Way. At your own risk, obv.


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 16:03 
User avatar
Heavy Metal Tough Guy

Joined: 31st Mar, 2008
Posts: 6611
That video is awesome, and has made my eyes and brain go all wonky.


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 16:06 
User avatar
Hibernating Druid

Joined: 27th Mar, 2008
Posts: 49361
Location: Standing on your mother's Porsche
Heh, Koch Curve.

_________________
SD&DG Illustrated! Behance Bleep Bloop

'Not without talent but dragged down by bass turgidity'


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Tue Jun 28, 2016 16:16 
User avatar
Unpossible!

Joined: 27th Jun, 2008
Posts: 38659
Infinite Complexity!

ARRRRRRGGGGGggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

etc...


Top
 Profile  
 
 Post subject: Re: Real-time Mandelbrot app
PostPosted: Wed Jun 29, 2016 15:53 
User avatar
Caution Live Bear.

Joined: 1st Apr, 2008
Posts: 447
Location: Lun Dun
That was pretty cool, I do quite like Fractals and trippy stuff like that.

_________________
My ''Bearly'' updated Youtube channel Sad Cloud Home


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MaliA and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC. RIP, Dimmers.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.