#ImageTracking: TrackedObject is not visible after Exiting AR session

1 messages · Page 1 of 1 (latest)

warm badge
#

I have an Image Tracker so when it detects an image, an object appears. Everything works but when I close the AR session, the camera seems to be placed in other part of the scence and I can't see my object anymore. I am testing in Chrome Android.

cerulean flameBOT
# warm badge I have an Image Tracker so when it detects an image, an object appears. Everythi...

Thanks for reaching out @warm badge

Please read through the following and share the information requested. This will help us to better assist you.

Description

Describe the issue that you're seeing. Please be as detailed as possible e.g. is this issue happening in Unity or Blender, which Needle Engine version are you using, do you see any errors in the Editor or Browser console, etc.

Information:

  • If you're using Unity click the menu item Needle Engine/Report a Bug/Copy Project Info to Clipboard. Please share the results below.
  • Please provide code snippets using Discord Code Blocks
  • Have you contacted Needle through another channel or just through Discord?

Thanks for submitting!

💡 Did you know that we now also have a forum with AI support? Join now with your discord account!

undone tangle
#

What Needle Engine version do you have? Unity or Blender?

Do you have OrbitControls on your camera?

warm badge
#

I am using Unity 2022.2.9f1 and Needlge Engine version 3.34.2-exp.2. I am also using OrbitControls like the one shown in attachments

undone tangle
#
3.37.5 experimental
- Fix: OrbitControls should not update on user input when the camera is not currently active

Could you update to 3.37.5 and see if the issue persists?

warm badge
#

hello, updated it and still the object is not there when i close the AR session. I assume the camera is moved but when I zoom in and out I don't see the object (although some particles that are activated when the image is tracked do appear). Moreover, when I update it now my 2D sprites in canvas are pixelated)

warm badge
#

Also, I noticed that after the update, when opening the website the sprites on the object take to long to load and for 2-3 seconds look pixelated. Before there where no issues when loading. What could go wrong?

tropic sleet
#

Hi, that would be caused by progressive texture loading which is very useful to improve loading times of your webpage.
https://engine.needle.tools/docs/deployment.html#progressive-texture-loading

You have three options here to improve this for your project:

  1. Use the "ProgressiveLoading" component and disable "Progressive textures" - this will increase the loading time of your website because it will stop Needle Engine from creating and lazy loading images in your whole project! I would not recommend this (but it might be the right choice still if you don't have large textures at all for example)

  2. Use the "Progressive Loading" component to increase the max size so that the smaller size is less obvious

  3. Use the Texture importer and configure the minimum Preview Size to a larger value so that the
    smaller size is less obvious


Deployment is the process of making your application available to the public on a website. Needle Engine ensures that your project is as small and fast as possible by using the latest compression techniques such as KTX2, Draco, and Meshopt.

warm badge
#

Hello marcel and thank you for your help, this worked and now loads accordingly. However, the object still disapears from the OP web site when I close the AR session. I realized this only happens if the object is activated when detecting the tracked image. If I go into AR mode and nothing is tracked and I close the session, the object appears normally when going back.

Any idea what could this be?

tropic sleet
#

Ah so to make sure i understand correctly:

  • an object is visible in the scene
  • this object is also used with image tracking / assigned to image tracking
  • in AR this object is tracked via an image marker
  • after exit AR the object is not visible in the scene anymore

And it would be expected that the object should be visible again after exit AR just as before

warm badge
#

Hello marcel. Yes you understood correctly. The object is visible in the scene just like the image tracking sample in needle engine. This object is assigned to the Image Tracking component and when the image assigned is detected then the object is placed. So yea, the issue is that once I close the AR session and go back to the scene the object is not longer visible. Just Note that this only happens when the object is tracked in AR, if I don't detect any image and go back, the object does appear in the scene.

#

you can have a look on www.imtnf.world

#

The tracked image in AR:

tropic sleet
#

Ok I got it. I see how this is unexpected - I don't think it's by design. Will check back

tropic sleet
#

Hello @warm badge just wanted to let you know that I've just implemented a fix in the dev version - so this will hopefully be available in the next update

#

ImageTracking: TrackedObject is not visible after Exiting AR session

warm badge
#

thank you, looking forward to it!

tropic sleet
#

Hi @warm badge the fix just landed in 3.37.9

warm badge
#

that's awesome! thank you guys you're the 🐐