Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

User Defined Targets works on editor but not on device "Vuforia Core Samples (sep 09,17)"

Discussion in 'Vuforia' started by donkikochan, Oct 4, 2017.

  1. donkikochan

    donkikochan

    Joined:
    Nov 17, 2013
    Posts:
    3
    Hello,

    I'm using unity 2017.2.0b11 with the new "Vuforia Core Samples" and everything works fine in the editor and on devices (ios / android). But running "Image Targets" with my own database only works in the Unity editor, on android or ios does not track my Image Target. Maybe I have to take an extra step?

    Thanks in advance!
    Enric.
     
  2. whitebozo

    whitebozo

    Joined:
    Oct 27, 2014
    Posts:
    29
    Did you enable your database in the Vuforia settings? Located in the resources folder.
     
  3. donkikochan

    donkikochan

    Joined:
    Nov 17, 2013
    Posts:
    3
    Hi Joshua,

    Yes, it is enabled. The execution on Unity editor works if this option is enabled and doesn't work if its does not enabled. But on devices never works.
     
  4. whitebozo

    whitebozo

    Joined:
    Oct 27, 2014
    Posts:
    29
    That is weird. I haven't played with b11 I skipped that one but everything is smooth on both f1 and f2 of 2017.2 for me. If you are using multiple targets in the database make sure you enable multi targets either on the camera or the settings I don't remember. Also you might want to modify the default tracking script to throw a message either in debug or on screen with UI when it detects a target just to see if that is the issue or not. Not really sure what else to tell you. I'll check back up on this thread tomorrow it's late at night for me right now. Hopefully someone comes by and has an answer if not I'll try and see what I can dig up.
     
  5. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    @donkikochan The samples will dynamically set which datasets are being loaded in the SampleMainMenu.cs script. If you are running more than just the single Image Targets scene on device, it's likely that this script is overriding which datasets you have marked to load. You can either comment out the section in this file that is loading the datasets, or simply point them at your datasets instead.

    Thanks!
     
    Ark_Tarusov likes this.
  6. donkikochan

    donkikochan

    Joined:
    Nov 17, 2013
    Posts:
    3
    Hello,

    As you mentioned, modifying the DataSetsToLoad and DataSetsToActivate structures of SampleMainMenu (now pointing to my dataset) execution works on devices.

    Thank you very much fore the information!,
    Enric.
     
    Vuforia-Strasza likes this.
  7. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    You're welcome, happy to help!