osx - External camera from blackmagic intensity shuttle to unity3D on Mac OS -


i trying video feed blackmagic intensity shuttle (thunderbolt) show on plane in unity3d. have done webcam doesn't seem able display camera attached blackmagic shuttle.

running debug.log on devices show device detected.

this log says :

facetime hd camera unityengine.debug:log(object) webcamcontroller:start() (at assets/webcamcontroller.cs:18) blackmagic intensity shuttle thunderbolt unityengine.debug:log(object) webcamcontroller:start() (at assets/webcamcontroller.cs:18) 

somehow shows black when use blackmagic. device id has been set 1 , no errors occur. appreciate if there can on this.

here script running.

using unityengine; using system.collections;  public class webcamcontroller : monobehaviour { public int deviceid; public int fps = 50; public int appfps = 50; // use initialization void start () {      application.targetframerate = appfps;      webcamdevice[] devices = webcamtexture.devices;      foreach (webcamdevice x in devices) {         debug.log (x.name);      }      webcamtexture webcam = new webcamtexture (devices [deviceid].name, 1920, 1080, fps);     webcamtexture webcam2 = new webcamtexture (devices [0].name);     this.getcomponent<renderer> ().material.maintexture = webcam;      webcam.play ();   } 

}


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -