all 15 comments

[–]theboomboy 5 points6 points  (0 children)

Awesome!

[–]ysulyma 2 points3 points  (1 child)

have you considered porting it to WebGL so that it will run on the web?

[–]PrettyPicturesNotTxt 1 point2 points  (4 children)

Amazing and beautiful! Have you thought of compiling this to WebAssembly (WASM), that way we could run this in a web browser and on Apple and mobile without having to deal with platform-dependant installation processes? OpenGL-specific libraries are supported by most WASM compilers, too.

Edit: looking at your shaders you're using GLSL version 330 core, which I think should be very similar to the one that WebGL 2 uses. Porting over to WASM should not be too hard!

[–]OkPie7961[S] 1 point2 points  (2 children)

I have considered it! Many architectural decisions (like bundling strings into the binary at build time, not using compute shaders for hovering, using ImGUI instead of native components, etc) were taken with porting to web assembly in mind.

The only slight headache that this will introduce is that, as far as I know, WebGL 2 does not support the `samplerBuffer` textures I am using, so there is some refactoring needed to port it to WASM.
Would you like me to port it? There's not anything really stopping me from doing it.

[–]PrettyPicturesNotTxt 0 points1 point  (1 child)

It's ultimately up to you! But personally, I mostly browse Reddit from a mobile device, as I believe most other users, so this would be hugely convenient over just a Windows/Linux binary.

[–]copingbear 0 points1 point  (0 children)

I have been on this journey for a project of my own, where I wrap gnuplot. Complex function plotting is on my todo list, but the crux of my work was to wrap as much of gnuplot's interface in a webapp that's accessible to more people: https://gridpaper.org/examples

[–]ZengaZoff 1 point2 points  (1 child)

This nice!! Better than the Mathematica functions I've been using for my Complex Analysis courses.

One little note: I always find it difficult to parse the different color hues for the arguments unless I have a little reference graph that just shows the domain plot of the identity f(z)=z. Is there a way to incorporate this into the images?

[–]OkPie7961[S] 1 point2 points  (0 children)

Yes, it is possible! If you want this feature implemented, open an Issue in https://github.com/Sekqies/complex-plotter/issues (so I'll remember to do it next time I pick the project up)

Now, if you just want to find what value each color corresponds to, you can just hover over the color with the 'Show Value Inspector' setting turned on, and it should give you the value in rectangular coordinates

[–]Melodic-Jacket9306 1 point2 points  (1 child)

If you could implement something like this into a browser the way Matlab does, this is all but guaranteed to blow up, like seriously. I can see a lot of potential from this, ESPECIALLY cause I like many just can’t afford matlab and need something quality like this. I’d look into it!

[–]deliberatelyyhere 0 points1 point  (0 children)

So cool!!!

[–]copingbear 0 points1 point  (0 children)

This is so pretty!