Multi marker, same pattern, different object

90 views
Skip to first unread message

cyclick

unread,
Mar 28, 2012, 1:36:04 AM3/28/12
to FLARToolKit userz
Hi guys,
I have trouble to make multi marker with same pattern but different
displaying object3D. I'm using flarManager
example :
-I have 2 marker with same pattern (marker A and marker B)
-marker A displaying orange
-marker B displaying apple
how to make that.

excuse for my bad english

Thank you in advance for any reply.
Message has been deleted

Shachar Oz

unread,
Mar 28, 2012, 4:05:57 PM3/28/12
to FLARToolKit userz
hi man,
well, the answer is very simple: you cant...
that's the whole idea of differentiating the markers and data.
different markers can give you the same data or not. but the same
marker will always show the same data.

unless, you want to have something like:
the first presented marker shows orange and the second marker shows an
apple.
this is doable.

Makc

unread,
Mar 28, 2012, 4:27:13 PM3/28/12
to flartool...@googlegroups.com
On Wed, Mar 28, 2012 at 10:05 PM, Shachar Oz <shach...@gmail.com> wrote:
> the same
> marker will always show the same data.

does that mean markers are bosons?

cyclick

unread,
Mar 28, 2012, 9:17:02 PM3/28/12
to FLARToolKit userz
Okay thank for replying my question.
I have little trick, but not solve the case. using increment in
function addMarker

inc = 1;

if (marker.patternId == 2)
{
if (inc == 1)
{
colladaModel = collada.parseGeometry(orange) as
ObjectContainer3D;
inc++;
}
else if (inc == 2)
{
colladaModel = collada.parseGeometry(apple) as
ObjectContainer3D;
}
}

but when I remove marker with orange object from camera, and back it
again to camera, now marker displaying apple, it because inc = 2.
Reply all
Reply to author
Forward
0 new messages