Log in or register to post comments

Targets' positioning bug

July 16, 2018 - 11:03pm #1

Hello everyone.

I have 2 Image Targets (look "img0"). When AR Camera finds them, my GameObject (Plane) appears and it uses positions of targets in world to stay between them. Everything is OK (look "img1").

But camera must find Image Target #1 firstly and then Image Target #2. And after that there will be positions of targets like (0.0, 0.0, 0.0) for target1 (in scene I put this target at 000) and like (-10.9, -1.6, 4.4) for target2.

If I find Image Target #2 firstly, positions are getting wrong! (look "img2") And my GameObject is looking bugged and it's terrible.

What can I do to make user find Image Target #1 firstly to escape this bug? I tried to change script "DefaultTrackableEventHandler" but nothing works.

Please help. Thanks in advance.

AttachmentSize
Image icon img0.png439.02 KB
Image icon img1.png648.23 KB
Image icon img2.png615.08 KB

Targets' positioning bug

July 17, 2018 - 8:56pm #5

dpizzle wrote:

...have you experimented with world center mode on the Vuforia Behaviour script?  Vuforia has no knowledge of world space, only the relation of camera to target.

So much thanks dude! It really works! :D

Topic is closed.

Targets' positioning bug

July 17, 2018 - 8:53pm #4

Oh, I've found dis! So I should pick "SPECIFIC_TARGET" or something else. Is this right script? Cuz it's not in Project folder. 

AttachmentSize
Image icon IMAGE.png62.98 KB

Targets' positioning bug

July 17, 2018 - 8:40pm #3

dpizzle wrote:

...have you experimented with world center mode on the Vuforia Behaviour script? 

I can't find this script. -.-

dpizzle wrote:

Vuforia has no knowledge of world space, only the relation of camera to target. ...it will set the other relative to that. ...You can simulate a world space by introducing an additional target to be the center of the world.

Okay, um... so, I just should say that my Image Target #1 is center, right? Or should I create "an additional target..."?

Anyway I'm finding a solution, therefore I'm trying to do anything to resolve this.

Targets' positioning bug

July 17, 2018 - 6:33am #2

Not sure what your final goal is, but have you experimented with world center mode on the Vuforia Behaviour script?  Vuforia has no knowledge of world space, only the relation of camera to target.  You can have it set either of these to 0,0,0 and it will set the other relative to that.  You can simulate a world space by introducing an additional target to be the center of the world.

Log in or register to post comments