iT邦幫忙

2021 iThome 鐵人賽

DAY 10
0
自我挑戰組

從0開始的UnityAR手機遊戲開發系列 第 10

[第十天]從0開始的UnityAR手機遊戲開發-Vuforia多張圖卡辨識

到Vuforia官網點擊Develop→Target Manager→Add Target 新增其他張的辨識圖卡。
https://ithelp.ithome.com.tw/upload/images/20210924/20140569WgpYJaArer.png
https://ithelp.ithome.com.tw/upload/images/20210924/20140569gb8Nao1Qe5.png

新增好,勾選2張辨識圖卡後下載匯入到Unity
https://ithelp.ithome.com.tw/upload/images/20210924/20140569WfApjwIYUY.png
點選Import匯入
https://ithelp.ithome.com.tw/upload/images/20210924/20140569CLZNKBtPH7.png

回到專案在Hierarchy點擊右鍵→Vuforia Engine→Image新增另一張辨識圖卡
https://ithelp.ithome.com.tw/upload/images/20210924/20140569CwCWYM3UAG.png

新增的ImageTarget會跟舊的ImagTarget重疊,請使用移動工具移到旁邊
點選ImageTarget開啟Inspector有Image Target Behaviour腳本,將Image Target改為新增的辨識圖
https://ithelp.ithome.com.tw/upload/images/20210924/201405699CUWlLalyM.png

在新的ImageTaget下新增一個3D物件
https://ithelp.ithome.com.tw/upload/images/20210924/20140569Ax0KSFcbS5.png

在Project找到Resources→VuforiaConfiguration點擊打開Inspector裡面有2行Max Simultaneous Tracked,Images是設置可辨識的圖卡數量把它改為2,Objects是設置辨識圖卡出現的物體數量把它改為2。
改好後按下https://ithelp.ithome.com.tw/upload/images/20210924/20140569SA7Agn2F4Q.png,就可以看到成果歐
https://ithelp.ithome.com.tw/upload/images/20210924/20140569vSQ2SzrfcX.png


下一章節會教導大家如何開啟新場景


上一篇
[第九天]從0開始的UnityAR手機遊戲開發-介紹Unity寫程式的基本語法。
下一篇
[第十一天]從0開始的UnityAR手機遊戲開發-開啟新場景
系列文
從0開始的UnityAR手機遊戲開發30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言