Log in or register to post comments

AR App for Multiple Books

May 2, 2018 - 8:09am #1

I'm developing an AR Book(s) application at Unity. I want to ask a question about it. Can i make the downloadable content for books? Because, there will be a lot of books in my AR app. If I make it as complete, then my app's size will be more than 500MB-1GB. I don't want it. So I want it like this; When the "Choose AR Book" Scene is come, I will choose any book and the book which chosen will download to app and phone cam will open, then I can hold the camera at downloaded Book. After that, the book's animations will play. How can i do this?

Sorry for my english. because my english not advanced. But I hope you get it.

Thanks.

AR App for Multiple Books

May 7, 2018 - 9:43am #9

This sort of functionality can be done within Unity, but is not an offering of the Vuforia SDK. I'd recommend reading their documentation and tutorials for doing this. Once you've downloaded this information you can associate it with Vuforia targets at run time as needed.

Thanks,

Vuforia Support

AR App for Multiple Books

May 6, 2018 - 11:35pm #8

hmm. actually I think you misunderstanded me. I want to store my Sprite, Animations, Sounds and maybe Scenes folders at Internet. when i click the button it will download at once and I can use the app as offline. I don't want to store dataset. Just these folders will store

AR App for Multiple Books

May 4, 2018 - 2:41pm #7

The code sample I shared is meant only as a small demonstration on how to load and activate a Vuforia dataset that you have in your project. You'll need to write your own code for downloading this from where you plan on storing it into your app.

Thanks,

Vuforia Support

AR App for Multiple Books

May 3, 2018 - 11:38pm #6

Strasza wrote:

My sample code does not require a Cloud License as it does not interact with our Cloud Database. If you'd like to set up your own content delivery network you can use my example code to load and activate datasets you've downloaded.

Thanks,

Vuforia Support

will i write only your code? don't i write any variable? because your sample code only a method. Also it will download at once, after that user can use as offline

AR App for Multiple Books

May 3, 2018 - 9:39am #5

My sample code does not require a Cloud License as it does not interact with our Cloud Database. If you'd like to set up your own content delivery network you can use my example code to load and activate datasets you've downloaded.

Thanks,

Vuforia Support

AR App for Multiple Books

May 3, 2018 - 1:48am #4

Strasza wrote:

Hello freedom667,

You can store the datasets for each individual book on your own server and then download them to your app when the associated book has been selected in the app. You can then use the following code to load and activate the dataset:

public void ActivateTarget(string loadThisDataset)
{
    TrackerManager trackerManager = (TrackerManager)TrackerManager.Instance;
    ObjectTracker objectTracker = TrackerManager.Instance.GetTracker<ObjectTracker>();

    //Stop the tracker.
    objectTracker.Stop();
   
    //Create a new dataset object.
    DataSet dataset = objectTracker.CreateDataSet();

    //Load and activate the dataset if it exists.
    if( DataSet.Exists( loadThisDataset ) )
    {
        dataset.Load( loadThisDataset );
        objectTracker.ActivateDataSet( dataset );
    }
 
    //Start the object tracker.
    objectTracker.Start();
}

Alternatively, you can host it all on our cloud using our Cloud Reco system.

Thanks,

Vuforia Support

I noticed that. If i make your script, then I must to buy Cloud licence, right? Well, Can i make it as DLC (AssetBundle)? 

AR App for Multiple Books

May 3, 2018 - 12:48am #3

user should download at once. is this not always downloading, right? use will download at once and user can use offline. 

AR App for Multiple Books

May 2, 2018 - 11:26am #2

Hello freedom667,

You can store the datasets for each individual book on your own server and then download them to your app when the associated book has been selected in the app. You can then use the following code to load and activate the dataset:

public void ActivateTarget(string loadThisDataset)
{
    TrackerManager trackerManager = (TrackerManager)TrackerManager.Instance;
    ObjectTracker objectTracker = TrackerManager.Instance.GetTracker<ObjectTracker>();

    //Stop the tracker.
    objectTracker.Stop();
   
    //Create a new dataset object.
    DataSet dataset = objectTracker.CreateDataSet();

    //Load and activate the dataset if it exists.
    if( DataSet.Exists( loadThisDataset ) )
    {
        dataset.Load( loadThisDataset );
        objectTracker.ActivateDataSet( dataset );
    }
 
    //Start the object tracker.
    objectTracker.Start();
}

Alternatively, you can host it all on our cloud using our Cloud Reco system.

Thanks,

Vuforia Support

Log in or register to post comments