A friend of mine found on his own about 20 years ago programming fractals in Amiga basic, and since then have I ported/played with to Java, C++, and eventually JavaScript.
> Maybe one day I will revisit this project and properly rewrite the whole thing.
I recommend doing it in GLSL. It's very little effort to implement (about 30–50 lines of code) and even on a modest GPU it'll run fast enough so you can explore different parameters interactively. As a bonus, you can get MIP-mapping for basically free — no more aliasing!
In case you don't want to learn OpenGL or Vulkan, you can use a tool such as Shadertoy.
Writing fractal shaders is great fun, agreed. I found mip mapping introduced artefacts around discontinuities in the texture coordinates - this was doing orbit trap texturing, but the UVs in the described method would have similar discontinuities. The artefacts can be reduced with a bit of care, iirc
glChAoS.P ⋅ wglchaosp.p - Real time 3D strange attractors GPU explorer... and hypercomplex fractals
It's both OpenGL and WebGL (via WebAssembly), also opensource and multi platform.. and explores over 100 types between attractors, fractals and also DLA3D (Diffusion Limited Aggregation)
15 comments
[ 4.0 ms ] story [ 44.9 ms ] threadI explain in detail how an image can be inserted in a Mandelbrot/Julia set.
Again, sorry for my English.
(Images are not uploaded, all in browser)
Here's the results of an AfterEffects video plugin I wrote about 2003: https://vimeo.com/105310176
https://www.deviantart.com/bryceguy72/art/Julia-s-Garden-781...
https://www.deviantart.com/bryceguy72/art/Dark-Forces-575209...
https://www.deviantart.com/bryceguy72/art/Cobra-Cantor-19622...
https://www.deviantart.com/bryceguy72/art/Weaver-Fever-19728...
I recommend doing it in GLSL. It's very little effort to implement (about 30–50 lines of code) and even on a modest GPU it'll run fast enough so you can explore different parameters interactively. As a bonus, you can get MIP-mapping for basically free — no more aliasing!
In case you don't want to learn OpenGL or Vulkan, you can use a tool such as Shadertoy.
I found great and fabulous this: https://www.michelemorrone.eu/glchaosp/
glChAoS.P ⋅ wglchaosp.p - Real time 3D strange attractors GPU explorer... and hypercomplex fractals
It's both OpenGL and WebGL (via WebAssembly), also opensource and multi platform.. and explores over 100 types between attractors, fractals and also DLA3D (Diffusion Limited Aggregation)
Very beautiful!