Search Unity

Vuforia 8.0.10 / Unity 2018.3.5f1 - Model Target can't select my database

Discussion in 'Vuforia' started by Mike-Ribbons, Feb 17, 2019.

  1. Mike-Ribbons

    Mike-Ribbons

    Joined:
    Aug 25, 2013
    Posts:
    5
    I have generated an object using the object Vuforia Object Scanner android app, uploaded it to a target library, and downloaded it as a unity package then installed it.

    I have a dev license which I have configured. My database shows up in Vuforia engine configuration.

    I have successfully imported image targets and had no issue.

    When I add a ModelTarget to the scene I am told I have no databases, and asked if I want to import the a sample one.

    When I inspect the files of the sample database, the underlying data seems significantly different to the mars lander sample. eg my xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="QCAR_Dataset_config.xsd">
    <Tracking>
    <ObjectTarget name="doublestrike2-model" />
    </Tracking>
    </QCARConfig>



    Compared to the sample:
    <?xml version="1.0" encoding="UTF-8"?>
    <QCARConfig>
    <Tracking>
    <ModelTarget name="VuforiaMars_ModelTarget"/>

    </Tracking>

    <Assembly name="VuforiaMars_ModelTargets_assembly" assemblyId="c6f46a11ef7e4f4bb473a1262721cf8e">
    <Part name="VuforiaMars_ModelTarget" translation="0 0 0" rotation="AD: 0 0 1 0"/>
    <EntryPoint name="Front" translation="0.00181726 0.0548691 0.355023" rotation="AD: 0.006341771445525425 -1.0226681998402973 4.773902251453074 180.032">

    </EntryPoint>
    <EntryPoint name="Rear" translation="-0.00184344 0.0460248 0.374944" rotation="AD: 1 0.00003196492371778675 -0.0001523506621260158 203.699">

    </EntryPoint>

    </Assembly>

    </QCARConfig>


    I have read in other posts that you need to add your model to the scene to get the database to activate, but there are no models in the database. I have attached a screen shot of what is included.

    Previously I was dragging the package to import. If I import by Assets->Import->Import Custom Package I get these errors:
    Package does not contain valid import settings for: Assets/Editor/Vuforia/TargetsetData/model_targets/bc2b41fbe82b4d64a15f43ee1f0fb028_preview.jpg
    Package does not contain valid import settings for: Assets/Editor/Vuforia/TargetsetData/model_targets_info.xml
    Package does not contain valid import settings for: Assets/StreamingAssets/Vuforia/model_targets_OT.dat
    Package does not contain valid import settings for: Assets/StreamingAssets/Vuforia/model_targets_OT.xml

    Package attached. Looking forward to some help.
     

    Attached Files:

    Last edited: Feb 19, 2019
  2. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    266
    Hello,

    I don't understand the following:

    Model Target device databases are created by the Model Target Generator, available for download here: https://developer.vuforia.com/downloads/tool. This app only runs on Windows OS.

    Thanks,
    Vuforia Engine Support
     
  3. Mike-Ribbons

    Mike-Ribbons

    Joined:
    Aug 25, 2013
    Posts:
    5
    I think I meant "Vuforia Object Scanner" app. It's available on the same download page you linked to.
     
  4. Mike-Ribbons

    Mike-Ribbons

    Joined:
    Aug 25, 2013
    Posts:
    5
    Hi @meedabit, Does that give you enough information to diagnose my issue?
     
  5. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    266
    Hello @Mike-Ribbons,

    The workflow for authoring an Object Target database compared to a Model Target database is very different:

    https://library.vuforia.com/content...ining/Vuforia-Object-Scanner-Users-Guide.html
    https://library.vuforia.com/content...lution/model-target-generator-user-guide.html

    What I think is happening is that the Model Target prefab is not recognizing an Object Target device database, so it ignores it. I confirmed this behavior by importing the device database you've attached above into our Core samples Unity project. When I attempt to find the device database in the ModelTarget->Database, it is not listed. However, if I do the same in ObjectTarget->Database, it is listed.

    HTH

    Thanks,
    Vuforia Engine Support
     
  6. Mike-Ribbons

    Mike-Ribbons

    Joined:
    Aug 25, 2013
    Posts:
    5
    Hi @meedabit,
    Thanks, I will read those.
     
  7. Mike-Ribbons

    Mike-Ribbons

    Joined:
    Aug 25, 2013
    Posts:
    5
    That explains things, thanks.
     
    meedabit likes this.