2019年3月26日 星期二

VR Real Week06





vr比賽在銘傳S405

講解期末作品細節
  1)如何企劃期中作品企劃&準備期末作品實作
  2)期末作品展示/評分/競賽
  3)
看去年的VR battle作品影片
  4)
介紹作品如何逐步做出來


學長ppt學習
  1)steam VR Plugin 僅放入需要的檔案
  2)steam VR input 記得存檔
  3)Grabpinch(扣動扳機)
  4)程式碼如何運作的
  5)生成需要的模型(食指按下)

上課操作步驟
  1)vive硬體/軟體更新(steam VR update) 要更新才能用
  2)unity 2018開啟,Asset; Steam VR
  3)TODO:做小畫家



學長程式碼(以此作修改)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Value.VR;

public class ViveInput : MonoBehaviour {

       public Steam_Action_Boolean triggerDown;
       public Steam_Action_Vibration hapticAction;
       public Steam_Action_Single squeezeAction;
       public Steam_Action_Vector2 touchpadTouch;

      void Update(){

             if (triggerDown.GetState(SteamVR_Input_Sources.Any))
             {
                 hapticAction.Execute(0, 1, 150, 75, SteamVR_Input_Sources.LeftHand);
                 print("triggerDown");
             }

             float triggerValue = squeezeAction.GetAxis (SteamVR_Input_Sources.Any);
             Vector2 padPods = touchpadTouch.GetAxis (SteamVR_Input_Sources.Any);
    
             if (triggerValue > 0.0f)
            {
                 print("");
            }

沒有留言:

張貼留言