Page 1 of 1
Fractal Explorer
Posted: Fri Dec 23, 2016 5:02 am
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:
Source code:
https://github.com/camchenry/code-doodl ... master/2-1
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 5:57 am
by Sir_Silver
I tried downloading your .love file and running it, and got this error:
Not sure if it's relevant, but I am running love version 0.10.1.
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 6:24 am
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.
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 6:52 am
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.
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 7:17 am
by Sir_Silver
There we go, your new version works for me, cheers!
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 12:46 pm
by Murii
Wonderful job!
Re: Fractal Explorer
Posted: Fri Dec 23, 2016 4:49 pm
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.
Re: Fractal Explorer
Posted: Mon Mar 06, 2017 5:35 am
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?
Re: Fractal Explorer
Posted: Tue Mar 07, 2017 3:44 am
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.