Topic locked

Multiple markers with different content

May 20, 2011 - 5:28am #1

I'm trying to display different content on different markers, but when i put two markers in unity and link a cube to one marker and a plane to another just to test it, it doesn't work as i intended. It can track both markers, but both the cube and the plane are displayed on both markers. And it can't track both markers at the same time.

Multiple markers with different content

June 30, 2014 - 2:49am #7

Payal, 

1. the Frame Markers Sample already shows how to track multiple Frame Markers (the sample shows how to track 4 markers, each with a 3D model representing a letter, such as "Q", "C", "A", and "R"). 

2. this developer guide and the API reference also explain how to use Frame Markers, and believe me, this is a really basic use case that you are asking for.

I would suggets to have a look at the sample and read the develope guide if something is not clear, while using this Forum only for more "advanced" type of questions.

Thank you.

 

 

Multiple markers with different content

June 30, 2014 - 2:38am #6

can someone please tell me how do i track multiple markers

i am using the frame markers

one shows a cube but the other shows nothing even though i have a sphere in it

i tried reading the comments but could not find a solution

thanks a lot

Re: Multiple markers with different content

January 25, 2012 - 11:10am #5

Hi,

I have a related/similar issue. So to clarify, If I was looking to have 1:1 between content and markers, I would create a scene in Unity per trackable/marker?

Another way to say it. If I had two trackables, I would create two scenes in Unity, each would have an ImageTarget with one of the markers assigned in the ImageTarget component?

Everything has been going great until I added a second scene, I cannot get the second scene to show up, I don't even know if we're supposed to be using multiple scenes.

more context.

I changed the material on the ImageTarget to the other trackable and scene1 still works, then I switched it back and scene1 still works, I think I missed something silly in scene or am missing a basic concept here.

checklist
my config looks like so...







The second scene has the TrackableEventHandler script attached the ImageTarget component as does the first scene.

Sorry, should have poked around some more before posting. I seem to have found the/a? solution. I just copied the ImageTarget out of the hierarchy from the second scene, pasted it into scene one, removed scene2 from the build settings and ran the project. It works great on IOS, I'm getting a black screen on a Motorola Droid 2 Global. I'll research that a little more see if I can find a different Android device before posting the black screen issue to a different thread.

Thanks!

Re: Multiple markers with different content

May 23, 2011 - 6:20am #4

It could be a problem with the import procedure, take a look at this thread: http://ar.qualcomm.at/node/2000490

Open your config.xml file and make sure it only contains the trackables you added to the online system. Delete any extras (e.g. stones/chips from the sample).

If that isn't the issue, could you take a screenshot of your scene and hierarchy views in Unity, and either post here or send to

? I'd like to take a look at the setup.

- Kim

Re: Multiple markers with different content

May 23, 2011 - 12:36am #3

I used 2 different trackables which i made myself. Imported the package for both of them in a ImageTarget example and made 2 imagetargets with both a piece of content as a child. The last thing i did was setting the "max simultanious image targets" to 2.

Re: Multiple markers with different content

May 20, 2011 - 11:07am #2

First off, do you mean image targets or frame markers? Are you making the cube a child of one target, and the plane a child of the other target?

It sounds like you may have two instances of the same target in your scene. In this case, the content of the two targets is merged at runtime. You can't track multiple instances of the same target (e.g. two printouts of the sample stones target, or two markers with the same ID). Only one will be tracked at a time.

- Kim

Topic locked