-=-=-=-=-=-=-= README.txt =-=-=-=-=-=-=-

This app aims to render virtual 3D objects in the camera view of an iOS device, simulating augmented reality.

-= Requirements =-

- iOS device with GPS capabilities
- xCode (ver 6.0+)
- Apple Developer license
- Webserver
- COLLADA files (.dae)
  * Google Sketchup/Blender/Google the files

-= Setup =-

1. You’ve already downloaded our source code if you’re reading this. Move on!
2. Set up a PostgreSQL database. Look below for a sample setup with the fields you need.
3. In backend/walkAround/datasource.py, change the database login information on lines 14-16 to match your database information.
4. In UploadSite/flaskr/datasource.py, change the database login information on lines 14-16 to match your database information.
5. Start your webserver.

-= Running the App =-

1a. Navigate to UploadSite/flaskr in Terminal and run the command “python uploadserver.py” - it will provide an address in Terminal that you can copy and paste into your preferred browser. Upload your COLLADA files to your database.
1b. Manually insert your COLLADA files with SQL commands if you’re comfortable doing so.
2. Open AR-Viewer in xCode and build the project onto your iOS device.
3. Run the AR-Viewer app.

—= Sample SQL table =-

CREATE TABLE object_table (
    file         text,
    lat          numeric,
    long         numeric,
    alt      numeric,
    x_rot        numeric,
    y_rot        numeric,
    z_rot    numeric
);
