Преглед изворни кода

Merge branch 'master' of https://git.tk.informatik.tu-darmstadt.de/etri-smartspaces

jost_vincent.schultz пре 10 година
родитељ
комит
5b9775f773
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      bbiwarg/Graphics/Output.cs

+ 6 - 2
bbiwarg/Graphics/Output.cs

@@ -34,6 +34,10 @@ namespace bbiwarg.Graphics
             GL.Enable(EnableCap.Blend);
             GL.BlendEquation(BlendEquationMode.Max);
 
+            //Depth Test 
+            GL.Enable(EnableCap.DepthTest);
+
+
             initBuffers();
 
             GL.Enable(EnableCap.Blend);
@@ -56,9 +60,9 @@ namespace bbiwarg.Graphics
             drawDepthImage();
 
             // palm (iisu)
-            Vector palmPosition = videoHandle.getPalmPosition3D(1);
+            Vector palmPosition = videoHandle.getPalmPosition3D(1);
             Point palmPoint = new Point(palmPosition, Color.Yellow, 0.005f);
-            palmPoint.draw();
+            palmPoint.draw();
 
             // foreFinger
             Vector foreFingerPosition = videoHandle.getForeFingerPosition3D(1);