Code Monkey home page Code Monkey logo

3d-tour's Introduction

3D-Tour

Web app for a 3D tour in Unity through Facebook Places using GPS.

Overview

This is a project that I developed for the Multimedia Design and Production course at the University of Florence during my Bachelor Degree in Computer Engineering. The assignment required to map a chosen type of data extracted from a social network and in a 3D environment in Unity. I chose to create a coordinate-based and explorable 3D world and to populate it with 3D marks that stands for Facebook Places, enabling a player to navigate into the world and interact with them.

Implementation

The implementation of the solution is the following: the user is enabled to control the player (make it walk, run or jump) through the keyboard arrows and can interact with a place just clicking on it. A pop-up will then appear with place-related information and a link to the correspondent Facebook page.

APIs

In order to retrieve places information it was used the Facebook API Place Graph, making a query for the nearest places in a radius of 5km.

Places

  • Places have been modeled with Sketchup in order to obtain a 3D object that represents faithfully a traditional place icon used in maps.
  • Each place is permanently in rotation on its vertical axis, in order to be recognizable from every direction.
  • Each place has a text label with its name on top.

Place Relevance

The relevance of the place is predetermined according to number of checkins nc and the average number of ratings r from the Facebook users. A scale factor is applied to the place 3D object following these rules:

nc c
nc < 10 0
10 ≤ nc ≤ 100 1
100 ≤ nc ≤ 1.000 2
1.000 ≤ nc ≤ 10.000 3
10.000 ≤ nc ≤ 100.000 4
nc > 100.000 5

Map

For displaying the map on the ground with satellites images it was used the asset Google Go Maps from the Unity Store. This gave the possibility to avoid the implementation details of a web mercator projection at all. The conversion between real polar coordinates and cartesian coordinates on the plane is accomplished by the asset.

User Interface

Buttons

  • Refresh: permits to reloads places from the current position.
  • Home: teleport the player to the initial position (marked with a green down arrow).
  • Set Position: teleport the player to a specific position (lat, lon).

Toggles

  • Enable/disable places of a specific category.
  • Useful in highly concentrated zones.
  • Places requests handled with priority for visible categories.

Orientation

  • Compass: to specific user orientation in the real world.
  • Current Position: latitude and longitude.
  • Mini Map: eagle-eye camera that follows the player.

Demo

Requirements

Software Verison Required
Unity >= 5.3 Yes

Authors

  • Tommaso Scarlatti
  • Simone Magistri

License

Licensed under the term of MIT License. See attached file LICENSE.

3d-tour's People

Contributors

tmscarla avatar

Stargazers

Gaurav Lokhande avatar Cosimo Rulli avatar  avatar Simon avatar Alessio Russo Introito avatar Guglielmo Menchetti avatar

Forkers

tocgis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.