2019年3月19日 星期二

Week05 葉政翰 如何把360度攝影機畫面呈現在VR中


1.使用360拍攝影片
2.用unity 匯入360影片




3. 用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;
    }
}



沒有留言:

張貼留言