I Made Paint by Numbers in Unity @kylebanks
I Made Paint by Numbers in Unity  @kylebanks
Uploaded January 2024 | Updated November 2026, 57 minutes ago
Check out Codecks and get 50% off the first 3 months of any subscription
πŸ‘‰ codecks.io/kyle

Support development on Patreon
❀️ patreon.com/kylebanks

Wishlist Farewell North on Steam
πŸ‘‰ farewell-north.com/steam

Join the Discord
πŸ‘‰ farewell-north.com/discord

In this video we'll dig into multiple clustering algorithms, including K-Means Clustering and Simple Linear Iterative Clustering (SLIC Superpixels), to see if we can generate Paint by Numbers from any image in Unity. We'll implement these algorithms in Compute Shaders and C# to eventually implement color palette selection and region segmentation for our Paint by Numbers generator.

We'll also explore a few supporting topics, including the CIELAB color space to see if it allows us to better select our palette colors from the original image, a simple blur technique to smooth out the image details, and feeding the SLIC output into our K-Means algorithm for a nice performance boost.

Enjoy!

References & Credits:
All images in this video from Unsplash.com
The Ultimate Guide to K-Means Clustering: Definition, Methods and Applications - analyticsvidhya.com/blog/2019/08/comprehensive-guide-k-means-clustering/#What_Is_K-Means_Clustering?
SLIC Superpixels - https://www.epfl.ch/labs/ivrl/research/slic-superpixels/
An Improved SLIC Algorithm for Segmentation of Microscopic Cell Images - sciencedirect.com/science/article/abs/pii/S1746809421010612#:~:text=The%20SLIC%20algorithm%20is%20used,and%20other%20image%20segmentation%20tasks.
Segmentation: A SLIC Superpixel Tutorial using Python - pyimagesearch.com/2014/07/28/a-slic-superpixel-tutorial-using-python
slic-python-implementation - github.com/laixintao/slic-python-implementation
CIELAB Color Space - en.wikipedia.org/wiki/CIELAB_color_space
ColorSpace - github.com/fuqunaga/ColorSpace
Your Colors Suck (it's not your fault) - youtube.com/watch?v=fv-wlo8yVhk

Game Overview:
Restore color to the desolate islands of Farewell North, an open world journey where you play as a collie traveling with his owner. Explore land and sea, uncover hidden paths, evade monsters, and free wildlife to bring color back to the world while revealing an emotional story about saying farewell.

0:00 Paint by Numbers
0:35 K-Means Clustering
3:33 CIELAB Color Space
5:25 codecks.io/kyle
6:30 Simple Linear Iterative Clustering (SLIC Superpixels)
8:55 Blur
9:30 Borders
11:00 SLIC into K-Means
11:35 Paint by Numbers

#devlog #gamedev #gaming #videogames #indiedev #indiegame #unity #unity3d #madewithunity #indiegames #indiegamedev #gamers #superpixels #algorithm #shaders
I Made Paint by Numbers in UnityTaking my Indie Horror Game to Tokyo Game Show | DEMO OUT NOW!SECRETS Hidden in Farewell North πŸŒΏπŸ‘€ #shortsFour Years of Gamedev in One Minute! 🐺🌿 #shortsFarewell North - Demo TrailerTomorrow Im Releasing my First Indie Game!! 🌿✨#shortsIts time to work on something NEW | DevlogThe ONE Thing You Need to Learn to Start Making GamesI had to cut some BAD ideas... | DevlogI FINALLY Solved my Animation Problems #gamedevCreating Shaders that Restore Color to the WorldI hid a 3D platformer INSIDE another game πŸ”₯ #shorts
Kyle Banks |

I Made "Paint by Numbers" in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER