#ImageTracking: TrackedObject is not visible after Exiting AR session
1 messages · Page 1 of 1 (latest)
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!
What Needle Engine version do you have? Unity or Blender?
Do you have OrbitControls on your camera?
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
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?
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)
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?
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:
-
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)
-
Use the "Progressive Loading" component to increase the max size so that the smaller size is less obvious
-
Use the Texture importer and configure the minimum Preview Size to a larger value so that the
smaller size is less obvious
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?
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
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:
Ok I got it. I see how this is unexpected - I don't think it's by design. Will check back
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
thank you, looking forward to it!
Hi @warm badge the fix just landed in 3.37.9
that's awesome! thank you guys you're the 🐐