فهرست منبع

Added transparency to palm rect.

Daniel Kauth 11 سال پیش
والد
کامیت
6467784808
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 4 1
      bbiwarg/Graphics/Output.cs
  2. 1 1
      bbiwarg/Main/OutputTest.cs

+ 4 - 1
bbiwarg/Graphics/Output.cs

@@ -31,6 +31,9 @@ namespace bbiwarg.Graphics
             GL.ClearColor(Color.Black);
 
             initBuffers();
+
+            GL.Enable(EnableCap.Blend);
+            GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);
         }
 
         protected override void OnRenderFrame(FrameEventArgs e)
@@ -73,7 +76,7 @@ namespace bbiwarg.Graphics
             pointData = new float[(4 + 3) * (3 + numFingersDetected)];
             Color y = Color.Yellow;
             Vector palmPosition = videoHandle.getPalmPosition3D(1);
-            Vector foreFingerPosition = videoHandle.getForeFingerPosition3D(1);
+            Vector foreFingerPosition = new DenseVector(new float[] { 0, 0, 0 }); //videoHandle.getForeFingerPosition3D(1);
             Vector foreArmPosition = videoHandle.getForearmPosition3D(1);
 
             pointData[0] = palmPosition[0];

+ 1 - 1
bbiwarg/Main/OutputTest.cs

@@ -12,7 +12,7 @@ namespace bbiwarg.Main
     {
         static void Main(string[] args)
         {
-            IInputProvider inputProvider = new IisuInputProvider("..\\..\\videos\\1.skv");
+            IInputProvider inputProvider = new IisuInputProvider("..\\..\\videos\\4.skv");
             IVideoHandle videoHandle = new VideoHandle(inputProvider);
 
             Output output = new Output(videoHandle);