Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.22 KB

README.md

File metadata and controls

29 lines (15 loc) · 1.22 KB

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