An open API service indexing awesome lists of open source software.

https://github.com/pearmini/m2

Animate a static image based on Malus' Law of Polarization.
https://github.com/pearmini/m2

Last synced: 9 months ago
JSON representation

Animate a static image based on Malus' Law of Polarization.

Awesome Lists containing this project

README

          

# M2: Malus Motion

Animate a static image based on Malus' Law of Polarization.

## Inspiration

I’m inspired by [Barrier Grid Animation](https://www.youtube.com/watch?v=3LCP18M0s2o), which create illusion of motion based on the occlusion of light and phenomenon of persistence of vision.

![horse](img/horse.png)

The key concept here is selective visibility—revealing only certain parts of each frame at a time. I want to use light polarization to achieve this selective visibility effect.

## Create a image sheet

Collect a series of images with transparent backgrounds. (The following images are provided by [@Sai](https://www.instagram.com/sairamved/))

![series](img/series.png)

Next, divide the area into equal sectors. Each sector will display a different frame of the motion. The resulting image sheet is:

![main](img/main.png)

## Apply Malus’ Law of Polarization

Malus’ Law of Polarization is expressed as:

**I = I₀ cos²θ**

Where:

- **I** is the intensity of polarized light after passing through the polarizer.
- **I₀** is the initial intensity of the light.
- **θ** is the angle between the light's polarization direction and the axis of the polarizer.