コード例 #1
0
 // Use this for initialization
 void Start()
 {
     kinect = devOrEmu.getKinect();
     //tex = new Texture2D(640,480,TextureFormat.ARGB32,false);
     tex = new Texture2D(320,240,TextureFormat.ARGB32,false);
     renderer.material.mainTexture = tex;
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     kinect = devOrEmu.getKinect();
     //allocate space to store the data of storedFrames frames.
     frameQueue = new Queue(storedFrames);
     for(int ii = 0; ii < storedFrames; ii++){
         frameData frame = new frameData();
         frame.depthImg = new short[320 * 240];
         frame.players = new bool[Constants.NuiSkeletonCount];
         frame.segmentation = new bool[Constants.NuiSkeletonCount,320*240];
         frame.bounds = new int[Constants.NuiSkeletonCount,4];
         frameQueue.Enqueue(frame);
     }
 }