Skip to main content
Documentation

Video Effect

Align video frames with a panorama position to create timed deformation effects.

Overview

Video Effect (VideoEffect) is a video-based animation effect in which every frame of the video aligns perfectly with the VR panorama position. Certain deformation animations (such as the action of opening a refrigerator) can be implemented using a video effect.

External Example

The external example contains audio. Open it in an appropriate setting.

Open the Vreo example in CodeSandbox

Field Reference

  • videoSrc: string, the video URL.
  • panoIndex: number, the point (panorama index) where the animation is located.
  • fov: number, the camera's field of view (zoom).
  • direction: direction vector, in the form \{x, y, z\}.
  • vector: optional field, the camera pitch and rotation angle data.

Info

For the specific parameter types, see the Vreo API documentation.

{
  "uuid": "ff0ec7f3-06da-43ca-d0f1-f47c8d5a5745",
  "type": "VideoEffect",
  "start": 62000,
  "end": 67000,
  "parsed": false,
  "data": {
    "videoSrc": "//***/xxx.mp4",
    "panoIndex": 7,
    "direction": {
      "x": 0,
      "y": 0,
      "z": -1
    },
    "fov": 80
  }
}