Instant World Tracking

To track content from a point on a surface in front of the user, create a new instant tracker:

public void OnZapparInitialised(IntPtr pipeline) 
{
    IntPtr instantTracker = Z.InstantWorldTrackerCreate( pipeline );
}

Each instant tracker exposes a single anchor.

To choose the point in the user's environment that the anchor tracks from, call the InstantWorldTrackerAnchorPoseSetFromCameraOffset(...) function:

private uint orientation = Z.InstantTrackerTransformOrientation.MINUS_Z_AWAY_FROM_USER;

Z.InstantWorldTrackerAnchorPoseSetFromCameraOffset(instantTracker, 
    0, 0, -2, orientation);

The parameters passed in to this function correspond to the X, Y and Z coordinates (in camera space) of the point to track. Choosing a position with X and Y coordinates of zero, and a negative Z coordinate, will select a point on a surface directly in front of the center of the screen.

zapcode branded_zapcode i