Fractal Explorer

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Ikroth
Citizen
Posts: 79
Joined: Thu Jul 18, 2013 4:44 am

Fractal Explorer

Post by Ikroth »

This is just a small project I've been working on for a while. It can render the Julia set and Mandelbrot set with smooth coloring. It supports something like 100,000x zoom (that's as far as a float will get you).

These are some pictures I've taken from it:

Image
Image
Image
Image

Source code:
https://github.com/camchenry/code-doodl ... master/2-1
Attachments
fractal-explorer.love
(3.87 KiB) Downloaded 358 times
Last edited by Ikroth on Fri Dec 23, 2016 6:51 am, edited 1 time in total.
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: Fractal Explorer

Post by Sir_Silver »

I tried downloading your .love file and running it, and got this error:

Image

Not sure if it's relevant, but I am running love version 0.10.1.
User avatar
zorg
Party member
Posts: 3468
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Fractal Explorer

Post by zorg »

Sir_Silver wrote:I tried downloading your .love file and running it, and got this error:
-img-
Not sure if it's relevant, but I am running love version 0.10.1.
iirc 0.10 may have separate sendInt methods for shaders? It should be on the wiki.
Edit:
Because all numbers in Lua are floating point, in versions prior to 0.10.2 you must use the function Shader:sendInt to send values to uniform int variables in the shader's code.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Ikroth
Citizen
Posts: 79
Joined: Thu Jul 18, 2013 4:44 am

Re: Fractal Explorer

Post by Ikroth »

I uploaded a new version, it might fix the problem. I don't really have any way of testing on 0.10.1. If it doesn't work, then I'll just say this requires 0.10.2.
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: Fractal Explorer

Post by Sir_Silver »

There we go, your new version works for me, cheers!
User avatar
Murii
Party member
Posts: 216
Joined: Fri Jul 05, 2013 9:58 am
Location: Arad, Romania
Contact:

Re: Fractal Explorer

Post by Murii »

Wonderful job!
bob_fossil
Prole
Posts: 17
Joined: Fri Apr 29, 2011 2:45 pm

Re: Fractal Explorer

Post by bob_fossil »

Good stuff! It's been a while since I played around with fractals. And by 'while' I mean watching them being rendered a frame at a time on a 68000 processor running at ~7mhz over a period of several minutes. So being able to real time zoom into them in an interpreted language is borderline witchcraft. :)
User avatar
MetalMelnic
Prole
Posts: 10
Joined: Sat Mar 04, 2017 3:52 am

Re: Fractal Explorer

Post by MetalMelnic »

Very nice! Can you explain to me why for this application, why there's a significant lag spike when increasing super sampling for very little quality increase?
Before we learn to run, we must first learn to walk;
before we learn to walk, we must first learn to crawl;
Why should programming be any different?
User avatar
Ikroth
Citizen
Posts: 79
Joined: Thu Jul 18, 2013 4:44 am

Re: Fractal Explorer

Post by Ikroth »

MetalMelnic wrote: Mon Mar 06, 2017 5:35 am Very nice! Can you explain to me why for this application, why there's a significant lag spike when increasing super sampling for very little quality increase?
It's a lazy and naive implementation on my part. Supersampling just means that it checks neighboring points that are inbetween pixels which is effectively like increasing your resolution. Turning up supersampling is like doubling or tripling your resolution. I could implement it more efficiently, probably.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 8 guests