CRI Sofdec(Unreal Engine) v1
Introduction 07 How to play VR movies (Mana Player)
In this chapter, we will show you how to play VR movies in UE5.
VR movie playback
As shown in the image below, you can attach a 360-degree panoramic VR movie to the sphere and play it.
The specific steps are as follows:

1. Import Sofdec movie and prepare Mana assets
Follow the instructions in "Introduction 01 Simple Playback of Sofdec Movies (Mana Player Edition)" to import the VR movie into UE5.

2. Import the Sphere
UE5 does not have a built in primitive sphere with spherical coordinates.

You can create your own primitive sphere, but for now we will use the popular model "Sphere100.fbx".
This model can be downloaded from the Internet.
https://github.com/makoto-unity/PanoramaVideoWithUnity/blob/master/Assets/MyGame/Models/Sphere100.fbx
Import this model into UE5.

Change the options to exclude unnecessary imports such as collision, materials, textures, etc.

3. Attach a movie to the Sphere in the level and play it
Place a Sphere asset into the level and adjust its position to the origin (0,0,0) and its scale to (100,100,100).

In the details panel for the actor "Sphere100", click "Add Blueprint/Script".

Open the level's Blueprint.

Next, create a "Mana Player".

After compiling once, select the "ManaPlayer" you created in "Mana Player" from the "ManaPlayer" details.

Edit the level blueprint as shown below to start playing the movie when the game starts.

Change the material so that it does not reflect lighting.
- Open the movie material, select the material render node and set “shading model” to “unlit”.
- Link the RGB output of the "Mana Color Space Converter" node to "Emissive Color".

Since the movie will be displayed inside a sphere, we need to flip the U-Tiling of the texture coordinates.
- In the Material, add a "TextureCoordinate" node.
- Link the "TexCoord" node to all the "TextureSample" nodes.
- In the "TexCoord" details panel, set "UTiling" to "-1.0".
- You can also adjust the gamma value of your movie with the "Gamma" input of the "Mana Color Space Converter" node.

4. Prevent the player from moving outside the sphere
Create a new “GameMode”.


Create a new Pawn.


Open the Pawn Blueprint and add a Camera to the Pawn.

Change "Game Mode" from World Settings.
(Menu "Window" -> "World Settings")


The user will be using a Pawn that cannot be controlled.
5. Execution
To run the sample in VR, press the "VR Preview" button.
You can preview by connecting a VR device.
*The VR device is not connected in the image so it is greyed out.


Unreal Engine Manual Reference
For more information on VR and importing content, see the UE5 documentation.
VR
https://docs.unrealengine.com/5.0/ja/developing-for-xr-experiences-in-unreal-engine/
Importing content
http://api.unrealengine.com/JPN/Engine/Content/ImportingContent/
Actor Component
http://api.unrealengine.com/JPN/Programming/UnrealArchitecture/Actors/Components/
