Now with GPU processing


I updated the system to use a shader that runs on the GPU instead of using GDscript which runs on the CPU. For most people making games this should mean that the processing for SDF files is near instant. I also added a safety because on larger files and when using a large kernel size, my computer would crash. I am using Kubuntu for my computer so Windows and Mac might not have this problem. Non-KDE linux distros likewise might not have the same issue. It was difficult to debug with the crashing so I set a safety lock which can be unlocked to allow larger kernel sizes.


I also spruced up to look and style of the tool to make it look better overall.

Another big issue I fixed is that the older version technically wasn't generating true SDFs. I forgot to generate for the inner distance. This is fixed in the current version so that the 0.0-0.5 is outside the glyph and 0.5-1.0 is inside of the glyph. 

Using these textures will require a bit of knowledge on how to write shaders in your engine of choice so be sure to check out the links I referenced on the main page. They should help show ways to use these maps for interesting effects in games.

Files

godot_sdf_gen_mac.zip 27 MB
May 20, 2022
godot_sdf_gen_windows.zip 14 MB
May 20, 2022
godot_sdf_gen_linux.zip 15 MB
May 20, 2022

Get Godot SDF Gen

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.