Log in or register to post comments

4 markers of the same image but different size.Best practise?

January 12, 2012 - 1:28am #1

Hey Guys,

Ive just started using qualcomm for android for my first augmented reality app for a client and i must say so far its been a really hassle free experience.

Im sorry if the question im about to ask has already been answered before but i spent quite some time searching for it and couldn't find it so here it goes:

My markers are going to be ads on a news paper and when users use my app and see the marker the newspaper transforms into a virtual newspaper in their android device. Now different newspapers will have the same ad(exact same image) but in different sizes(a full page ad, a half page ad and a quarter page ad to be precise).

I have to do a couple of things with this. My app has to be able to get the size of the marker and scale animations appropriately. As the main aim for me here is to get the animation to mask the real newspaper in the app

My first thought was to use different markers and play relevant scaled animations but i think when markers are identical , even though they are of different sizes there might be a conflict in the image recognition algorithm and things might go wrong. This is my first AR app so please bare with the noob-ness :)

. Could you guys give me some tips on how i could achieve this. Hoping to hear some great advice from you guys!

Re: 4 markers of the same image but different size.Best practise

January 14, 2012 - 4:07am #6

The problem with frame markers i think is that they require a black border around them. As my client is using the marker as a newspaper ad the creatives have been finalized and they can't really change the images. So unfortunately the only way i have to distinguish between the markers are their physical size which i just learnt that i can't get from the sdk.

Re: 4 markers of the same image but different size.Best practise

January 14, 2012 - 2:58am #5

Can you use frame maker? If you can use frame maker, put the same picture in different frame maker with corresponding size, then problem solve.

Re: 4 markers of the same image but different size.Best practise

January 14, 2012 - 1:23am #4

Thanks for tour reply ksvia.

Does the API in any way provide the scale of the actual physical marker being tracked? If so i can distinguish between the markers by size.

Re: 4 markers of the same image but different size.Best practise

January 13, 2012 - 12:56pm #3

Ah, reading through your post again, it sounds like you want to augment the entire newspaper, not just the target. I see the problem now.

The tracker can't tell the difference between a small target that fills the screen or a large target that fills the same portion of the screen. There isn't enough information. Short of adding some other unique identifier you might be stuck.

You're correct that you shouldn't use the same image for multiple targets.

- Kim

Re: 4 markers of the same image but different size.Best practise

January 13, 2012 - 12:44pm #2

You should get this functionality for free. The augmentation will scale to fill the target regardless of the paper size. You can test this by masking the entire target with a plane object, and then track different size targets.

Note that if your application tracks multiple targets simulatenously then you do need to correctly reflect the relative size of the targets in Unity.

- Kim

Log in or register to post comments