this is a presentation for a very simple sprite engine I’ve built.
It supports static, billboard and multi-angle (rotoscoped) sprites all of which can be animated.
also its posibble to lock sprite pitching towards the camera so they keep upright.
it’s also possible to change the animation-fps per sprite.
For the material it's necessary to use the provided shader which is a customized version of the lighting shader.
I'm aware that the way the SpriteSheets works is not best-practice and maybe this will change in the future but it works great as far as I know.
To generate compatible SpriteSheets it's necessary to use this software : Sprite Sheet Packer.
it generates a spritesheet with all the selected images and a index file with the image-layout which my SpriteSheet class uses to calculate UV-offsets and scales.
The sprite engine uses a naming convention for the sprites, make sure you name them according to this before generating the spritesheet :
these names are saved in the txt-file generated by Sprite Sheet Packer and interpreted by the SpriteSheet Class as seperate sprites with the right information.
the first frame is 0 and orientations for rotoscoping can be : left, right, back and front, also it's very easy to adjust the code for support for more orientations;
The source is located at Github and ready to go, with the same scene as the video.
Github location : SpriteEngine
I warn everybody that this is not an example of best practices but it works great.
it runs at about 950 fps on my mobile nvidia gpu.
Any suggestions or questions are welcome also feel free to commit issues at Github.
I just someone besides me has a use for this