Hello everyone. I I would like to have a sprite that is animated and takes up the whole screen. The problem is that the screen is 1280x720 and there is 7 frames of animation. So to make a sprite sheet the normal way it would end up being a 8960x720 texture which is just stupidly huge. Does anyone have any advice on how I might accomplish this on Unity free without the ridiculous texture size? Thanks in advance.
The first obvious answer is “don’t do that kind of thing !”.
There must be a way to either :
- animate only some parts of your big sprite with small cheaper sprites on top of it.
- break up your big sprite in smaller sections which are only animated with their pivot or with a few keyframes of animation each
- use a vertex shader (skinning or hardcoded) or a fragment shader to animate the basic shape of your sprite
- redesigned the whole thing to avoid that situation and be able to apply one of the previous solution.
You can also make smaller ‘big’ sprites and just scale them up on screen. They’ll be a bit blurry but hey…
… and if you really really have to go with the ridiculously huge animation (and I don’t say you should ^^), you can avoid the huge texture (improper for some hardware) by just swapping materials. One material for each keyframe. It’s gross, it’s unoptimized but it will work.