Flat Video

步驟

  1. 找到Assets -> GoogleVR -> GvrVideoPlayer.unitypackage,點兩下 -> 選取所有 -> import

  2. 在Hierachy最外層建立一3D -> Quad

  3. 在Inspector找到Transform -> Scale設為(16, 9, 1)

  4. Mesh Renderer -> materials -> Element 0選VideoMaterial

  5. Add Component -> Gvr Video Player Texture
    Video Type: Dash
    Buffer Size: 4
    Video URL: https://storage.googleapis.com/wvmedia/clear/h264/tears/tears_hd.mpd
    Video Content ID: https://storage.googleapis.com/wvmedia/clear/h264/tears/tears_hd.mpd

  6. 找到GoogleVR -> Demos -> Prefabs -> VideoControls.prefab,拖曳至Hierachy的Quad下

  7. 在電腦沒辦法跑,直接Build & Run

DEMO

results matching ""

    No results matching ""