Sprite sheet composition #95878

Open
opened 2022-02-19 01:29:41 +01:00 by Fabian Meier · 2 comments

This blender Add-on facilitates the creation of 2d sprite sheets. Sprite sheets are used in many 2d games for animations and I was surprised that there was no easy way to create one in blender.

When I looked into the problem I tried 3 different approaches:

  • Creating planes in a 3d scene, put sprite textures on them and then render it with an orthographic projection.
  • Using the sequence editor, put each sprite into a different channel and compact them using MetaSequences.
  • Using the composition editor, transform image nodes to the correct position.

I found using the composition editor the most performant, managing sprite sheets of up to 150 sprites with a output size of 8192x8192.

Repo of add-on and the full documentation: https://gist.github.com/Aphlax/3c2302541ed17fe5284b83f55e392518

composition_sprite_sheet.py

This blender Add-on facilitates the creation of 2d sprite sheets. Sprite sheets are used in many 2d games for animations and I was surprised that there was no easy way to create one in blender. When I looked into the problem I tried 3 different approaches: - Creating planes in a 3d scene, put sprite textures on them and then render it with an orthographic projection. - Using the sequence editor, put each sprite into a different channel and compact them using MetaSequences. - Using the composition editor, transform image nodes to the correct position. I found using the composition editor the most performant, managing sprite sheets of up to 150 sprites with a output size of 8192x8192. Repo of add-on and the **full documentation**: https://gist.github.com/Aphlax/3c2302541ed17fe5284b83f55e392518 [composition_sprite_sheet.py](https://archive.blender.org/developer/F12874824/composition_sprite_sheet.py)
Author

Added subscriber: @Aphlax

Added subscriber: @Aphlax

Added subscriber: @JacobMerrill-1

Added subscriber: @JacobMerrill-1
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#95878
No description provided.