A downloadable niche tool

Download NowName your own price

Godot 4 supports 2d Lighting out of the box and allows for textures which have diffuse, normal and specular map channels, via CanvasTextures.

The downside however is that there is no easy way to convert these textures to animations.

This utility takes images for the diffuse, normal and specular channels and assembles them into SpriteFrames resources, ready to be used by AnimatedSprites.

Note

I create all animation strips in graphical software, then send it to Laigter (free!), and export it as separate images, selecting the normal, diffuse and specular channels for export. The tool was created for that particular pipeline in mind.

Take a look into the To_process folder, an example awaits thee, ready to be converted!

Usage

First, separate the sprites from your animation into individual images (Again, Laigterconverts strips into individual images); combined strips are not supported.

The diffuse channel images should be named somethingclever_d_00.png and placed in the To_process directory/folder. the _d_ stands for diffuse and 0,00,000,etc. represents the frame number in the animation.

The corresponding normal channel images for the above diffuse texture should be named somethingclever_n_00.png and the specular channel images should be named somethingclever_s_00.png.

Once all files are in place, start the utility, find your animation in the left column, select it with the mouse and click the button which appears on the right. A short preview of the animation will play.

This creates a SpriteFrames tres file, which you can then drag and drop into your Godot project and use as-is.

Caveat

The software does not compress textures, resulting in relatively heavy .tres files. If you need smaller files, import your image files into Godot (Simply drag and drop the files into an empty project) and copy both the imagefiles and the resulting .import files thus created into the To_process folder. This can reduce files from several Megabyes to a few dozen Kilobytes!

Made in Godot 4 (RC6) - cleaner version will be released eventually.

Download

Download NowName your own price

Click download now to get access to the following files:

SpriteFramesMaker.zip 23 MB

Leave a comment

Log in with itch.io to leave a comment.