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
Fractal Explorer
Fractal Explorer
- 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.
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Fractal Explorer
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.
Not sure if it's relevant, but I am running love version 0.10.1.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Fractal Explorer
iirc 0.10 may have separate sendInt methods for shaders? It should be on the wiki.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.
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 True 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.
Re: Fractal Explorer
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.
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Fractal Explorer
There we go, your new version works for me, cheers!
-
- Prole
- Posts: 17
- Joined: Fri Apr 29, 2011 2:45 pm
Re: Fractal Explorer
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.
- MetalMelnic
- Prole
- Posts: 10
- Joined: Sat Mar 04, 2017 3:52 am
Re: Fractal Explorer
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?
before we learn to walk, we must first learn to crawl;
Why should programming be any different?
Re: Fractal Explorer
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.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?
Who is online
Users browsing this forum: No registered users and 2 guests