Godot engine Voxelizer
GitHub Page: https://github.com/cenullum/Voxelizer-For-Godot-Engine
Drag & Drop system doesnt work on web but you can change depth and rotate
please watch the video
----- New version--------------
It is a system which like in minecraft while you holding an item that voxelized. And I have achieved to detect holes(transparent areas in colored area) and separeted areas in png image.
In previous version I was using ear clipping and it was taking a lot of performance
In this new method, 64x64 images take 3-5 milliseconds to voxelize after you dropped a image .
HOW TO IMPLEMENT TO YOUR OWN PROJECT:
Add voxelizer.gd to a MeshInstance node
Set sprite to "Voxel Me" on inspector
Set TransparentMaterial.tres to "Material" on inspector as script parametre, NOT DIRECTLY
You can change alpha offset and depth if you want
If you want to change sprite via code you can use func voxelization() and send sprite as parametre in it
HOW IT WORKS:
License On The Project: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
Information About The License: https://creativecommons.org/share-your-work/public-domain/cc0/
Download
Click download now to get access to the following files: