Skip to content

davidspiv/minecraft_mosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Help I can't stop coding! Here is some of the results from the a program I'm making creates a "mosaic" from discrete textures...in this case, from Minecraft.

The Problem In the most recent Minecraft version, Mojang stores the texture as separate PNG files, not as a single texture atlas AND there are a lot of transparent textures I didn't want.

The Solution So, it was a matter of modifying the "picture" class to accept the Alpha (transparency) channel, detect the textures I wanted, and storing them in memory.

Finally, I take each pixel color and match it the closest averaged block, building a lookup table. I use the lookup table to make the image at the end.

This is my repo:

Here are photos with / without the extra conversions.

Future Changes For those interested, here's a relevant video to color theory, taught using Minecraft: How to average color.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published