I'm trying to learn Computer Graphics with Vulkan. It's a bit hard. But I have followed some tutorials and I have some basic knowledge now.

To check if I can do something with it, I'll try to make a simple program to render the Mandelbrot Fractal.

If I have some half-results I'll post them here !

The first result is here ! I can open a window and have bug withing my shader ! (ideally you should see a circle here somewhere :D )

I think it's a problem of padding and memory alignment but this is something I don't quite understand yet

I "solved" it by doing things at random !

Now the size of the circle and the color is wrong but, progress

Ok ! So right now, I'm sure I do pass the right parameters to my shaders !

Thanks to this magic of alignas that I don't understand.

The fragment shader have for every pixel of the window an associated complex number that will be used to compute the mandelbrot fractal.

But that's for tomorrow. I need to sleep !

Follow

OK I lied, I just added keyboard control of the parameters :
- center of the fractal
- zoom level

now sleep

OK, back to work, here just a simple threshold but we can already see a fun little shape !

Now I have to check how to draw a Mandelbrot set in fact I have no precise idea of how to do this :')

It is possible to zoom in to view a bit more details but I would have thougt to see a lot more even with only single precision... I think I'm missing something

OK, it's because I need to add more "max iterations" and corresponding colors

I think here I go up until the precision of the GPU !

Look at this zoom !!!
I'm happy.

I could see for more beautiful colors ; multisampling also, aaaand maybe to see how I can obtain even more precision but this is a topic I don't know so maybe but maybe not

I have supersampling and a basic handling of color palette ! Now, pause, I need to eat. And maybe I'll think about infinite precision but on GPU I'm not sure :x

@nausicaa Now i want to play with fractals too. Don't know if i'll make something as pretty as this but... darn this is pretty.

Sign in to participate in the conversation
Mastodon.ART

Mastodon.ART — Your friendly creative home on the Fediverse! Interact with friends and discover new ones, all on a platform that is community-owned and ad-free. Admin: @Curator. Currently active moderators: @ScribbleAddict, @TapiocaPearl, @Otherbuttons, @Eyeling, @ljwrites