jeudi 3 juin 2010

FLAR marker generating, single and multiple

This example shows how to use multiple markers:
http://www.squidder.com/2009/03/06/flar-how-to-multiple-instances-of-multiple-markers/

The example is very funny, making a piano with appearing and disappearing cubes.
We wanted to show images and a video, the images being changed with a timer.

For this we had to modify the main file:
MultiFLARExample.as in src
where we have started a timer.

This folder structure is different from the single marker Flar Example.

We have modified this size of the flas movie, it now has a bigger screen: 800 x 600.
(These properties have to be altered by hand in rather a lot of files, watch out for the webcam heigth and width, these are also hard coded but at half this size .... so search the folder for 800 and (half of this:) 400 if you want to change the screen width and size.

So there is a timer added in
MultiFLARExample.as in src
The images from the folder triangleImages
in assets
in deploy
are projected on the cubes

and on the fourth cube there is a streaming video

in the function function _addCube(id:int,index:int):void
you can make your own shapes instead of the cubes...

three images (one transparent) and a video projected on a cube


http://www.contrechoc.com/flash/FLARSquidderKitModified.zip

If you want to experiment with this movie first print the markers from the folder deploy/assets/flar

Link explaining making a marker:
http://www.squidder.com/2009/03/05/for-nerds-only-custom-flar-markers-explained/