MASK v2.0 – Unity!
Category: Blog, Fall 2015, MASK, Personal projectTags: 3D. Cardboard. MASK. Unity. VR.
Unity3D version of MASK!
Since it’s much more stable with App than with Webpage, maybe it’s worth a try to make a unity version of MASK collection. Hmm such a sweet dilemma!
Codes of accessing camera on the phone… omg so simple!
WebCamDevice[] devices = WebCamTexture.devices;
mCamera = new WebCamTexture ();
//for(var i=0; i<devices.Length; i++){
// Debug.Log(devices[i].name);
//}
if (devices.Length > 0) {
mCamera.deviceName = devices[0].name;
displayPlan.GetComponent<Renderer>().material.mainTexture = mCamera;
mCamera.Play ();
}
Leave a Reply