Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Resolved Image marker disappears on build

Discussion in 'Unity MARS' started by Ricardotlpz, Jul 7, 2021.

  1. Ricardotlpz

    Ricardotlpz

    Joined:
    May 17, 2021
    Posts:
    47
    Hey there, it's me again. I made a new AR project using the URP and MARS. Every time I compile the APK to Android, the ImageMarker image gets removed from the marker rendering it unusable. Any thoughts?

    In this image you can see I have selected the image from the marker library and it's not present on the project. Deleting and re-adding the image marker "solves" the problem until I try to compile again.

    upload_2021-7-7_16-59-40.png
     
    Last edited: Jul 8, 2021
  2. Ricardotlpz

    Ricardotlpz

    Joined:
    May 17, 2021
    Posts:
    47
    Update: Noticed this happens when using the "Align to camera" proxy force
     
  3. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    258
    Hello @RicardoTipz,

    Strange; Does it happens also without URP?, do you have repro steps or its just create an image maker with URP, compile and after compilation the image marker visual dissapears?
     
  4. Ricardotlpz

    Ricardotlpz

    Joined:
    May 17, 2021
    Posts:
    47
    Hello there! Haven't tested without URP but did test with a new fresh URP project and the problem persisted.

    Here's my steps:
    1. Create new URP project
    2. Install MARS
    3. Enable ARcore
    4. Disable Vulkan
    5. Change color space from Linear to Gamma
    6. Add AR background renderer on ForwardRenderer
    7. Create a MARS image library
    8. Add an Image marker to the scene and select image from library (Image has specified 0.148 as size)
    9. Add 3D asset to marker
    10. Add Proxy force
    11. Change API minimum level to 24
    12. Compile

    That's pretty much what I did
     
  5. Ricardotlpz

    Ricardotlpz

    Joined:
    May 17, 2021
    Posts:
    47
    Update: Discovered that on Scene change AND project reload, the marker works properly again with proxy forces.

    1. Close the project (AR scene loaded)
    2. Open the project (AR scene loaded)
    3. Change scene (Go to another random one)
    4. Change scene again (Back to AR scene)
     
  6. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    258
    Hello @Ricardotlpz

    We have been looking into your setup and noticed that a plane condition was added; if you remove your plane condition from the proxy you should be good to go.

    We are looking into ways to improve this workflow. Thanks for noticing this! :)
     
    Ricardotlpz likes this.
  7. Ricardotlpz

    Ricardotlpz

    Joined:
    May 17, 2021
    Posts:
    47
    Indeed, deactivating this has solved the problem. Thanks for your support!
     
    jmunozarUTech likes this.
unityunity