2019年3月19日 星期二

Week05_如何把360影像在VR上執行

① 360-degree camera要如何安裝與操作
② 如何把360影像匯入在Unity上
③  撰寫unity程式


---------------------------------------------------------------------------------------------------------------


① 360-degree camera要如何安裝與操作


我們所使用的360-degree camera的機器為Theta 360
▷ 可在此網看到此產品:   https://theta360.com/ct/

▷ 約1200畫素

▷拍出來的畫面為下圖(課堂上照片)



② 如何把360影像匯入在Unity上


1.開啟Unity
下載聲音檔,google上網找就可以找導聲音檔瞜


③  撰寫unity程式環繞音效

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
    float angle = 0f;
    float lengh = 13f;
    // Update is called once per frame
    void Update()
    {
        transform.position = new Vector3(lengh * Mathf.Cos(angle), 1, lengh * Mathf.Sin(angle));
        angle += 0.01f;
    }
}











沒有留言:

張貼留言