A downloadable script

Download NowName your own price

PixelMesh.gd is a custom script for Godot 3.x to display pixelart in a 3D environment. Unlike Sprite3D, the art is displayed as a multimesh node, each cube instance representing a single pixel of the displayed sprite frame. The script also supports animation.

How to use:

  1. Copy the gdscript file into your Godot project.
  2. In the scene tab click the plus sign, search for PixelMesh and add the node to your scene
  3. Add a texture to the pixelmesh node
  4. Set the number of horizontal and vertical frames for your texture via hframes and vframes
  5. Have fun!

For more in depth information see the trailer on this page.

Licence:

The script is distributed under the MIT licence

Download

Download NowName your own price

Click download now to get access to the following files:

PixelMesh.gd 4 kB

Comments

Log in with itch.io to leave a comment.

Thank you, that's what I've been looking for!

Do you know about solutions for bigger non pixel art images? Gotod can generate 2d meshes from images, maybe if we just add width to them it would work. Also I'm thinking about using normals (probably just black and white texture would be better) to make bumping voxels

(1 edit)

Hi sorry for the late reply. Yeah I've thought about that kind of stuff too. In the end I always come to the conclusion that some kind of in-Godot editor might be the best way to go. However that's a big task. Also it doesn't really fit in my current game project, which I'm focusing on right now. But it's something I might want to tackle again for the next project. Thanks for your support :)