Join us on Discord!
You can help CodeWalrus stay online by donating here.

Random acts of unnecessary fractals

Started by matrefeytontias, June 08, 2016, 07:01:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matrefeytontias

This year, my CPGE graduation project is a talk about fractals, so I might as well post the things I came up with. I learnt a lot, discovered many types of fractals I didn't know about, and I must say, I'm quite proud of the things I came up with, considering I've only been using SDL, numpy/matplotlib or GLSL to make them.

IFS fractals :


The very well-known. Needless to introduce the Sierpinski triangle.

BUT ! Did you know its lesser-known 3D brother ?

http://www.mirari.fr/sw1a (video, FLV format)

ET fractals (also called complex fractals, I'll let you guess why) :

The very well-known Julia sets with the usual ETA (Escape-Time Algorithm) rendering :



Alright alright, you'll have your Mandelbrot set this time too ... but with orbit trap rendering !



Orbit fractals (the ones I didn't know about) :

And I turn the def low ...



And I turn the def up !


Fun fact about this one, it's so far the one and only time I ever had to calculate a number to the power 201. No kidding.

unsigned int colorGradient(float t)
{
unsigned char *pixels = gradient->pixels;
float st = pow(t - 1, 201) + 1;
int offset = (int)(st * (gradient->w - 1)) * 3;
return (pixels[offset]) + (pixels[offset + 1] << 8) + (pixels[offset + 2] << 16);
}



And there we go, that's about it. I might post more as I run more experiments, because why not.
  • Calculators owned: TI-83+.fr, TI-Nspire CAS prototype, TI-84+ CSE, TI-Nspire CX
My TI games (some got their own article on non-calc websites !) : http://www.ticalc.org/archives/files/authors/112/11202.html

My moozik (100% free metal) : http://www.soundcloud.com/matrefeytontias

Dream of Omnimaga

That 3D Sierpinski triangle looked pretty cool and I like those other fractals :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

Quote from: DJ Omnimaga on June 08, 2016, 07:12:29 PM
matrefeytontias : Bet you can't do the 3D thing that's in my topic with Glib  :P 21:07:34

Challenge accepted !



You killed my z-sorting though  :P

Dream of Omnimaga

That looks cool O.O. I wonder how fast it would spin with z-sorting, though? :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

There is z-sorting (but totally wrong --')  Btw, I didn't say it in my previous post, I jsut love all the fractals screens :D

Yuki

  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

matrefeytontias

Quote from: TheMachine02 on June 08, 2016, 07:35:36 PM
Quote from: DJ Omnimaga on June 08, 2016, 07:12:29 PM
matrefeytontias : Bet you can't do the 3D thing that's in my topic with Glib  :P 21:07:34

Challenge accepted !

[image]

You killed my z-sorting though  :P
Come on, you're not supposed to use a model :P

Also thanks for the compliments guys, I'm glad you like them \o/ I can explain the rendering process for all of them, if you wish to have some insight into how it works.
  • Calculators owned: TI-83+.fr, TI-Nspire CAS prototype, TI-84+ CSE, TI-Nspire CX
My TI games (some got their own article on non-calc websites !) : http://www.ticalc.org/archives/files/authors/112/11202.html

My moozik (100% free metal) : http://www.soundcloud.com/matrefeytontias

Dream of Omnimaga

I am curious about how fast TheMachine02's 3D Sierpinski triangle would be if he used dots to render it. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal