Log in or register to post comments

Place hologram in real world based on target location

January 29, 2018 - 5:43am #1

Hello everybody,

I am new to Unity and HoloLens. I want to build an App that places a hologram on a wall at a specific location.

I tried using Vuforia SDK to recognize an image target and place the object on it. I succeeded to track the image and place the hologram but the scale and spatial reference was wrong (The object wasn't on the image it was in the area).

Do you think that option could work for this scenario?

if so, what do you think I might be doing wrong?

Or maybe there is other option to do that?

Thanks!

Gerard

Place hologram in real world based on target location

February 6, 2018 - 12:03am #10

No idea, please check you really have that Unity version installed, maybe there are more than one version in your PC and your are having cross opennings. Check also the version of MRTK in case you are working with it.

Place hologram in real world based on target location

February 5, 2018 - 1:43am #9

I compiled the project with Unity 2017.2.0f3 which supposed to be without the bug but it is still jittering.

Any ideas?

Place hologram in real world based on target location

February 4, 2018 - 11:52pm #8

Yes, at least until they fix the bug in next Unity update, but there is no official release date yet.

Place hologram in real world based on target location

February 4, 2018 - 4:17am #7

So the only solution for this bug is to use older version of Unity?

Place hologram in real world based on target location

February 1, 2018 - 12:35am #6

The movement and jitter you are talking about may not be induced by Vuforia, check this Unity bug that is making Hololens work pretty weird:

https://issuetracker.unity3d.com/issues/hololens-jittering-3d-model-causing-color-separation-possibly-due-to-incorrect-stabilization-plane?_ga=2.30384957.302828223.1516872232-777446902.1511433939

Place hologram in real world based on target location

January 31, 2018 - 6:07am #5

Thanks for the explanation!

I checked that with a cube object and i can see it exactly with the picture dimensions.

The hologram appears when the image target detect but it seems like it is not smooth.

I mean that the hologram is shaking according to the Hololens movement and it feel like it is not fixed.

I try to place the hologram on the picture and then stop tracking so the hologram will stay in fixed place.

I stop the tracking with the command:

TrackerManager.Instance.GetTracker<ObjectTracker>().objectTracker.Stop();

Thanks a lot!

Gerard

Place hologram in real world based on target location

January 30, 2018 - 1:38am #4

Yes, the child's size depends on the parent one, so setting it to 1 will give you an object with the same size as the marker. This is veryuseful to create a visual object with different size than the image of detection, since you can't change that size because it has to be exactly the same as the marker.

 

The differences you are finding can be led by the shape of the virtual element, if it's aplain card paced exactly over the image target they should fit perfecly. You can check it directly on Unity editor and the result in Hololens will be the same with the real reference image.

Place hologram in real world based on target location

January 29, 2018 - 9:14am #3

You right, the numbers are not equal, that fixed the problem.

Thank you very much!

I am not sure that I understand how the child object scale works.

I thought the child object scale is relative to the page.

Therefore setting the scale to 1 should give me the hologram with the picture dimensions, but its seem different.

Can you explain me please how does it work?

Thanks again!

Gerard

Place hologram in real world based on target location

January 29, 2018 - 5:59am #2

Please, check the dimensions of the image target in Vuforia database and the actual printed image, they must be equal or the object will appear in different postion, usually behind the paper.

Log in or register to post comments