目前分類:Unity3D學習筆記 (14)

瀏覽方式: 標題列表 簡短摘要

A easy way to recognize mouse and finger strokes on screen. Recod every point of the storke and check the current point and last point's relative direction. The diection lies on 0~360 degree. Separate 0~360 into 8 even sectors, every sector covers 45 degree range ; Up : -22.5~22.5, Upright : 22.5~67.5, Right : 67.5~112.5, Rightdown : 112.5~157.5, Down : 157.5~202.5, Downleft : 202.5~247.5, Left : 247.5~292.5, Upleft : 292.5~337.5. Give the 8 direcions numbers 1~8respectively. Record the direction when direction changes. For example, when write a storke toward 30 degree then turn the direction to 120 degree. You will get a sequence number 24. Then according to the number to check which symbol is written. Usually handwriting doesn't turn the direction sharply so the sequence number may be many. For example, when write L,  the sequence number may be 53, 543. When write N in one stroke, the sequence number may be 141, 13431, 1341, 1431. You should build the database for any posibilities. This way can't identify the lenght of the stoke so if the two symbols have different length of stokes but turn the same directions, theny may not be identified. You should specially handle the case since this is just a simple symsem. Even though this way is enough to recognitize many symbols. The following demo shows >, <, 一, | and N handwriting recognition.

 

文章標籤

Yoda2016 發表在 痞客邦 留言(1) 人氣()

1. 以系統管理員身份執行SDK Manager.exe梗新到最新版。

2. Unity 裡面的 res 資料機複製到Plugins -> Android 裡面

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

經過上次利用進出parent物件的方式,實現了魔術方塊的app~~~

android apk 下載 : 

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

雖然transform.Rotate() 可以旋轉物體,但一旦旋後x,y,z的軸就會跑掉,沒辦法持續作出垂直或平行於地平線的旋轉。

方法之一就是放一個外殼,每當外殼完成一次旋轉後座標歸零,但裡面的東西不歸零。

Yoda2016 發表在 痞客邦 留言(0) 人氣()

用UNET的功能作了一個E-Card的prototype~~~~雖然規則簡但因為考慮卡片要動態移動以及連線功能還是花了些時間~~

 

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

可在Edit => Project Setting => Time 中更改

再用Debug.Log(Time.deltaTime.ToString()) 顯示

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

到有字型的網址下載字型比如 : 

http://www.dafont.com/

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

主要是記錄UGUI的用法,目前不能輸入負數,

字串轉浮點數 : 數字 = float.Parse(字串);

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

用粒子系統當彈幕 : 

 

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

Unity 娘下載 : 

http://unity-chan.com/

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

主要是記錄MovieTexture 的用法,但通常MovieTexture和聲音都是綁一起的就順便 : 

示範影片 : 

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

Input.mousePosition 可以得到滑鼠或行動平台觸控的座標值

 

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

using UnityEngine;
using System.Collections;
文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()

如果Sykbox出現邊線的話

文章標籤

Yoda2016 發表在 痞客邦 留言(0) 人氣()