Scott,

here<http://www.flartoolkitdocs.org/FAQ/getting-the-screen-coordinates-of-a-marker>
you
will see how to get the screen coordinates out of the detector.

For each frame, you should try something like this:

mask.graphics.clear();
var i:int, sq:FLARSquare = detector.getSquare ();
mask.graphics.beginFill(0);
mask.graphics.moveTo(sq.sqvertex[0].x, sq.sqvertex[0].y);
mask.graphics.lineTo(sq.sqvertex[1].x, sq.sqvertex[1].y);
mask.graphics.lineTo(sq.sqvertex[2].x, sq.sqvertex[2].y);
mask.graphics.lineTo(sq.sqvertex[3].x, sq.sqvertex[3].y);
mask.graphics.endFill();

that -could- do... but it's completely untested ! :) .. Also maybe you will
have to determine if two points will determine a side of the rectangle or a
diagonal!

cheers
Cauê

2010/2/3 Scott <[email protected]>

> That would be great if I knew how to do that. :-)
>
> Could you give me a hint on where to start looking?
>
>
>
> On Feb 3, 3:03 pm, Cauê Waneck <[email protected]> wrote:
> > Scott, wouldn't it be better to put a mask that changes according to FLAR
> > points' position?
> >
> > 2010/2/3 Scott <[email protected]>
> >
> >
> >
> > > Apologies if this has been covered, but I'm not quite sure how to
> > > phrase the question.
> >
> > > I'm trying to achieve an effect similar to this:
> >
> > >http://www.youtube.com/watch?v=TW6_X9qBeds
> >
> > > I have 5 planes arranged to give the appearance of a cube recessed
> > > inside of an AR pattern. For the effect to be believable, the outside
> > > of the cube has to be invisible. However, I can't just use transparent
> > > materials on the backs because then you can see the inside of the
> > > cube.
> >
> > > I guess what I'm looking for is a back-side material that is
> > > invisible, but does not offer a transparent view into the cube.
>

Reply via email to