I use the open source Augmented Reality library NyARToolkitCS and implemented the necessary interfaces to make it work with Silverlight. The NyARToolkitCS library is a completely managed version of the well known ARToolkit.
Live
If you want to try it yourself you need do download this marker [PDF], print it and hold it in front of the camera. To run the demo you need the Silverlight 4 runtime. You can download the beta developer runtimes for Windows and Mac. If you don't like to install the runtime you might want to see the video below.
I recommend the non-embedded version of the application.
Simply press the "Start Capture" Button, hold the printed marker in front of the camera and move it around.
If you click the "Start Capture" Button for the first time you need to give your permission for the capturing. This application uses the default Silverlight capture devices. You can specify the video and audio devices that are used by default with the Silverlight Configuration. Just press the right mouse button over the application, click "Silverlight" in the context menu and select the "Webcam / Mic" tab to set them.
Video
I've also recorded a short video with my iPhone 3GS. The video was recorded at night and it's no secret that the iPhone camera is not the best, but I think it's good enough to see how the marker is tracked and the Silverlight logo moves with it.
To be continued
The first results are quite good and the demo runs smoothly at 60-70 fps on a dual core machine utilizing both cores. I will continue my work on this project and provide more details, samples and of course source code.
Stay tuned...
Source : kodierer.blogspot.com
Aucun commentaire:
Enregistrer un commentaire