CRIWARE Unity Plugin Manual  Last Updated: 2024-07-12
[CriMana] Alpha movie

Description of the sample

Overview

cri4u_samples_crimana_scene02_screenshot.png

This sample plays an alpha movie.
An alpha movie is played in loop in front of the polygon, which is the background.

Scene information


Middleware CRI Sofdec (CRI Mana)
Sample Basic samples
Location /CRIWARE/SDK/unity/samples/UnityProject/Assets/Scenes/crimana/basic/
Scene file Scene_02_AlphaMovie.unity


Description of the program


This sample plays an alpha movie.
An alpha movie is played in the same way than a normal (i.e. opaque) movie.

What is an alpha movie?

An alpha movie file has an alpha value for each pixel (opacity information).
It is used to make some parts of the movie transparent (for example behind a character, or to simulate colored glass).
This sample program uses an alpha movie to show the "STAGE 1, START!" caption when the scene is started.

cri4u_samples_crimana_scene02_view_alpha.png

[FullScreenMovie] object

FullScreenMovie is the polygon that is fixed in front of the main camera. It is used to show the movie.
In the CriManaMovieController component of the FullScreenMovie object, the name of the movie file to play and the playback options can be specified.

cri4u_samples_crimana_scene02_component.png

  • Movie Path: Name of a movie file. Place the movie file in the StreamingAssets folder.
  • Play On Start: Select this option to start the movie when the object is created.
  • Loop: Select this option to perform seamless loop playback.
  • Additive Mode: Do not select this option.