Log in or register to post comments

How to: Track, connect, sell.

November 9, 2012 - 12:12am #4

Hi.

Am a complete noob @AR and am presently on a learning curve. Could you please help me out as to where do we store the videos or other resources which can be projected in the app and also how to add them and show them in the app after being tracked.

Something like this: http://www.theinquirer.net/inquirer/news/2205583/qualcomm-vuforia-augmented-reality-video-demo

I am thinking on 2 tracks here:

1. Possibly create a online storage facility and retrieve the data.

2. Have a website with the resources and then render elements of the website onto the app like a video or a set of comments.

The end of this might possibly be to connect the user to an online portal and enable him/her to buy the product.

Thanks..!! I know help will be around. Smile

How to: Track, connect, sell.

November 9, 2012 - 5:08am #3

Hi, resources like videos, images and other kind of resources are usually stored in the "assets" directory of your Android project; these resources are then packaged together in the APK when you build your app.

Some resources can also be stored in the res/ folder (e.g. you may put an audio file under /res/raw, to make some sound effects...just as example);

Of course, nothing prevents you from creating an app that retrieves some resources from a server over the web, or that loads an image from the SDCard of your phone.

Android SDK provides API to support all of the above;

so, with Vuforia SDK you can leverage the full API of the Android SDK to build very sophisticated apps if you like.

To get started, I recommend that you star reading the DevGuide of Vuforia and that you look at the various samples, which will introduce you gradually to the different features of Vuforia.

Also, note that in the download page (at https://ar.qualcomm.at/sdk ) you can also find a sample called VideoPlayback that shows how to play a video/movie when a target is detected by Vuforia; also, if your device supports Android Ice Cream Sandwich (v4.0) or above, you should be able to see the video played directly on the target itself in 3D space (i.e. as a Texture applied on the target)

 

I hope this helps!

 

How to: Track, connect, sell.

November 9, 2012 - 6:41am #2

Thanks Alessandro. 2 questions here.

1. If I use a cloud server, something like Azure, will I be able to play a particular content or show a particular image after an image is tracked? Cause i don't want to increase the size of an app by adding videos to it too. If I can access cloud content, then how do I do so. There are resources to connect Azure content to Android but will that work for Vuforia too?

2. Can I pull in links, basically web links on the app, and if a user clicks on the link the web page opens on top of the app instead of a web page?

Thanks again.. :)

 

How to: Track, connect, sell.

November 9, 2012 - 7:45am #1

About using Azure: I have no direct experience with it, but I know they have a nice Java SDK for Android, so I don't see any problems with integrating it with Vuforia (all the Vuforia samples for Android have a part written in Java and a part written in C++, the two parts being linked through JNI);   so, it should work smoorthly, but of course you will need to test it to be 100% sure.

More in general, you can retrieve and use resources from the web quite easily with Android; for instance the VideoPlayback sample that I was mentioning can also play videos streamed directly from the Web (and is is sufficient to pass the URL of the video resource online, so quite easy);

For web pages, you can simply show a web page on top of the Vuforia view (i.e. in full screen), but you can also capture the web page and draw it onto a Bitmap, then convert the Bitmap into a texture that can be shown directly in 3D on a surface....that's a bit more involved but definitely doable.

The new release of Vuforia 2.0 (which will be released soon) also show some cool examples that go into that direction.

 

 

Log in or register to post comments