This is a technical demonstration of GLSL graphical based on DNN technology.
It is created based on her explanatory video.
The distance function was calculated using deep learning technology and converted into data.
Since Windiws10 20H2, CUDA has been able to run in ubuntu environment, which makes machine learning very easy.
In this section, we will explain the path from environment setup to SDF data creation.
By applying this technology, you will be able to convert any "waveform", "image", or "3D data" into a distance function.
■preparation■
1.Turn on Virtualization Technology in BIOS.
2.Under "Enable or disable Windows features", check "Hyper-V".
3.Check "Windows Subsystem for Linux" and "Virtual Machine Platform" as well.
Paste the URL listed in the jupyter-notebook into the google-chrome URL launched from ubuntu.
The ubuntu folder will appear, click on sdf.ipynb to open it.
You can do this by clicking on the Is[n] part and pressing RUN as explained in the video.
※Note: The line serialize_to_shadertoy(sdf_siren, "f") here must be removed or an error will occur.
If all goes well, you will get the results from here, and you can check them by pasting them into shadertoy.
In the project folder, you will also find sad_cat, a cat image, and a sample distance function that includes colors. This method has a wide range of applications, so you can use it to create distance functions for waveforms, convert 2D images, or process them with post-processing shaders.