Search Unity

Question Replacing an object in the real world with an AR model

Discussion in 'AR' started by umesh_unity109, Jun 7, 2021.

  1. umesh_unity109

    umesh_unity109

    Joined:
    Jan 24, 2021
    Posts:
    9
    We have an object in the real world of scale ’X,Y,Z’ which we want to replace in AR with a 3D model of similar size. Is there any possible way to do this using AR Foundation, without changing anything physically in the real world?
     
  2. eugeneloza

    eugeneloza

    Joined:
    Dec 3, 2019
    Posts:
    24
    You need somehow to detect the object. I'm not sure if you can track a 3D object with your device, on a mobile phone you may try to use a trackable image as a marker. The trackable image can be just a distinctive pattern on some of the object's flat surfaces. It works reliably only when the marker is in clear view. In case the object is not moving you can also anchor the model to try work when the marker goes off camera or is viewed at high angles.

    The accuracy of AR is often quite low. If the object doesn't move - it can be significantly improved by anchoring. Still your model should be larger than the object, so that no parts of the original object are visible from under it.
     
  3. umesh_unity109

    umesh_unity109

    Joined:
    Jan 24, 2021
    Posts:
    9
    @eugeneloza Thanks for your response, we will try out your suggestions and keep the thread updated!