CRIWARE Unity Plugin Manual
Last Updated: 2024-07-12
[CriMana] Cutting a part of a movie
Description of the sample
Overview
This sample cuts parts of a movie and displays them.
To cut a part of a movie, the uv coordinates of the mesh are overwritten.
The nine planes on the right were extracted from a movie by overwriting the uv coordinates of the mesh when the sample was run.
The left plane shows the entire area of the movie.
This scene provides the [Scene_02_JigsawMovie.mat] material to draw a movie.
The material is set for all the planes.
Rewriting the uv coordinates of the mesh
On the nine planes on the right, the uv coordinates of the mesh are overwritten by the [MeshUVScaler.cs] script when the sample is run.
The [MeshUVScaler.cs] script overwrites the defined uv coordinates of the mesh by multiplying them by the scale specified in the editor and adding an offset.
[Note]
In this scene, the uv coordinates of the mesh are overwritten when the program is run. You can also provide a model where the uv coordinates are adjusted beforehand.