Hands demo to new demo format.
@@ -16,7 +16,12 @@ namespace StereoKitTest
{
class DemoHands : ITest
{
- static Pose optionsPose = new Pose(0,0,-0.3f, Quat.LookDir(-Vec3.Forward));
+ Matrix descPose = Matrix.TR (-0.5f, 0, -0.5f, Quat.LookDir(1,0,1));
+ string description = "StereoKit uses a hands first approach to user input! Even when hand-sensors aren't available, hand data is simulated instead using existing devices. Check out Input.Hand for all the cool data you get!\n\nThis demo is the source for the 'Using Hands' guide, and is a collection of different options and examples of how to get, use, and visualize Hand data.";
+ Matrix titlePose = Matrix.TRS(V.XYZ(-0.5f, 0.05f, -0.5f), Quat.LookDir(1, 0, 1), 2);
+ string title = "Hand Input";
+
+ static Pose optionsPose = new Pose(0.5f,0,-0.5f, Quat.LookDir(-1,0,1));
bool showHands = true;
bool showJoints = false;
bool showAxes = true;
@@ -169,6 +174,11 @@ namespace StereoKitTest
}
Tests.Screenshot(1, 600, 600, "HandAxes.jpg", new Vec3(-0.508f, -0.082f, -0.061f), new Vec3(-1.219f, -0.651f, -0.474f));
+
+ if (!Tests.IsTesting) {
+ Text.Add(title, titlePose);
+ Text.Add(description, descPose, V.XY(0.4f, 0), TextFit.Wrap, TextAlign.TopCenter, TextAlign.TopLeft);
+ }
}
private void ColorizeFingers(int size, Gradient horizontal, Gradient vertical)
