123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|593|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Jay Plays with Mandelbrot

Sat, 10 Sep 2016, 10:32
Jayenkai
Blimey, fractals sure do render slowly!
Sat, 10 Sep 2016, 10:32
Jayenkai
Ffs.. "Shouldn't take too long.." He says..

I decided to try a Fractal render for my next ALChoon video.
I did a teensy bit of code-googling, and managed to get it working in BMax. (I'll post code later)

At about a second per frame when at 640x480, I figured a nice video of approx 3000 frames, at HD res, would probably take about an hour or maybe two.

... FFS!!!
It's been about 5 hours, and the damn thing still isn't done!!

I sure hope it looks good, after all this!

-=-=-
''Load, Next List!''
Sat, 10 Sep 2016, 11:31
Jayenkai
Still going..!
It's currently taking about 10 seconds to render each frame!!

God knows why, they're very empty frames at this point...

-=-=-
''Load, Next List!''
Sat, 10 Sep 2016, 11:39
GfK
Probably cos even though there's not much in each frame, it's still got the same amount of maths to do to work out that there's not much in each frame.
Sat, 10 Sep 2016, 12:22
Jayenkai
Indeed. A fuckton of maths!

.... And it broke!
Or, rather, it zoomed into an area with nothing in it.

56 seconds of video.. 5 sodding hours, and I got 56 seconds!!

*sigh*
Having to restart the whole damn thing, now, with the zoom a bit slower, and the x/y a little off.

Good grief..

I've scaled it down significantly, now, though.
a grid of 4x4 pixels, instead of it being pixel perfect.
Much faster.

-=-=-
''Load, Next List!''
Sat, 10 Sep 2016, 13:24
GfK
Can't you do a low res test to make sure there's something there, then leave a hi res version rendering overnight?
Sat, 10 Sep 2016, 13:30
rockford
There are a few (old) GLB Mandelbrot set generators that can render a scene in about 0.5 seconds. Perhaps you could adapt their code? There are probably C++ and other ones that are faster, but these are easy to read and port.

colour - https://www.glbasic.com/forum/index.php?topic=10319.msg91182#msg91182

B&W - https://www.glbasic.com/forum/index.php?topic=4764.msg36097#msg36097
Sat, 10 Sep 2016, 13:34
shroom_monk
Many years ago, I wrote various fractal generators in BBC Basic, including Mandelbrot. Unfortunately, it seems my copies of that old code have gotten corrupted somehow, or I'd share those versions... :/

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sat, 10 Sep 2016, 13:38
Jayenkai
Tuned it down to a 4x4 pixel grid. Looks alright, and took half an hour to render the 2 minute video. Much much quicker!!

-=-=-
''Load, Next List!''
Sun, 11 Sep 2016, 00:20
spinal
So each pixel is 4x4 or the whole screen is 4x4?
Sun, 11 Sep 2016, 00:39
Jayenkai
Wouldn't be much of a fractal at just 4x4 pixels!
I basically reduced it to 1920/4 x 1080/4, and it all sped up nicely.
Bloody fractals!

I'm going to fiddle about with the single-frame renderer a bit, today, make a nice little "app" of it, then post the sourcecode later for you.

-=-=-
''Load, Next List!''
Thu, 15 Sep 2016, 23:30
Jayenkai

View on YouTube
Fri, 16 Sep 2016, 01:09
rockford
I really liked that, mainly because I love the original game and music so much. Bruce Lee was/is a classic. One of only a few US Gold games that I actually like.
Fri, 16 Sep 2016, 20:22
Dabz
Canny!!!

Dabz