JA
/
EN

Blender | Blinking Animation (Material)

💡
  • Blender

Table of Contents

What I Actually Made

The video above is set to blink once per second.
I’ll implement this using a material.

Overview

This is the overview of the Shader Material.

Explanation

1|Value

This holds the frame’s progress value.

#frame/24

The frame’s progress value is matched to the frame rate (24 frames this time).

This makes it easy to calculate within a one-second span (24 frames).

2|Object Info

I added this to reference the random value assigned when the object is created.
I add that to the progress value.
In other words, I’m using it as a random offset.

3|Fraction

As is, the progress value becomes hard to work with, so I keep it within the 0 ~ 1 range.
※ Fraction is a node that repeats 0 ~ 1 → 0 ~ 1.

By keeping it within 0 ~ 1, I was able to adjust it so that 1 corresponds to frame 24.

a = fraction
b = frame rate

a0 : a1 = b0 : 24

4|Less Than

It returns 1.0 when the input value is below the threshold, and 0.0 otherwise.
This is what creates the blinking animation.

By adjusting the threshold, you can easily control how long it stays dark within one second.

5|Adjustment

From there, just adjust the value output from Less Than to match the Emission strength, and it’s complete.

Finally

It’s also a nice way to add an unsettling mood, similar to liminal space imagery.

Share this article

Next Article

Previous Article