Log in or register to post comments

Keep second target child object on top on first target in Imagetarget sample.

February 11, 2013 - 10:04pm #1

Hi,

I am following ImageTarget sample in Unity3d. I want to something like this, I have two marker first and second. Second marker cannot be recognize unless first marker recognize I am tracking 2 markers at same time. So actually I am recognizing first one and show some 3d object and when second marker come on ARCamera it recoginize and same like first one I show some 3d object this working fine but I am stuck at here I want to keep second 3d object on top on first one 3d object but this not happening, it always come behind first one 3d object and this is my requirement that I should show first 3d object before the second 3d object and also I couldn't add both 3d object on same targets I need to keep in different targets. How can I do this because both are in different targets and also I couldn't compare position because both have different spaces. 

Keep second target child object on top on first target in Imaget

February 12, 2013 - 10:13pm #3

Actually you are partialy right, 2nd Imagetarget show 3d object only when first one detected and showing 3d object. So second 3d object depend on first one. And first Image target only has one 3d object and same with second Imagetarget only has one 3d object. I am making 3d object of second Imagetarget unless first ImageTarget detected.

Keep second target child object on top on first target in Imaget

February 12, 2013 - 10:07am #2

So both 3D objects should appear on the 1st target, but the 2nd 3D object should only appear if the 2nd target is detected? - is that correct?

Log in or register to post comments