|
@@ -87,8 +87,6 @@ namespace bbiwarg.Test
|
|
|
Vector palm = source.getPalmPosition2D(1);
|
|
|
Vector[] fingers = source.getFingerTipPositions2D(1);
|
|
|
|
|
|
- Console.WriteLine(fingers[0][0]);
|
|
|
-
|
|
|
Pixel3D palmPosition = new Pixel3D((int)palm[0], (int)palm[1], width, height);
|
|
|
Pixel3D finger1Position = new Pixel3D((int)fingers[0][0], (int)fingers[0][1], width, height);
|
|
|
palmPosition.depth = depthImage.getDepth((int)palm[0], (int)palm[1]);
|
|
@@ -115,8 +113,9 @@ namespace bbiwarg.Test
|
|
|
protected override void OnResize(EventArgs e)
|
|
|
{
|
|
|
base.OnResize(e);
|
|
|
+
|
|
|
GL.Viewport(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width, ClientRectangle.Height);
|
|
|
- Matrix4 projection = Matrix4.CreatePerspectiveFieldOfView((float)Math.PI / 4, Width / (float)Height, 1.0f, 3000.0f);
|
|
|
+ Matrix4 projection = Matrix4.CreatePerspectiveFieldOfView((float) Math.PI/8, Width / (float)Height, 1.0f, 3000.0f);
|
|
|
GL.MatrixMode(MatrixMode.Projection);
|
|
|
GL.LoadMatrix(ref projection);
|
|
|
}
|