Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxelizer For Godot Engine

Demo Video

IMAGE ALT TEXT HERE

Demo Introduction

Download Link: https://cenullum.itch.io/godot-engine-voxelizer

You can drag and drop your image to be voxelated then rotate this voxelated mesh by using A W S D keys and Y and H keys to move. Also you can give depth value and alpha cut value (alpha_offset) which is for considering a pixel as opaque instead of transparent.

HOW TO IMPLEMENT TO YOUR OWN PROJECT:

  • Add voxelizer.gd to a MeshInstance node
  • Set image to "Voxel Me" on inspector (image shouldn't have filter)
  • 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

What voxelizer.gd does?

This code build a wall which is 2 triangles. It does this if there are no pixels nearby by looking at the forward, backward, left and right of each pixel of the image then creates transparent up and down faces. These faces have the image of the whole picture.

alt text

License On The Project: MIT License

Information About The License: https://opensource.org/licenses/MIT

It would be appreciated if you mention me in your project

About

A demo of voxelation which is make 3d mesh from 2d sprites

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages