Welcome SLARToolkit

March 1st, 2010

Silverlight Augmented Reality Toolkit

SLARToolkit is a flexible Augmented Reality library for Silverlight with the aim to make real time Augmented Reality applications with Silverlight as easy and fast as possible. It can be used with Silverlight’s Webcam API or with any other CaptureSource or a WriteableBitmap. SLARTookit is based on the established NyARToolkit and ARToolkit. SLARToolkit uses a dual license model and could be used for open or closed source applications under certain conditions. See the License page for details.

Features

Live samples and videos

There are two samples available; one uses Silverlight’s 3D projection capabilities and the other the 3D game engine Balder. The samples are part of the source code repository, but not included in the binary release.
A webcam and at least the Silverlight 4 runtime must be installed to run the samples. At the moment the beta developer runtime is available for Windows and Mac. Alternatively there are also videos of the samples in action linked below.
The SLAR and / or L marker should be printed non scaled at the original size (80 x 80 mm) and centered for a small white border. See the Markers documentation for details. Then hold the printed marker in front of the camera and move it around. Make sure the camera is set up properly and the scene is illuminated well without hard shadows.

Silverlight Projection Sample

Open the sample and press the “Start Fun” Button or watch the video.

See this blog post for details.

Balder Sample

Open the sample and press the “Start Fun” Button or watch the video.

See this blog post for details.

Easy to use

1
2
3
4
5
6
7
8
9
10
11
12
13
// Load marker and initialize detector with the a CaptureSource instance

using (Stream markerSlarStream = App.GetResourceStream(new Uri("SLARToolKitSample;component/data/Marker_SLAR_16x16segments_80width.pat", UriKind.Relative)).Stream)
{
var markerSlar = Marker.Load(markerSlarStream, 16, 16, 80.0, "SLAR");
ArDetector = new CaptureSourceMarkerDetector(captureSource, 1, 4000, new List<Marker>{ markerSlar });
}
// Detection event

ArDetector.MarkersDetected += (s, e) =>
{
var detectedResults = e.DetectionResults;
}

See the Marker Detectors documentation for details.

Additional Information

SLARToolkit – Silverlight Augmented Reality Toolkit announced this project and included the Silverlight 3D projection sample.
World# – Real Time 3D Augmented Reality with Silverlight provided the first Balder 3D sample.