JA
/
EN

Blender | Trying a UV Sprite Countdown Animation

  • Blender

What I Actually Made

This is the kind of countdown animation you often see.
I’ll animate it by shifting the UV of a sprite sheet.

Explanation

1|Create the Asset

Create an image with a list of text evenly arranged vertically, as shown above.
Then export it as a .png.

2|Adjust the Plane

□ 1|Add and Rotate It

  1. shift + a
  2. r + x + -90

□ 2|Match the Aspect Ratio

This time it’s 205 * 303, so multiply x by *2.05 and y by *3.30.

□ 3|Apply the Transform

3|Add the Image

4|UV Editing

Adjust the UV from UV Editing at the top.
※ UV: texture coordinates (U is the same as X, V is the same as Y).

Switch to Edit Mode and shift the two bottom vertices so they nearly line up.

5|Material Settings

Overview

value

Here, divide the frame rate’s progress value by our frame rate (24) so it works out to 1 second = 24 frames.

Formula: #frame / (frame rate * seconds)

#frame / (24 * 1)

  • For 10 seconds: #frame / 240
  • For 6 seconds: #frame / 144
  • For 6 seconds: #frame / 168 (when going 0–6)

となります。

Floor

This converts a Float to an Int.
In other words, it removes the decimal point.

Modulo

Using the remainder, we get 0, 1, 2, 3 … 9, 0, 1, …
This lets it loop.

Multiply

  • -1.0: used to shift upward along UV.y.
  • 0.1: multiply by 0.1 to match the UV range.

This lets us animate it using only the material.

Finally

This time I animated the UV sprite using a Step-based approach.
If you’d prefer a Slide-based approach instead of Step, you can change it with the following adjustments.

  • Change the image range to 0–0 (add a 0 after the 9).
  • Remove Floor.
  • Adjust the value of the first Multiply (around -0.91?).

Now you can enjoy a good countdown life in Blender.

Share this article

Next Article

Previous Article