Search code examples
androidaugmented-realityunity-game-enginevuforia

Integrate Augmented Reality app with database


I'm quite new to AR and Unity3D, but I've learnt how to create simple AR app using Vuforia SDK for Unity. Till now I can work with 3D object, image target and export into Android project.

Now, my question is: How can I use database (MySql, Sqlite, etc.) with the AR? For example, I'd like to show some information retrieved from db on my 3D object in Android application.

I am not sure should this be implemented either in Unity or Android solution? I also could not find any relevant tutorial and would appreciate any advice.

Edit: More on database

It primarily would contain text data, link to images which will be located on the remote server as well as database itself. Preferably, it should be MySql database. On the other hand, I will use RESTful web services. I know I can use all this in Android project, but how can I access the 3D object within the code?


Solution

  • For the webserver side, you can use php or any other language. The recommended one is php so you have to learn php.

    For your main app, you can use Unity, use the [WWW][1] class to connect to the server. When connected to the server, the php script will retrieve information from the database and send it back to Unity. This supports texts, images, audio and many others.

    https://stackoverflow.com/a/25200894/3785314 http://www.cs.vu.nl/~eliens/.CREATE/local/essay/09/nm2/klitsie-joost.pdf