scieee AI-readable full text Open interactive document viewer

Project Incandescence: Design and development of a geolocated experience

Bermejo Rodríguez, Guzmán

Abstract

As years go by, more and more everyday objects are getting interconnected and aware of their environment. This technological fabric being woven across our lives opens up opportunities never seen before. The communication and personal nature of smartphones makes them the ideal flagship in charge of clearing the path and heading towards the Internet of Things era. Their embedded sensors together with their broad adoption makes them the perfect devices for experimenting on novel ways of creating fresh interactive experiences. In this paper, Project Incandescence is proposed; an application which aims to experiment with storytelling by the exploitation of up-to-date technologies present in smartphones. The intended target audience are students of the last years of high school or college students. In other words, people from 16 to 24 years old which are willing to try new things. Project Incandescence is a global video game project but efforts will be mainly focused on programming an app which integrates and makes use of the information provided by recent technologies. Specifically, geolocation, augmented reality and haptic feedback will capture our attention. Another key part of the project is game design. However, it will be tackled with lesser dedication. The artistic aspect of the experience will not be neglected either, but it will be the least important aspect of the three main ones. The development will target the Android platform which is the most extended one among smartphones. This software stack has also postulated as key one in the future since it does not target a specific device, and currently supports from watches to cars.

Full text

Project Incandescence Design and development of a geolocated experience Guzmán Bermejo Rodríguez Advisor: Dr. Raúl Montoliu Colás Department of Engineering Universitat Jaume I de Castellón This dissertation is submitted for the bachelor’s degree of Video Game Design and Development Castellón de la Plana September 2016 Abstract As years go by, more and more everyday objects are getting interconnected and aware of their environment. This technological fabric being woven across our lives opens up opportunities never seen before. The communication and personal nature of smartphones makes them the ideal flagship in charge of clearing the path and heading towards the Internet of Things era. Their embedded sensors together with their broad adoption makes them the perfect devices for experimenting on novel ways of creating fresh interactive experiences. In this paper, Project Incandescence is proposed; an application which aims to experiment with storytelling by the exploitation of up-to-date technologies present in smartphones. The intended target audience are students of the last years of high school or college students. In other words, people from 16 to 24 years old which are willing to try new things. Project Incandescence is a global video game project but efforts will be mainly focused on programming an app which integrates and makes use of the information provided by recent technologies. Specifically, geolocation, augmented reality and haptic feedback will capture our attention. Another key part of the project is game design. However, it will be tackled with lesser dedication. The artistic aspect of the experience will not be neglected either, but it will be the least important aspect of the three main ones. The development will target the Android platform which is the most extended one among smartphones. This software stack has also postulated as key one in the future since it does not target a specific device, and currently supports from watches to cars. Keywords: Video Game Design and Development, Storytelling, Geolocation, Augmented Reality, Haptic Feedback, Android. Table of contents List of figures ix List of tables xi Nomenclature xiii 1 Technical Proposal 1 1.1 Motivation................................... 1 1.2 StateoftheArt ................................ 2 1.2.1 Adventure video games . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.2 Outdoor locating games . . . . . . . . . . . . . . . . . . . . . . . 3 1.2.3 Android................................ 4 1.2.4 AugmentedReality.......................... 4 1.2.5 Geolocation.............................. 5 1.2.6 HapticFeedback ........................... 6 1.3 GamePreview................................. 6 1.4 Objectives................................... 7 1.5 Justification.................................. 8 1.5.1 VJ1234 - Advanced Interaction Techniques . . . . . . . . . . . . . 9 1.5.2 VJ1218 - Hyper Media Narrative and Video Games & VJ1222 - Video Game Conceptual Design . . . . . . . . . . . . . . . . . . . 9 1.5.3 VJ1212 - Graphic Expression & VJ1216 - 3D Design & VJ1226 - Character Design and Animation . . . . . . . . . . . . . . . . . . . 10 1.5.4 VJ1204 - Artistic Expression & VJ1223 - Video Game Art . . . . . 10 1.6 Tools...................................... 10 1.6.1 Programming............................. 11 1.6.2 3D Modeling and texturing . . . . . . . . . . . . . . . . . . . . . . 11 1.6.3 2DandUIDesign .......................... 11 vi Table of contents 1.6.4 Debugging, Testing and Profiling . . . . . . . . . . . . . . . . . . 11 1.6.5 Documents .............................. 11 1.6.6 Version Control System . . . . . . . . . . . . . . . . . . . . . . . 12 1.6.7 Video................................. 12 1.7 ProjectPlan.................................. 12 1.7.1 ProjectSchedule ........................... 12 1.7.2 Deliverables ............................. 16 1.7.3 Software Development Methodology . . . . . . . . . . . . . . . . 16 1.7.4 Budget ................................ 17 1.8 RiskManagement............................... 19 2 Game Design Document 23 2.1 StoryOverview ................................ 23 2.2 Gameplay................................... 24 2.3 CharacterProfiles............................... 24 2.4 GameWorld.................................. 26 2.5 PlayerControls ................................ 29 2.6 GameExperience............................... 29 2.7 GameMechanics ............................... 30 2.8 GameScript.................................. 31 2.9 Cutscenes ................................... 36 2.10Art....................................... 37 3 Game Development 39 3.1 GeneralOverview............................... 39 3.2 BaseApplication ............................... 40 3.2.1 MainActivity............................. 41 3.2.2 MapActivity ............................. 42 3.2.3 Slideshow Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.2.4 DiskActivity............................. 42 3.2.5 Augmented Reality Activity . . . . . . . . . . . . . . . . . . . . . 43 3.2.6 AboutActivity ............................ 44 3.2.7 HintAlarms.............................. 44 3.2.8 Encryption .............................. 45 3.2.9 Permissions Request . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.2.10 Model................................. 46 3.2.11 Notifications ............................. 46 Table of contents vii 3.3 Geolocation.................................. 47 3.3.1 Service ................................ 47 3.3.2 Geofences............................... 48 3.3.3 Location ............................... 48 3.3.4 HapticFeedback ........................... 49 3.4 AugmentedReality .............................. 51 3.4.1 Detection............................... 51 3.4.2 3DModelDisplay .......................... 55 3.4.3 Implementation............................ 57 3.5 Build ..................................... 58 3.5.1 Gradle................................. 59 3.5.2 Dependencies............................. 59 3.5.3 APKSplits .............................. 60 3.5.4 ProGuard............................... 60 3.5.5 Signing ................................ 61 4 Game Art 63 4.1 VisualIdentity................................. 63 4.1.1 Colors................................. 63 4.1.2 Font.................................. 64 4.1.3 Logo ................................. 64 4.2 UserInterfaceDesign............................. 64 4.2.1 Icons ................................. 65 4.3 User Experience Design . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 4.4 Emojis..................................... 66 4.5 DiskScreen.................................. 67 4.6 3DCharacter ................................. 67 4.6.1 Modeling............................... 67 4.6.2 Texturing ............................... 68 5 Results 69 5.1 TechnicalProposal .............................. 69 5.2 GameDesignDocument ........................... 69 5.3 TechnicalReport ............................... 69 5.4 AndroidApplication ............................. 69 5.5 ProjectDefenseVideo ............................ 70 5.6 Project Defense Presentation . . . . . . . . . . . . . . . . . . . . . . . . . 70 viii Table of contents 6 Testing & Evaluation 75 6.1 Testing..................................... 75 6.1.1 Verification.............................. 75 6.1.2 Validation............................... 75 6.2 Evaluation................................... 76 6.2.1 Hardware............................... 76 6.2.2 MarkerDetection........................... 76 6.2.3 3DModelDisplay .......................... 78 7 Conclusions 79 7.1 FutureWork.................................. 80 7.1.1 Specific................................ 80 7.1.2 General................................ 81 8 Project Deviations 83 8.1 ProjectSchedule ............................... 83 8.2 Budget..................................... 85 References 87 Appendix A Playtest questionnaire 93 List of figures 1.1 Project Schedule Gantt Chart. . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.1 Area of the Riu Sec campus. . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.2 Locations with most probable itineraries. . . . . . . . . . . . . . . . . . . . 28 3.1 Project Incandescence as a black box. . . . . . . . . . . . . . . . . . . . . 39 3.2 Architectural design of the application. . . . . . . . . . . . . . . . . . . . . 40 3.3 Supports to multiple screens. . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.4 Thermalcolorpalette.............................. 43 3.5 Location permission request. . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.6 Cardiaccyclewave............................... 49 3.7 Trainingsamples................................ 54 3.8 Shadingtechniques............................... 57 3.9 ARpipeline................................... 58 3.10AnalysisofAPK................................ 60 4.1 Evolutionoflogo................................ 64 4.2 Sketches of some activities. . . . . . . . . . . . . . . . . . . . . . . . . . . 65 4.3 Image assets composing Alberti’s cipher disk. . . . . . . . . . . . . . . . . 67 4.4 Render of the 3D model representing a forebear. . . . . . . . . . . . . . . . 68 5.1 QR code linked to the download site. . . . . . . . . . . . . . . . . . . . . . 70 5.2 MainActivityresult. ............................. 71 5.3 MapActivityresult............................... 71 5.4 Slideshow Activity result. . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.5 DiskActivityresult............................... 72 5.6 Augmented Reality Activity result. . . . . . . . . . . . . . . . . . . . . . . 73 5.7 AboutActivityresult.............................. 74 5.8 Notificationsresult............................... 74 2Technical Proposal Project Incandescence will try to exploit some of the technologies made available by smartphones in order to tell a story in a different way, taking advantage of the joy we feel when discovering new places. The principal objective of this project is to unify different kinds of inputs and outputs to generate a unique experience. In other words, bend popular types of games such as exploration, adventure, geocaching, treasure hunt and scavenger hunt with new technologies such as geolocation, augmented reality and haptic feedback. By doing so, a story bonded to a real location, in our case the Riu Sec campus of the Jaume I University, will be created. This kind of experience aims to revitalize an area by spotting and reusing architectural elements regularly ignored. Regarding the visual aesthetics of the application, it will be kept simple and clean. This is going to be achieved by the use of material design principles for interfaces and a low poly approach for 3D models, unless better options are discovered during the development. Nevertheless, the part regarding the art of the video game is considered as low priority when compared with the game design one and even lesser compared with the programming one. A smaller importance does not mean none since game design and art will provide a sense of identity to the global project. Taking into account time constraints, the expected output of the corresponding Bachelor’s Degree Final Project is a minimum viable product rather than a production-ready one. Android Studio will be used as the main developing tool since its the official IDE for developing apps in the Android platform. The following section will clarify the preference of the Android platform while Section 1.6 describes more precisely the tools to be employed throughout the different phases of the game. 1.2 State of the Art A theoretical introduction to the concepts dealing with the system should be presented before continuing with this technical proposal. In addition, different lines of existing work in the targeted area should also be discussed. 1.2.1 Adventure video games According to the classification made by Scott Rogers an adventure game is the one which "focuses on puzzle solving, and item collection and inventory management" [ 77 ]. In [ 78 ] the author goes further and introduces exploration into the definition. Considering or not exploration as a key factor in adventure games, a subgenre of adventure games which focuses on this aspect should be considered as the most related to Project Incandescence. 1.2 State of the Art 3 Exploration games Exploration games refers to the adventure video game’s subgenre where players discover a story through exploration and discovery of a virtual world. The narrative is usually embedded in elements which needs to be discovered instead of being placed in cutscenes or interactions with NPCs. Some examples of this subgenre are: Gone Home, Thirty Flights of Loving and Dear Esther. 1.2.2 Outdoor locating games This category comprises all the games that take place outdoors and involve some kind of navigation through the environment. If the game includes virtual aspects it is normally called a transreality game since it combines real and virtual worlds. For Project Incandescence three subcategories need to be described. Treasure Hunt A treasure hunt is a type of game where a group of people compete again each other in order to be the first ones to find a real treasure hidden somewhere in the physical world. Normally, players begin from a particular starting point where a clue or direction of an intermediate location is given. When they reach this intermediate location, they gather another clue or location that leads them to another intermediate point. Sometimes in order to gather this clue or location, the player must overcome a challenge like a riddle or a puzzle. Following the entire series of clues leaves the player at the treasure’s location where he can recover a prize. This concept is inherited from the stories that narrate how pirates hid their fortune in inhospitable places which could only be found following the precise steps written in an eccentric map. Scavenger Hunt Scavenger hunt is a game similar to treasure hunt but the importance is shifted from the final destination to intermediate points. In this case, a list is provided at the beginning and the player must complete it by performing some kind of action at intermediate points. These actions vary from taking a picture to gathering a leaf of the tree that is placed at the intended point. 4Technical Proposal Geocaching [ 44 ] defines geocaching as "a high-tech, worldwide treasure hunt (...) where a person hides a cache for others to find. Generally, the cache is some type of waterproof container that contains a log book and an assortment of goodies". This activity started on mid 2000 after the U.S. government discontinued its use of Selective Availability in order to make GPS more responsive to civil users worldwide [ 46 ]. The first first documented placement of a GPS-located cache was done by Dave Ulmer the 3rd May 2000 in Oregon [ 33 ]. Nowadays, there are more than 10 millions of users and more than 2.5 million geocaches are waiting to be found in over 180 countries [34]. The initial containers at specific coordinates have evolved in a variety of caches [ 32 ]. For the contents of this project, the most important ones are: •Mystery or Puzzle Caches: solving puzzles gives you the correct coordinates of the cache. •Virtual Cache: these caches are virtual so the location is is the goal rather than a container. 1.2.3 Android Android is the leading smartphone operating system with about an 80.7% market share followed by iOS, the second most popular one, with a 17.7% [ 12 ]. This OS was initially developed by Android Inc. founded in 2003 and two years after it was purchased by Google. Android is released under open source licenses and it is based on the Linux kernel. The first commercial version was released on 2008 and since then 13 official versions have been released [ 14 ]. It began as an operating for mobile phones but it has been adapted to other devices, and it currently supports wearables, smartphones, tablets, televisions and cars. There are two proper ways of developing an Android application. The first one is using Java which takes advantage of all the Android framework APIs available to developers. The NDK toolset offers us another method which consists on implementing parts of an app using native-code languages like C or C++ for achieving a performance improvement. Typically, this is just done on CPU-intensive applications such as game engines, signal processing, and physics simulation [51]. 1.2.4 Augmented Reality As described by Ronald T. Azuma [ 4 ], augmented reality are systems "in which 3D virtual objects are integrated into a 3D real environment in real time". In other words, they are 1.2 State of the Art 5 systems which display virtual images on top of a view of the real world. There are several libraries that allow building AR systems for the Android platform like the open source ARToolkit [9] or the proprietary Vuforia [75] from PTC Inc. As described in Section 1.4, one of the objectives of this project is to explore and learn new technologies. There is not a better way of acquiring an expertise in a field than experimenting and building modules from a lower lever. AR system can be divided in two fundamental parts: marker detection and display of 3D virtual objects. For these two tasks the usage of two existing technologies will be preferred over building it from scratch. OpenCV "Open Source Computer Vision Library is an open source computer vision and machine learning software library" [ 41 ]. It is a library that holds more than 2,500 computer vision and machine learning algorithms which allow tasks like identifying objects, tracking moving objects, recognizing scenery and establishing markers to overlay it with augmented reality, etc. OpenCV is written natively in C++ and gives support to Android. OpenGL ES OpenGL ES is a cross-platform API specification for rendering graphics on embedded systems which descends from the OpenGL rendering graphics managed by Khronos Group [35] [36]. Android includes support for the OpenGL ES API [64]. 1.2.5 Geolocation Geolocation is pinpointing a person’s or object’s real-world geographic position on the surface of the Earth. It can be done with different approaches like by satellites orbiting around the Earth, by wireless networks or even by mixing several approaches [10]. Fused Location Provider Google Play Services is a proprietary background service which runs in the Android OS and allows the usage of APIs for popular Google services [ 24 ]. The Fused Location Provider, an API included in these services, allows developers an easy addition of location awareness to their apps [ 63 ]. It uses a hybrid geolocation approach which translates in higher accuracy and low-power consumption [52]. 6Technical Proposal Geofences Geofencing consists in creating a virtual geolocated area of interest. For simplification, usually a point with its longitude and latitute is specified together with a radius, in order to generate a virtually fenced circular area. An event will trigger each time the device enters, leaves or stays for a time period in such area. 1.2.6 Haptic Feedback Ordinary smartphones are devices with a lot of sensors for input purposes but not so many for output ones. Output sensors can be divided according to the human sense they target: sight (screen, notification led and flashlight), hearing (speaker) and touch (vibrator). Sight is the most developed human sense so improvements are normally targeted in that direction instead of the probably most important one which is touch. Regarding sensors which aim touch, or haptic sensors, not much have been improved since ancient mobile phones. We still just have a vibrator leaving behind other types of cutaneous sensing such as temperature or pressure variations. Vibrator A small mechanical device present in almost every smartphone which generate physical perturbations. This module usually rumbles following a pattern for a number of times determined by users or developers. 1.3 Game Preview As described in Section 1.7, the conceptual design of the game is a phase of the project. Nevertheless, a high-level idea of the intended game design has been formed but it might be subject to modifications. Currently, there is not a well-known application similar to Project Incandescence so an analysis of the whole concept must be performed from the very beginning. The first thing the user will see when he initializes the application is a brief introduction to the story and mechanics of the game. Then, the player will be headed towards the starting point of the adventure. In that starting point and thanks to augmented reality, a non-playable character will be introduced. This NPC will be the one in charge of presenting the conflict in the story and stating how the player could help solving it. From there, the player will have to explore the campus and, by doing so, meet different NPCs. This discovery will not be 1.4 Objectives 7 done by showing the locations on a map but by feeling different vibration patterns on the smartphone. On each encounter with these characters, a riddle that lead us to a location will be provided. When we find the solution to a riddle and visit the indicated location, a virtual object will be automatically picked up thanks to geofencing. Gathering every object in the adventure will somehow uncover a final riddle pointing at a spot. This final destination will only be activated when the collection is completed. There, the last NPC will be presented and it will serve as the ending of the story. From the last paragraph, it can be assumed that Project Incandesce follows a non-linear progress model in an open gameworld. At this moment, this approach is considered the most appropriate one but it could be changed during the game design phase. This game will not present any losing condition so the adventure will take place from the moment it is started until the completion of it. The only conditions that will interrupt the adventure are: manually, by closing the application, and automatically, when exiting the gameworld region which is encompassed by vast geofence. The reuse of architectural elements as AR markers will be explored. In our case, the silhouettes of horses spread though the Riu Sec campus will be our first target. Finally, it should be mentioned that the game will only have a single difficulty level and a single ending since it is developed under tight time constraints. 1.4 Objectives The course syllabus for VJ1241 - Bachelor’s Degree Final Project [ 81 ] states that the generic and specific competence to be acquired is: • Ability to perform individually and present and defend in front of a university tribunal an original exercise, consisting of a project in the field of video game design and development of a professional nature that synthesizes and includes the skills acquired in the degree. The related learning outcomes are: • Individually plan and implement an original project of a professional nature in the field of video games and where the skills acquired in the degree are synthesized and included. • Write a report in English, orally present and defend it in front of a university tribunal an original project of a professional nature in the field of video games and where the skills acquired in the degree are synthesized and included. 8Technical Proposal From a high-level perspective the principal objective of this project is to learn to develop a professional project which adjusts to the time requirements stated. Moreover, it must include proper documentation. If Project Incandescence is analyzed from a more distinguishing angle, the design and development of an interactive adventure that takes place in a specific physical place, could be defined as the main objective. From an even more illustrative point of view, the principal objectives targeted in this project can be divided in: 1. O1 - Technical proposal: learn to write a document which describes precisely all the work to be done during the development of the project. The proposal must include a plan adequate to the existing restrictions. 2. O2 - Degree’s courses: the project must include a set of skills learned though the different subjects of the bachelor’s degree of video game design and development. 3. O3 - Geolocated experience: develop an application which make players experiment a unique adventure bonded to a physical location. 4. O4 - Recent technologies: be able to experiment and learn new technologies which could be applied in future projects. 5. O5 - Android skills: improve the knowledge on the Android ecosystem and some of its compatible libraries. 6. O6 - Technical report: write a technical document that summarizes the work done stating clearly every aspect of the app in conjunction with an evaluation of how it could evolve in the future. 1.5 Justification In this section, the relation between the proposed project and the courses taught in the pertinent bachelor’s degree will be stated. Since Project Incandescence is a global project, almost every subject attended during these years could be mentioned. However, only the most related ones from each branch will be listed; making emphasis on the most related one, VJ1234 - Advanced Interaction Techniques. 1.5 Justification 9 1.5.1 VJ1234 - Advanced Interaction Techniques The main aim of the course was to explain interaction techniques that will be useful for the development of interactive video games [ 17 ]. The learning outcomes achieved in that subject were: •IR09, IR17 - Describe the different types of existing sensors both input and output. •IR 17 - Build basic programs able to interact with all kinds of sensors. •IR17 - Explain interaction techniques based on digital images. The app proposed is a mixture of different interaction techniques that have been made available for users in the last years thanks to smartphones. In other words, the application will combine input and output sensors present in the majority of such devices to provide a singular experience. The fundamentals of computer vision were learned in this subject and inevitably some techniques are going to be applied in the augmented reality module of this project. 1.5.2 VJ1218 - Hyper Media Narrative and Video Games & VJ1222 - Video Game Conceptual Design These are the only two subjects present in the bachelor’s degree related with game design. The learning outcomes achieved in these subjects were: • E11, G01 - Use new emerging audiovisual technologies for the production of audiovisual discourses in the field of advertising, graphic design, infographies and multimedia products. • E11, G01 - Understand the basic mechanisms of audiovisual discourses and construction procedures through the assimilation of the expressive and narrative resources that make them possible. • E15 - Define rules that harmonize with the available technological possibilities and which provide fluidity. Set game dynamics as principal elements when making a design. • E15, G10 - Design systems which balance the game mechanics, the objectives to be achieved and possible conflicts inside and outside the game. •G04 - Write a video game’s technical document on English. These outcomes could be summarized as a correct design of an audiovisual discourse coherent with game mechanics as it is required in Project Incandescence. 10 Technical Proposal 1.5.3 VJ1212 - Graphic Expression & VJ1216 - 3D Design & VJ1226 - Character Design and Animation The learning outcomes achieved in these subjects were: • E02 - Understand the different methods of three-dimensional representation on a flat surface. •E04 - Use three-dimensional modeling applications for video games. •E06 - Explain the basics of computer animation. •E06 - Explain the principles of character modeling. • E06, IR07, IR13 - Use applications for character modeling and animation in the context of video games. For the creation of correct 3D models to be used in AR module of the game, these learning outcomes are strictly needed. 1.5.4 VJ1204 - Artistic Expression & VJ1223 - Video Game Art •E01 - Master various graphical tools and expressive resources. •E01 - Produce freehand sketches of video games elements. • E09, G09 - Control tools for creating graphical representations with high finish levels. •E09, G10 - Create characterized and textured characters. Sketches of the characters to model, also called 3D model sheets, are needed prior to the creation 3D models. Moreover, the creation of different 2D elements for the application’s interface is needed, for example the logo. 1.6 Tools This section lists the tools that will be used during the design and development of this application. These tools can be grouped according to the topic they help us with. 1.6 Tools 11 1.6.1 Programming Android Studio: is the main tool for the development of the game. Android Studio is the official IDE for Android application development which allow developers to build apps from scratch. Android Debug Bridge: tool that lets us communicate with a connected Android-powered device. Notepad++: an open source program that allows the edition of source code in multiple languages. 1.6.2 3D Modeling and texturing Autodesk 3ds Max 2016: software for 3D modeling which has been used in VJ1216 and VJ1226. Blender: an open source 3D graphics and animation software used in VJ1212. 1.6.3 2D and UI Design Adobe Photoshop: the raster graphics editor used in VJ1204 and VJ1223. Inkscape: an open source vector graphics editor. Layout Theme Editor: tools included in Android Studio which help developers in the production of user interfaces. 1.6.4 Debugging, Testing and Profiling Android Device Monitor: a tool that provides a graphical user interface for several Android application debugging and analysis tools. Performance Profiling Tools: tools included in Android Studio which record and visualize the rendering, compute, memory and battery performance of an Android app. 1.6.5 Documents MiKTeX: an open source implementation of TeX/LaTeX and related programs for Windows. 18 Technical Proposal Table 1.8 Hardware Costs. Hardware owned Concept Price per unit Amortization (3 years) per month Cost (5 months) Personal Computer (x 1) 400.00C 11.11C 55.55C Smartphone (x 1) 200.00C 5.55C 27.77C Total 83.32C is either open source, free, student-licensed or the university owns licenses for it. In other words, the associated expenses of them are 0.00C. Consumables This is the cost of all the consumables that will be spent. Office material includes items like sheets, pens, staples and printer ink. Table 1.9 Consumables Costs. Consumables Concept Cost Office material 50.00C Total 50.00C Other Costs Encompasses any other cost which cannot be fitted in previous sections. Indirect costs incorporate expenses linked to the project (phone, maintenance, electricity, internet, etc.) and are represented by 20% of the human resources costs. Table 1.10 Other Costs. Other Costs Concept Cost Indirect costs 1,13814C Work place 0.00C Total 1,138.14C Total Table 1.11 comprises all the costs to be incurred from the first to the last day of development. The final budget includes a 15% associated with risks and a 20% associated with benefits. The price before taxes and after taxes (21%) is also included in Table 1.11. 1.8 Risk Management 19 Table 1.11 Total Costs. Total Concept Cost Human Resources 5,690.70C Hardware 83.32C Software 0.00C Consumables 50.00C Other Costs 1,138.14C Total before risks and benefits 6,962.16C Risks (15%) 1,044.32C Benefits (20%) 1,392.43C Total before taxes 9,398.91C Total after taxes (21%) 11,372.68C 1.8 Risk Management The next tables show the most probable risks associated with Project Incandescence including their related contingency plans. Table 1.12 Risk - 01. Risk ID R_01 Title Schedule of professional internships Category Project Team Likelihood Medium Description Working full-time during professional internships. Contingency Plan Readjust the project’s schedule in order to recover hours before or after doing professional internships. Table 1.13 Risk - 02. Risk ID R_02 Title Wrong time estimation Category Project Development Likelihood Medium Description Inadequate project’s schedule regarding time constraints. Contingency Plan If lack of hours, focus on essential aspects. If excess of hours, add additional features. 20 Technical Proposal Table 1.14 Risk - 03. Risk ID R_03 Title Wrong costs estimation Category Project Development Likelihood High Description Wrong budget estimation associated with this project. Contingency Plan Try to lower the costs and abandon the project if costs rise too much. Table 1.15 Risk - 04. Risk ID R_04 Title Missing skills Category Project Team Likelihood High Description Some abilities are missing for the completion of the project. Contingency Plan Learn missing skills. Table 1.16 Risk - 05. Risk ID R_05 Title Project files deletion Category Project Team/Hazard Likelihood Low Description Some or the totality of files are unintentionally lost. Contingency Plan Restore a backup. Table 1.17 Risk - 06. Risk ID R_06 Title Equipment fault Category Project Development Likelihood Medium Description Working or testing devices break or malfunction. Contingency Plan Repair or buy new equipment. Table 1.18 Risk - 07. Risk ID R_07 Title RT performance shortfalls Category Project Development Likelihood High Description Real-time requirements on the AR module are not met. Contingency Plan Perform optimizations to reach the requirements. 1.8 Risk Management 21 Table 1.19 Risk - 08. Risk ID R_08 Title Complexity of functionalities Category Project Development Likelihood Medium Description Some functionalities are more complicated than expected. Contingency Plan Reduce the complexity of implementation by means of libraries or other mechanisms. Table 1.20 Risk - 09. Risk ID R_09 Title Missing AR markers Category External Likelihood Low Description Intended AR markers get removed or relocated in the campus. Contingency Plan Readjust the game’s design if a few AR markers are moved. Ask for permission, print and place placeholder markers if they are removed or needed. Table 1.21 Risk - 10. Risk ID R_10 Title Technical proposal rejection Category Project Development Likelihood Medium Description The technical proposal document get rejected by reviewers. Contingency Plan Consider and adjust weak points of the technical proposal. Resubmit the technical proposal with modifications. Chapter 2 Game Design Document This chapter details the game design aspects of Project Incandescence. It resembles the Game Design Document present during the pre-production and production of video games. Attention, this chapter spoils a lot of details regarding the application itself and the narrative behind it. It is advisable that you experience Project Incandescence before reading this chapter in order to form a pure and unbiased opinion of it. 2.1 Story Overview Anais is a young Chilean lady living in the colorful city of Valparaiso. One of her early memories is from Vitalia, a neighbor of her that used to live across the street. Some years ago, Anais’s father got sick so she had to go the pharmacy in order to buy him his daily medicines. This happened during the last days of January which are the hottest ones of the year. The temperature encouraged Anais to stay in the establishment more than necessary because they had air conditioner. Vitalia took advantage of that brief time periods and illustrated the child with some of the beauty present in different places of South America. Anais loved hearing such stories so it quickly turned into a habit. Each day she told her a story about her early travels through the continent when she was learning folkloric remedies from shamans while becoming a chemist. One day, about 3 years ago, Vitalia died and his descendants began a dispute for her inheritance. Recently, a judge resolved this conflict and her house was sold. The new owner threw everything that he considered it was not valuable. Some weeks ago, Anais was getting back home from her classes when she spotted a box besides the waste container with a unmistakable handwriting. It was from Vitalia, so she grabbed it and discovered that the box was composed of smaller boxes and folders. 24 Game Design Document On one of those folders included a strange disk with a ciphered message and an annotation that said, "feel the outflow emanating on the river’s bank since the 8 make visible the splitting of the 4". She made an extensive research and found the uniqueness of the Riu Sec campus. It is the place with the thinnest Earth’s crust and which at the same time is really close to a river basin. Thanks to global warning and to the proximity of the asthenosphere, she developed an experimental component that employing a normal camera allows the processing of signals obtained in micro-mirages caused by heated air outside the visible spectrum. This heat hazes only occur on places where the lithosphere is remarkably thinner which are areas prone to microseisms that can also be translated thanks to the phone’s accelerometer. Anais cannot afford a travel to the exceptional location in Spain so, would you kindly help her decipher the truth? 2.2 Gameplay In this adventure, the player will undergo the following sequence of steps: 1 Travel to the starting point: a map is presented with a marker pointing at the starting point so that the player can go there for the adventure to begin. 2 Call to adventure: set of slides which introduces the player to the story. 3 Tutorial: near the starting point, a meeting point will be activated so that the player can get in touch with location and haptic mechanics. In this meeting point he will have the first contact with the AR system. There, the NPC dialog will lead to a location near the starting point where the player will learn the second sets of mechanics: gathering collectibles and deciphering a part of the ciphered message. 4 Open world: from this point on, all the meeting points will be activated allowing the gathering of the rest seven collectibles. 5 Decipher the message: deciphering the totality of the text will lead to the first ending and unlock the final meeting point. 6 Last meeting point: the last encounter with a forebear which is the second ending. 2.3 Character Profiles The following tables describe precisely each of the characters which are part of this story. 2.3 Character Profiles 25 Table 2.1 Anais Gónzalez. Name Anais Gónzalez Age 19 Occupation Developer of Project Incandescence Relevance Lead Role Sender Physical Appearance Background Raised in a worker family without much income. She lives with her parents and does not have siblings. His father has a chronic disease so she works as a shop assistant in the mornings in order to help to her family economically and to pay her studies. She is doing a degree of Computer Programming Technician at the AIEP. Personality Extremely curious and intelligent. Loves literature and documentaries specially of myths and physics. She is quite extrovert but at the same time she enjoys time alone. Table 2.2 Vitalia Rojas. Name Vitalia Rojas Age 92 Occupation Traditional pharmacist Relevance Support Role Mentor Physical Appearance Background When she was young she traveled through all South America learning home remedies from shamans. On her twenties she suffered hallucinations with some brews and for some people that shady reputation accompanied her until the day of her death. Personality Naive, endearing and dreamer. She was always smiling and embraced life as no one else. Table 2.3 Forebears. Name Forebears Age Unknown Occupation Carry tectonic plates Relevance Secondary Role Helper Physical Appearance Background Once they were alive but now they revere nature and living creatures. Personality Incredulous. Each one have a slightly different personality and form of expression. The final one seems much closer to the player (like a direct ancestor). They do not retain any corporeal characteristic from their mankind lives like genre, race... 26 Game Design Document 2.4 Game World Crucial aspect of the game since dealing with a real space and cannot create or drastically alter it as in a traditional videogame. Anyway, we can enhance some aspects and make the player discover new places. Fig. 2.1 Area of the Riu Sec campus. Figure 2.1 shows that about 0.55 km2 are available and useful at the Riu Sec campus. This convenient area must hold 19 locations: for each of the 8 elements a location for the ancestor plus another for gathering the correspondent collectible, the starting point, the second ending meeting point and a collectible area that is duplicated. In other words, we must scatter those 19 locations within a 0.567 km2 region. The precise spots are specified in Table 2.4, Table 2.5 and Table 2.6. Table 2.4 List of special points. Special Points ID Building Latitude Longitude Duty SP_01 ESTCE 39.9927254 -0.0664335 Start SP_02 CS 39.9959526 -0.0661575 End 2.4 Game World 27 Table 2.5 List of meeting points. Meeting Points ID Building Latitude Longitude Element Symbol MP_01 ESTCE TD 39.9923363 -0.0665829 Crystal MP_02 ESTCE TC 39.9927864 -0.0660407 Water MP_03 ESTCE TI 39.9935722 -0.0678160 Metal MP_04 Library 39.9936562 -0.0691405 Earth MP_05 FCJE C1 39.9945717 -0.0670862 Energy MP_06 Rectorate 39.9949112 -0.0687373 Wood MP_07 FCS 39.9951439 -0.0716149 Fire MP_08 Espaitec 2 39.9941940 -0.0735810 Air Table 2.6 List of gather points. Gather Points ID Name Latitude Longitude Related MP Distance from MP Symbol GP_01 Pyramid 39.9921580 -0.0661220 MP_01 125 m GP_02 Fountain 39.9935470 -0.0683910 MP_02 215 m GP_03 Bolts 39.9951172 -0.0665804 MP_03 215 m GP_04 Ant 39.9953590 -0.0679890 MP_04 215 m GP_05 Solar Tree 39.9949379 -0.0690358 MP_05 175 m GP_05’ Solar Tree 39.9939156 -0.0732810 MP_05 530 m GP_06 Surrounded Tree 39.9955510 -0.0712090 MP_06 220 m GP_07 Fire Stallion 39.9935990 -0.0736490 MP_07 245 m GP_08 Deciduous 39.9940710 -0.0676410 MP_08 515 m 34 Game Design Document FOREBEAR 5 (ciphered) . . . en p a r e s y e s t e p ar ece s e r o t r o ca so . Una a p a c i b l e m e n t e c e r c a d e l r í o se h a l l a , m i e n t r a s l a o t r a i n t e n t a h u i r de l a p e t r i f i c a d a g a r r a . MEETING POINT 6 FOREBEAR 6 Y p ensar que pude v i v i r s i n h acer nada f i n g i e n d o que a mi a l c a n ce a q u e l l o no e s t a b a . Ahora cada d í a me s i e n t o má s a t r a p a d a cumpliendo p e n i t e n c i a s i n e s t a r a e l l o o b l i g a d a . Q u i s i e r a e s t a r ah í para por ú l t i m a vez i n s p i r a r e l a i r e como s i e s t u v i e s e en mi n i ñ ez . Aunque eso ya no o c u r r i r á n i aunque me t r a s l a d e a mi añ or ada Panamá . Me c u e s t a i m a g i n a r que l l e g ó e l p un to en e l que . . . FOREBEAR 6 (ciphered) . . . e l germen de v i d a y c i e n c i a e s t á rode ado en e l ojo de l o que p a r e c e l a l l a v e a l a t r a n s p a r e n c i a . MEETING POINT 7 FOREBEAR 7 Le ft , r i g h t , l e f t , r i g h t , l e f t , l e f t , l e f t , l e f t . Bueno ya estamos o t r a vez . Que no , que no hay ningun a c r i a t u r a de e s a s por aqu í . ¿Cómo? ¿Me e s t a b a s buscando a mí ? No , no me l o c r e o . S i n c e r a m e n t e t e d i go que h ace un r a t o que no veo a n ing uno de e s o s a n i m a l i t o s que os da por r e c l u i r en e s p a c i o s a ng ost o s . No puedo e n t e n d e r como l a g e n t e d i s f r u t a c a p t u r á ndolos , e n c e r r á ndolos , t r a n s f i r i é n dol o s a un p r o f e s o r t e n e b r o s o que fomen ta e l c a n i b a l i s m o p ara a c a bar e n t r e t e n i é ndoos con l u c h a s e n t r e e l l o s . Se ve que a d í a de hoy seguimos e s t a n c a d o s desde l a é poca romana . Como veo que no se va a marchar h a s t a que l e diga algo , l e c o n f e s a r é que uno de e s o s c a b a l l o s con l l a m as como c r i n e s f u e a l ú l t i m o que vi , y s i mal no r e c u e r d o . . . 2.8 Game Script 35 FOREBEAR 7 (ciphered) . . . hab í a cons egui d o t r e p a r por un j a r d í n v e r t i c a l . MEETING POINT 8 FOREBEAR 8 Por f i n t e d i gnas a a p a r e c e r . Ya hab í a p erd i do t oda e s pe r an z a y e s t a b a a p unt o de marcharme . Per o que e s t o y d i c i e n d o , s i no t e n go n in gu na p r i s a . Ha r e s u c i t a d o en mí l a v i e j a man í a de l u c h a r c o n t r a e l tiempo . Cr éeme , a l f i n a l l o mejor es d i s f r u t a r d el momento ya que de un plumazo puedes p e rd e r desde l a s al u d h a s t a e l t r a b a j o . Recuerda l o que l e pas ó a l á r b o l mejor c uidad o . En un d í a de oto ño , una bocanada de a i r e l e a r r e b a t ó sus h o j a s y desde a q u e l momento no ha p odi do r e m on t a r e l v u e lo . Y e so que . . . FOREBEAR 8 (ciphered) . . . si emp re e s t á ro de ado de g en te y d i s f r u t a n d o d e l p l a c e r que l e bri n d a n l o s s e n t i d o s . ¡ Ay ! , s i t e c o n t a se yo l o que he s u f r i d o . SPECIAL POINT 9 FOREBEAR 9 Tanto tiempo s i n v e r t e . ¿De ver dad e r e s t ú ? Recuerdo como s i f u e s e a ye r cuando e mp ezaste a h a b l a r . Tambi é n r e c u e r d o como t e g u s t a b a que t e h i c i e r a n c o s q u i l l a s y e l s o nido de l a s c a r c a j a d a s que b rot a b an a l hac é r t e l a s . Podr í a pasarme d í as rememorando buenos momentos que compartimos p ero e l tiempo apremia . Lo p rim ero es c o n f e s a r t e que no e r e s l a ú n i c a p e r s o na que conoce n u e s t r a e x i s t e n c i a . Si m ira s a l a fach a d a d el e d i f i c i o a t u i z q u i e r d a podr á s comprobar que a lg un os t e l l e v a n a ñ os de v e n t a j a . Aun as í no t e d e s e s p e r e s p orq ue t i e n e s t o d a una v i d a p a r a a l c a n z a r l a v erdad , sie mp re que t e e n f r e n t e s a e l l o s i n miedo y con a lgo de t e n a c i d a d . Y as í por f i n r e v e l a r , l o que l l e v a c a s i t r e s m i l en i o s o c u l t o so lo v i s i b l e p ara l o s que estamos en e l o t r o mundo . 36 Game Design Document Noto como e l v í n cul o que nos une s e e s t á d e b i l i t a n d o . . . a n t e s de que me vaya r e c u e r d a , n i l a s c o s a s n i l a s p e r s o n a s son s i e mp r e l o que p a r e c e n . 2.9 Cutscenes Only two cutscenes will be present in Project Incandescence. They will take the form of a sideshow as they are commonly present in smartphone’s apps as their introduction. Players will be able to swipe left/right to view the previous/next slide. Crucial parts of a story, the beginning and the end, are going to be told with these brief presentations so information must be carefully picked and arrange in order to tell as much as possible with so little. A textual summary of these sideshows is presented in Table 2.7 and Table 2.8. Table 2.7 Beginning Cutscene. 1 2 3 4 Anais presentation She lives in Valparaiso, Chile Father’s illness some years ago Each day after her classes, she went for pills in spite of the hot weather 5 6 7 8 There she met Vitalia (description) Vitalia told Anais stories of her travels Some years ago Vitalia died Dispute of inheritance 9 10 11 12 Judge resolved and house sold New owner threw belongings Grabbed a box and in one file a cipher Vitalia handwritten annotations 13 14 15 16 Connection with 4 classical elements Special location and global warming Developed a exclusive app Help her to uncover if there is something more 2.10 Art 37 Table 2.8 End Cutscene. 1 2 3 4 Anais does not understand She is sorry for not getting in touch before Which remainder? Doubt about adventure Examination of Vitalia’s files 5 6 7 8 Inspect your personal data Please, stop investigating Thanks for collaborating Farewell 2.10 Art Material design is the design language that has been chosen for developing the UI of this app following the recent trend in this kind of devices. Emojis [ 23 ] will be a central part of the interface since they are embedded in the operating system which allows a reduction of the space requirements. Also, the use of emojis makes available the presence of rich glyphs in the notifications issued by the application and reduces the effort to be exerted in the art production phase. Following this minimalist approach, a low poly pattern is embraced for our 3D meshes. We can resemble those 3D meshes with traditional origami figures. This approach suits the capabilities of graphics rendering on not very powerful smartphones. As in paper folded pieces, textures will be simple just including a composition of plain colors. Usually in thermal imaging, a color palette ranging from purplish colors to yellowish colors is used. These color scheme will be adopted for the application theme and a green tone might be also employed for giving further contrast. For further details, Section 4.1 presents a more complete description of Project Incandescence visual aesthetics. Chapter 3 Game Development This chapter corresponds to details regarding the second phase of Project Incandescence. The game development phase is the one which holds half of the total time invested in Project Incandescence from the five ones contained. From time perspective, it can be considered the most important one of the whole project. This chapter starts with a high-level overview of the application and consecutive sections provides insights of each one of the modules developed at a lower-level. 3.1 General Overview The overall system could be seen as one receiving 3 types of inputs and responding to them with 3 types of outputs. Fig. 3.1 Project Incandescence as a black box. 40 Game Development As represented in Figure 3.1, we can consider Project Incandescence as a black box which collects inputs from GPS, camera and touch screen. Those signals get processed accordingly and the system delivers output in form of haptic feedback, user interfaces and notifications. Fig. 3.2 Architectural design of the application. Getting inside the black box will reveal the system’s architecture. Figure 3.2 shows a high-level representation of the interconnected components which constitute the application. The application’s architecture was designed taking as basis the Model-View-Controller pattern [ 76 ]. In our design, the model component corresponds with a singleton instance that preserves the game state, our view correspond to the variety of activities available in the app, and the controller is the background service in charge of presenting activities and making changes on the model. The diagram also includes a abstraction of the persistent storage which is available only to the model. These components will be described in detail on the sections of this chapter. 3.2 Base Application This section consists on a detailed description of the application which communicates and serves as a base for more specialized modules. Each one of the activities described in this section have been developed with support libraries [ 70 ] so that they could bring material design to pre-lollipop devices. 3.2 Base Application 41 3.2.1 Main Activity Every application developed usually have a main entry point that opens whenever the application is executed. On games, this screen usually consists on a main menu that acts as a gateway for starting a new game, continue with a saved game or modify some settings. In contrast with this approach, smartphone’s apps use this principal activity for presenting the most frequently accessed information and the most common actions to be performed. For example, in an email client app the main activity normally present the most recent emails received in the inbox and the preferred action is writing a new email. In Project Incandescence, the main activity contains a list of forebears which have been at least perceived once. The list displays a summary of the information for that forebear depending on the current state of it: just perceived, interacted with it or fully disclosed. (a) Master - Smartphone (b) Detail - Smartphone (c) Combined - Tablet Fig. 3.3 Supports to multiple screens. When a user click on one of the items of the collection, another view is shown with the complete information of that forebear. This master/detail navigation flow is extremly common on mobile devices due to space limitations in such screens. Some years ago, the appearance of hand-held devices with relatively big screens called tablets made necessary the creation of different user interfaces to take advantage of the increase of space. Nowadays, 42 Game Development the boundaries between a phone and a tablet have gotten narrower causing the appearance of the new term phablet. Project Incandescence sets that boundary on 480dp of width. On devices which current screen orientation surpass that mark, a side panel is attached to the main activity which allow the presentation of the list and details of forebears simultaneously. On the other case, the main activity just shows the collection of forebears and tapping on ones opens another activity for presenting the details. In both cases, the predominant action that users want to perform is travel to the disk activity described below. The floating button that allow this navigation automatically swaps permitting a direct launch of the AR activity when the player is near a meeting point. Figure 3.3 shows the difference between the main activity’s appearance on different sized screens. 3.2.2 Map Activity This activity is the first one presented by the application. It uses the Google Maps Android API [ 20 ] to display the starting point of the adventure. Thanks to the features provided by the API, the user’s location is also displayed on screen. This marker stating the position of the player gets updated continuously giving a hint on the route to be followed in order to reach the starting point. A satellite map type was chosen since the target point is not placed in a street and players that are not used to the play area may orient easier with environmental hints. 3.2.3 Slideshow Activity Regularly, Android apps display an intro screen composed of slides as a first taste to the capabilities of that application. Mimicking the same idea, Project Incandescence includes a series of slides as introduction to the game’s story. This activity has been implemented with a custom subclass of FragmentStatePagerAdapter [ 60 ] which allows displaying and managing a number of fragments as pages with a low memory cost. Users are able to swipe left or right to advance through the slide show at their own pace. They can also tap on the buttons at the bottom bar to advance or go back in the slide set. Furthermore, the bottom bar contains a series of breadcrumbs that indicates the current progress. It must be expressed that this activity is the sole one that only supports portrait orientations of the device. 3.2.4 Disk Activity A virtual Alberti cipher disk is implemented in this activity. This implementation contains the most challenging gesture interaction of the whole application. The outer and inner disks 3.2 Base Application 43 are made of two separate ImageView [ 62 ] components. In the activity, a custom touch listener was attached to the inner disk image that responds to touch gestures. User’s interactions translate to animations that seamlessly rotates the inner disk. A release of the touching finger causes the disk to stop rotating and triggers decryption of a ciphered word taking into account the current position of the disks. The inner disk was also implemented to cast material design shadows. Floating button were discarded as an interface component to be used since images can not be stretched to fill the whole area of the button. These scarcity was overcame by setting a clipping oval outline to the ImageView by means of the class ViewOutlineProvider [ 74 ] available from API level 21. The inner disk also fills itself with the collectibles gathered so that players can associate the fragment they are decrypting with a section of the disk. This bound is created when the user taps on a word of the cipher text since automatically the corresponding collectible is displayed on the central part of the disk. This behavior was possible by attaching ClickableSpans [56] to each word of the corresponding TextView [71]. 3.2.5 Augmented Reality Activity Apart from the proper implementation of the augmented reality module described in Section 3.4, we also included some visual and interaction components in the activity dealing with that module. Thermal filter A filter that imitates the output of a thermographic camera was implemented with OpenCV. It uses a look-up table [ 40 ] for applying a custom color map taking into account the different shades present in a grayscale frame. The custom color palette can be observed in Figure 3.4. It resembles a well-known palette used in thermal imaging and was generated by modifying some values of the color palette published in [8]. The 256 colors are mapped to a grayscale image being brighter pixels linked to yellowish color and darker pixels linked to purplish colors. The thermal filter is enabled with a switch at the top left part of the augmented reality screen and forebears are just observable when this filter is enabled. Fig. 3.4 Thermal color palette. 50 Game Development not as sound output. As we are living beings, there are some patterns that we always tend to recognize. One of them is the sequence of cardiac cycles. The heart rate is typically expressed in beats per minute, and varies depending on the animal and its body current state. Project Incandescence tries to mimic this pattern but with vibrations rather than sounds. In Figure 3.6, we can observe a wave which represents a cardiac cycle from a sound recording. An approximation of the wave’s behavior is presented in Equation 3.1. Each of the terms composing the equation corresponds to a sequence of vibrations and idles, corresponding the first one to a vibration. wave =1000ms =200ms +100ms +200ms +500ms (3.1) This approximation is great simulating cardiac cycles but is bonded to cycles of 1 second of duration or the ones corresponding to a 60 bpm rate. Also, a vibration pattern following the first approximation gets annoying over the minutes. That is the reason that lead to an insertion of bigger idle times on patterns with lower bpm values. Equation 3.4 represents the approximation used for creating vibration patterns in Project Incandescence. The range of rates are from a minimum of 10 bpm to a maximum of 130 bpm. Lower beats per minute corresponds to a target that is placed at a great distance while high rates correspond to a nearer target. u=60 bpm100 (3.2) idle = (maxBPM −bpm)2(3.3) pattern =2u+u+2u+(5u+idle)(3.4) The vibrator API [ 73 ] included in the Android framework is quite limited. It lets issuing a vibration with a precise pattern during a fixed number of times or indefinitely. Anyway, it still does not allow the modification of such pattern once the vibration is ongoing. Continuous location changes need the modification of such pattern. The first approach that we could take is stop the current vibration and issue a new one with the new bpm. The problem with this approach is the concatenation of vibrations or wait periods between both patterns which can be misleading. In order to achieve an seamless haptic feedback, we have a runnable that issues a unique cardiac cycle with the current distance and recursively calls itself when that vibration ends. In each of the recursive calls, the pattern gets changed with the updated distance. 3.4 Augmented Reality 51 3.4 Augmented Reality The following section describes the most complex and resource demanding component of the whole game. Augmented reality is a complex process that can be easily implemented on an Android app by means of some libraries like Vuforia, Wikitude or ARToolKit. Each of them have their own advantages and disadvantages but they are all high-level libraries which limit the understanding of AR in detail. For that reason, we decided to go into a lower level and decompose the whole process of overlaying virtual objects in a real-time camera stream into two separate phases. 3.4.1 Detection The initial step of augmented reality is obtaining frames from the camera and perform a detection of the area where 3D models will get rendered. This decision is usually done by predefined signs called markers. Marker-based tracking is the most common approach for detection since once the marker is detected we can easily obtain the correct scale and pose of the camera from the image. Nevertheless, this method needs the placement of those outrageous predefined signs in the real world. The rest of detection techniques are normally called markerless even though they tend to use visual features for the detection. The next decision taken was to determine what we were going to detect in order to overlay correctly information. In Chapter 1, we determined that horses silhouettes were going to be our "markers". However, we changed to meeting point signs for the following reasons. The first one is that these sculptures are absent in some regions of the game area so we will underuse all the space available. On the other hand, meeting point signs are scattered surrounding all the buildings in the campus. Horses are horizontal figures while character are normally vertical figures more similar to street signs. Furthermore, meeting point signs denote a point where you meet someone. These signs are predefined so they can be used as markers but can also be used with feature-based detection. As we will learn from next subsections, Project Incandescence follows a hybrid tracking approach. [ 79 ] states that hybrid tracking are systems which "combines two or more tracking methods". Our approach combines feature-based tracking with sensor tracking. It uses GPS to determine the user’s position on earth in order to determine which forebear is going to be met while feature-based tracking figures out the local position of the object to be detected. Image processing consists on a series of algorithms that apply signal processing techniques to images in order to obtain a result. Since Project Incandescence is a global project and not just an AR centered one, a library which contains computer vision algorithms was chosen as the baseline for marker detection. There are also different candidates for computer 52 Game Development vision libraries like FastCV or BoofCV. Hovever, OpenCV was chosen for this task since it is open source, cross-platform, mature and consolidated. Approaches OpenCV is a broad library containing different methods to achieve our goal. The following approaches were the most adequate ones and therefore they were the ones considered for the detection task. 1. Template matching: compare a template over every section of an input image. 2. Feature detection, description and matching: detect a points of interest or features like corners, describe them with algorithms like SURF and match these key points between the template and the analyzed image to find the desired region. 3. Classifiers: a machine learning based approach where a function is trained from a set of images and then used to detect objects in other images. One of the approaches had to be selected from these possibilities. Template matching was the first one discarded since it does not behave correctly with scale variations. That will translate to a small range of positions where player are at an specific distance with respect to the object. The second approach is more scale-independent but it is limited to a particular marker. In other words, it detect a specific object but not a type of object. For example, it can detect the face of one particular person but not all human faces. This approach is the one available in libraries like Vuforia. The final classifiers approach is the most general and selected one since it does not present any of the previously mentioned limitations. Cascade Classifiers Normally a classifier works in the following way. First, there is a training phase composed of a set of images containing and not containing the desired object to be detected. From those images, a set of features is extracted with a threshold associated that determines if the feature is present or not in the targeted object. Features that best detects the presence of an object are retained while the rest are discarded. These finest features are called weak classifiers. By themselves, they cannot classify the image since they focus on a very specific characteristic but together they form a strong classifier. The final classifier is commonly a weighted sum of each one of the weak classifiers. Finally, features are applied to an image in order to determine if the object is present or not. 3.4 Augmented Reality 53 A cascade classifier is an optimization on regular classifiers. Instead of applying a number of features on each image’s window, features are grouped in stages that compose a tree hierarchy. The first levels are composed of small sets of features while leaves contain larger sets. Applying separately each of the stages lets us discard rapidly those regions of the image and just focus on those which could be part of the object to be detected. Cascade Training The most important phase when using a cascade classifier is the adequate training of the cascade. Underfitting and overfitting can lead to the appearance of false positives and negatives while other aspects may have significant effects on the performance. The first element to be considered is the image set used in the training process. In any training process, two kind of images are required, positive and negative. Positive images refers to pictures which contains only the object to be detected. In our case, that means pictures where the meeting point sign is cropped in an arbitrary background. On the other hand, negative images, which are ones that does not contain the object to be detected, are also needed. The CBCL StreetScenes from the MIT [ 6 ] was selected as the dataset where negative images were obtained since they resemble the landscape of the game world. Pictures of the meeting point sign where obtained with a smartphone camera varying the resolution per each sample and manually cropped. With this process, 24 different images of the object to be detected were obtained. Anyhow this is not a sufficient number of images in order to achieve good results. In [ 45 ] the training set was composed of 5,000 positive images and 3,000 negative images. OpenCV contains an utility called opencv_createsamples [ 39 ] which applies perspective transformation for creating a large set of positive samples. Using as background the negative data set we created multiple positive images. During consecutive training stages some positive images get discarded so we need to produce more positive samples than needed. In our case, a 40% more was created by generating 207 samples per each of the 24 original images making a total of 4968 positive images. With our images ready, the next step is to determine the feature type of the cascade. OpenCV currently only allows 3 different types of features: HOG, Haar and LBP. The detection rates of the three patterns are really similar as observed in [ 3 ]. However, our goal is to select the fastest one when detecting. That priviledge is held by LBP since it works with integers instead of floating-point numbers for computations [ 82 ]. This hypothesis is empirically tested on [ 1 ] where the author state that LBP is 10-15% faster than Haar while LBP is 10 times faster than HOG. Local binary pattern features were chosen as our feature types for the trained cascade. Regarding the classifier, OpenCV just support boosted classifiers so we stick with the default Gentle AdaBoost classifier. 54 Game Development (a) Negative sample (b) Positive sample (c) Generated positive sample Fig. 3.7 Training samples. The opencv_traincascade [ 39 ] program allows the generation of the desired cascade. Following an approximate 2:1 ratio used during training in [ 45 ], we set the number of positives as 3,548 and 1,774 as negative and LBP was set as the feature type. Some other parameters are available for tuning and they are described on Section 6.2. Modifications in the library Several modifications were performed in the section of OpenCV that deal with Android. 1. Support for portrait orientation. By default the Android wrapper of OpenCV just let developers use the camera in landscape mode. It was implemented in such way since Android devices always return the stream of frames in horizontal orientation. Frame rotation is an expensive operation so they just allowed such orientation for providing a better sense of motion in these limited devices. Project Incandescence characters are taller than wider, so the portrait orientation fits better. That is why the feature was developed and now it supports both orientations. The rotation of the frames makes the 3.4 Augmented Reality 55 AR module drop FPS but on modern devices the sense of motion is not completely lost. 2. Selection of frame size. As in the previous point, by default it picked the biggest one that fitted on the screen. Anyhow, cameras in new devices provides a great number of available frame sizes. Some of those sizes does not match the proportions of the screen so we end having a black region that limits our sensation of immersion. In order to alleviate that problem, a modification to the library was made in order to the select the biggest frame size which retains the screen’s proportion. 3. A unique JNI call. There is an overhead when making calls to native code. That is why all JNI calls were merged into a single one which from an array of bytes makes the detection, applies the thermal filter and returns the final bitmap. 3.4.2 3D Model Display After the area where the contextual information is determined, such information must be rendered on screen. In contrast with detection, Android devices support natively OpenGL ES [ 64 ] which allows us the creation of computer graphics. Despite the fact that this task could be implemented in either Java or C++ with similar results, we decided to do it with the latest since the detection phase is done in C++. Everything dealing with this submodule was done from scratch except a helper class for performing math operations on matrices. This helper class, vecmath [ 49 ], was developed by The Android Open Source Project under the Apache License. Environment The first aspect we must take a decision on are camera’s characteristics. Typically, we use perspective projections when making renders that look similar to the real world. That optical effect is achieved when objects are subject to foreshortening, and they appear larger the closer they are to the camera. As our vision of the real world is tied to this effect, perspective projection can be conceived as the appropriate one for the application. Notwithstanding that these seems the right choice, computing the distance from an object to a camera and adjusting the dimensions of it tend to be harder on perspective projections. In Project Incandescence, we only show a unique object in our scene with a transparent background. Using an orthogonal projection should not be visually strange for users since they do not have another object in the scene that could reveal the use of such projection method. An orthogonal projection was selected as the one for rendering the 3D character in the scene. 56 Game Development Orthogonal projection allows the object to be equally seen if closer or further from the camera when it is placed inside the frustum’s boundaries. In other words, we must manually vary the scale to exert a sensation of depth. The detection phase yields a bounding box that determines the position and proportions of the detected object in the screen space. On the rendering phase, the model is translated and scaled in such a way that it covers the bounding box. Shaders Implementing shaders is necessary for displaying 3D shapes and coloring them. Specifically, a vertex shader is needed for rendering vertices of a model, and a fragment shader for rendering the face of a model with colors or textures. In OpenGL, these shaders are implemented in OpenGL Shading Language (GLSL). A key part of shading is the lightning model employed. We wanted forebears to express a sense of mystery which can be achieved by casting uncommon shadows. To achieve this effect, a low angle frontal light was placed. In our case, the type of light selected was a directional white light. A custom shading model was implemented in GLSL. This model included ambient and diffuse lighting but not specular. The diffuse reflection is determined by means of Lambert’s cosine law [ 42 ] whereas the ambient component is a plain dark color. As described in Section 2.10, we want a low poly approach when rendering our model. In other words, a uniform color must be applied to each face. By default, OpenGL sets a smooth shading that interpolate color values calculated at each vertex across corresponding faces, like in Gouraud shading. In OpenGL ES 2.0 modifying the shading technique to a flat shading is unavailable with glShadeModel [ 37 ]. For that reason, we had to duplicate vertices in order to store per-face normals. Figure 3.8, presents the difference between default smooth shading and custom flat shading. Moreover, every vertex’s color of the model is the same on each encounter. This translates to different shades when rendered as the result of the lighting model implemented. Model Storage Another crucial aspect of this submodule is the way that the 3D model is represented. File formats such as obj, fbx or collada are the main ones used to store 3D information. Time requirements has not let an implementation of a file loader for any of those formats. Vertices, normals and color information of our 3D model has been stored as different inline arrays in a separate project’s file. 3.4 Augmented Reality 57 (a) Smooth shading (b) Flat shading Fig. 3.8 Shading techniques. 3.4.3 Implementation This subsection explains accurately the operations performed when the augmented reality is turned on. Figure 3.9 details the different operations that compose the AR module. Specifically, it details each one of the operations which are applied to a raw frame and conforming a pipeline. Submodules operations are performed in three different threads. The main thread is in charge of capturing and feeding a worker thread with fresh frames. When a new frame arrives it gets processed in the worker thread. This procedure is done in the application’s native code portion and can be split into the following operations. 1. Memcpy: copying the frame to the native part from a buffer. 2. Rotation: since the stream of frames is always obtained in a landscape orientation, a rotation is needed if the activity is in portrait orientation. A 90 degrees rotation operation can be split into a matrix transposition and a posterior flip it in the y-axis. 3. Process: apply computer vision techniques described in prior subsections. Tracking refers to determining regions of the image where it is probable that a targeted object is present. Detection refers to applying the trained cascade to find the object giving a higher priority to regions coming from the tracking stage. 58 Game Development Fig. 3.9 AR pipeline. 4. Thermal filter: map shades of gray to the color map described in Subsection 3.2.5 with a look-up table transform. 5. Determination: determine the position and size of the 3D model to be rendered. 6. Bitmap conversion: convert the frame to a bitmap. 7. Draw bitmap: draw the bitmap obtained in the previous operation in the canvas. Simultaneously, a thread dealing with OpenGL renders the 3D model into a custom GLSurfaceView [ 61 ] with a transparent background. Rendering is divided in 3 phases: compute a MVP matrix with the scale and translation values determined in the worker thread, update all parameters needed by shaders and render the model on the GPU. 3.5 Build Building is a key phase during the development of any kind of computer program but it usually gets neglected or at least does not retain the relevance it should. Compilers sometimes allow the tweaking of parameters that makes improvements in products with a minimum time investment. Android building process contain a number of phases which warrant from code shrinking to generation of builds per device architecture. 3.5 Build 59 3.5.1 Gradle Gradle [ 31 ] is an advances build toolkit which manages and automates the process of building an final product. It not only in charge of compilation but also of packaging resources in an APK file and signing this package. Project Incandescence uses Gradle experimental plugin which comes with NDK integration for building native applications [ 59 ]. Version 0.6.0 was chosen since it was the latest stable version when the development began. 3.5.2 Dependencies The most notable dependency is determining compatible versions of the Android platform. We wanted the application to be running on at least one of each two devices. Project Incandescence is available from devices with Lollipop (API level 21) to ones with Marshmallow(API level 23), which is the 53.7% of the market [ 58 ]. Support to Android Kitkat (API level 19) was considered but it was not possible as established in Subsection 3.2.4. OpenGL ES versions are independent of the OS. That makes possible that devices running one of the latest Android versions rely on older versions of OpenGL. In order to support every possible device, the minimum OpenGL ES version was set to 2.0. Table 3.1 specifies the libraries which the Java part of Project Incandescence depends. The selected versions were the latest ones when the development phase started. The native part of the app developed in C++ have the following library dependencies: android, log, jnigraphics and GLESv2. Table 3.1 Java libraries used. Library Version Design Support Library 23.4.0 v4 Support Library 23.4.0 v7 Appcompat library 23.4.0 v7 Cardview library 23.4.0 v7 Recyclerview library 23.4.0 v13 Support Library 23.4.0 OpenCV 3.10 Google Maps 9.0.2 Google Location and Activity Recognition 9.0.2 Regarding OpenCV, there are two possible ways of initializing the library in a custom application [ 38 ]. The recommended way is using async initialization which uses the OpenCV 66 Game Art Table 4.2 Material icons used from Google’s collection. Action Name Image Cipher Disk Wifi tethering AR Camera Camera Enlighten Wb incandescent Return Exit to app Swap About Import contacts Notification Perm scan wifi we minimize it to a only one. This aspect is the one that lead us to pick an alternate accent color. The second enhancement done boosting user experience is in the disk activity. Instead of letting the users type the corresponding decipher message, this process was automated. We have decreased the learning curve by doing so. At the same time, we have provided visual feedback for user when they select a snippet of the message which triggers a display of the emoji corresponding to such snippet. Finally, the tablet design of the interface may also be underlined as an improvement in the user experience category. Allowing the visualization in the main activity of not only of the list of forebears but also the details of each one speeds up the interaction in a mid game scenario. 4.4 Emojis Project Incandescence do not use any kind of video nor sound to express the story backing this game. Anyhow, we should encompass a mechanism of presenting such story to the player. Following the trend on most recent Android applications, we included some tutorial screens not for explaining how to use the app but for introducing the story. These screens consist on a plain color background with a top image and some underneath text. The movement between the current and the next or previous slide can be done by swiping left/right or tapping at actions in the bottom bar. This bar also include breadcrumbs to indicate the current visible slide of the whole slideshow. For the same reason as for the icons generation, already created icons were employed. In this case, an open source project has also been selected, the Noto 4.5 Disk Screen 67 Color Emoji font [ 23 ]. It provides hundreds of colored icons representing a wide variety of concepts, all of them ordered and accessible in the official GitHub repository [13]. These emojis compose a font which is present in every Android device. If we take advantage of such reality, we can decrease space requirements since those images are already included in the device. For these reason, we also make use of emojis for representing other things in Project Incandescence like each of the eight elements or the gathered collectibles. 4.5 Disk Screen Apart from the logo, the disk screen contains the rest of 2D assets created for Project Incandescence. It is made up of two vectorial images which consists on two different disk containing the Spanish alphabet including the five accented vowels as shown in Figure 4.3. Both disks letters are divided by radial lines in order to make a distinction between each others. All these lines meet up at the center, dividing this inner disk region in eight slices where emojis of gathered elements are placed. (a) External disk (b) Internal disk Fig. 4.3 Image assets composing Alberti’s cipher disk. 4.6 3D Character 4.6.1 Modeling The modeling of the character was done in Autodesk 3ds Max 2016 obtaining a mesh composed of 576 triangles. Afterwards, it was optimized using the MultiRes modifier to a mesh of 266 triangles. This model was extremely polygonal when inserted inside the AR module so we ended up with a 468 triangles mesh optimized and fixed in Blender. 68 Game Art Figure 4.4 shows a quick render of the final model. The same program allowed the export of it to an obj file that was transformed to an array of points with the script available at [5]. Fig. 4.4 Render of the 3D model representing a forebear. 4.6.2 Texturing The model was not textured since when rendered on the augmented reality module it is shaded with a plain color as described in Subsection 3.4.2. The plain color changes depending on the forebear visited following the distribution indicated in Table 4.3. Table 4.3 3D model colors on each encounter. 3D Model Colors ID Building Element Color MP_01 ESTCE TD Crystal #9C27B0 MP_02 ESTCE TC Water #2196F3 MP_03 ESTCE TI Metal #9E9E9E MP_04 Library Earth #795548 MP_05 FCJE C1 Energy #FFC107 MP_06 Rectorate Wood #8BC34A MP_07 FCS Fire #FF5722 MP_08 Espaitec 2 Air #00BCD4 SP_02 CS Aether #F5F5F5 Chapter 5 Results In Chapter 1, a series of deliverables were presented. These deliverables can be considered as the tangible outputs or results from this project. This chapter consist on a presentation of the final state of each one of Project Incandescence’s intended results. 5.1 Technical Proposal The document describing the intended work for this final project which is the first chapter of this dissertation. 5.2 Game Design Document As with the Technical Proposal, the GDD consisting on an overall of Project Incandescence’s game design aspects makes part of this document as Chapter 2. 5.3 Technical Report Subsection 1.7.2 states that the Technical Report will consist on "a technical document describing all the work done in this final project" which refers to the thesis you are currently reading. 5.4 Android Application The Android Application is the developed experience which channeled all the efforts in order to attain the objectives targeted in Section 1.4. The version which is compatible 70 Results with all architectures and the one just suitable for devices with ARM version 7 or 8 can be downloaded from https://drive.google.com/open?id=0B4dO-M20_iy_RzJBYjNmZjk5NW8. The downloaded apk can be installed manually with the install option present in Android Debug Bridge or directly by allowing the installation of apps from unknown sources in the security related options on the smartphone. Fig. 5.1 QR code linked to the download site. Figures 5.2, 5.3, 5.4, 5.5, 5.6, 5.7 and 5.8 shows the final appearance of the activities described in Section 3.2 which constitute the final version of the application. In particular, Figure 5.2 reveals the final state of the Main Activity, Figure 5.3 reveals the final state of the Map Activity, Figure 5.4 reveals the final state of the Slideshow Activity, Figure 5.5 reveals the final state of the Disk Activity, Figure 5.6 reveals the final state of the Augmented Reality Activity, Figure 5.7 reveals the final state of the About Activity, and Figure 5.8 reveals the final state of the 5 different notifications issued by Project Incandescence. 5.5 Project Defense Video Videos showing parts of the developed game can be watched at https://drive.google.com/ drive/folders/0B4dO-M20_iy_QkQ3d0M5Vy0zZW8. They were recorded in a device under heavy load so the results are not as fine as in a normal gameplay. Portrait.m4v shows the augmented reality module on portrait mode while in Landscape.m4v you can sense haptic feedback resulting from location changes as well as AR in landscape mode. The music of Portrait.m4v corresponds to [ 2 ] and [ 83 ] to the other one. Both songs are published under Creative Commons’ licenses. 5.6 Project Defense Presentation The presentation to be used during the project defense is currently under construction but is accessible at https://goo.gl/AJMrVB. 5.6 Project Defense Presentation 71 (a) Master (b) Detail (c) Combined Fig. 5.2 Main Activity result. Fig. 5.3 Map Activity result. 72 Results (a) Start (b) End Fig. 5.4 Slideshow Activity result. (a) Just a collectible gathered (b) All collectibles gathered Fig. 5.5 Disk Activity result. 5.6 Project Defense Presentation 73 (a) AR Landscape (b) Normal (c) AR Portrait Fig. 5.6 Augmented Reality Activity result. 74 Results (a) Normal (b) AR Portrait Fig. 5.7 About Activity result. (a) Starting point (b) Meeting point (c) Gather point (d) Hint disclosed (e) Final message Fig. 5.8 Notifications result. Chapter 6 Testing & Evaluation This chapter is divided in two well-defined sections. On the first one, we test the application ensuring the adequacy of Project Incandescence. On the second section, an evaluation of its performance is carried out on the app’s most demanding module. 6.1 Testing Ensuring the correctness of the system is not sufficient when testing games. Entertaining, a transmission of emotions and a development of skills are purposes inherent in games that must be examined too. The analysis of such aspects is particularly important on games which explore novice ways of attaining those objectives. 6.1.1 Verification The verification phase guarantees that the application is free of any kind of bugs. This process is normally performed on 4 distinguishable phases: development phase, alpha, beta and release. On each phase different sets of actors test the product including developers, professional game testers and users. In our case, thanks to limitations in time and budget, the assurance on the correctness of the application was performed exclusively by the developer. 6.1.2 Validation The process of checking that a game accomplishes its intended purposes can be labeled as validation. Developers are typically biased to some extension with their game so validation must be performed by external parties. There was not time left for performing a validation 82 Conclusions Virtual events Augmented reality permits the generation of virtual events. For example, a virtual art exhibition in a public space like a park or train station. Routes Since GPS signals are strong outdoors, creating hiking and/or sea routes perfectly fits as an evolution of Project Incandescence. However, other AR detection approaches will suit better this evolution like mixing location with cardinal direction on high seas. Group Playing a video game alone is great but is even greater when sharing the experience with loved ones. Creating experiences that allow cooperation or competition with other players should also be considered. Remote The insertion of a back-end in the system enabling remote addition and modification of adventures is crucial when targeting a global market of experiences. Upcoming Technologies New technologies could bring extra possibilities to augmented reality capabilities. For example, the recently released Tango platform [ 29 ] which "uses computer vision to give devices the ability to understand their position relative to the world around them". Tango uses new sensors like a motion tracking camera and a 3D depth-sensing camera to give mobile devices that type of understanding. Smartphones which include those sensor are currently rare on the market but it may become mainstream soon. Chapter 8 Project Deviations One of the greatest challenges faced during the development of a project is to follow the intended plan. In every project, some kind of deviation appears in constraints like time, cost or scope. The iron triangle is a model that illustrates how a deviation in one constraint affects other constraints. Project Incandescence incurred in some deviations that lead some adjustments in the project schedule and budget as described in the succeeding sections. 8.1 Project Schedule Section 1.7 presented the intended schedule for this project estimating the duration of each task. An underestimation and overestimation of time was committed in a great set of this task due to the fact that most task were to a certain degree unfamiliar. But this wrong estimation associated with risk R_02 was not the only problem faced with regard to the time invested in the project. Risk R_01 from Section 1.8 also materialized making necessary a change in the project schedule. Even though the duration of tasks suffered a variation, the phases and task were accurately spotted in the Technical Proposal. Tables 8.1, 8.2, 8.3, 8.4 and 8.5, and Figure 8.1 are a modified version of the ones present in Subsection 1.7.1. Table 8.1 Phase 1 - Actual Tasks Breakdown. Documentation ID Task Period Total Days Total Hours TP Technical Proposal 30-03-2016 to 07-04-2016 9 12 TR Technical Report 24-08-2016 to 26-09-2016 34 85.5 PDV Project Defense Video 23-09-2016 to 24-09-2016 1 2.5 PDP Project Defense Presentation 27-09-2016 to 11-10-2016 4 3.5 Total 103.5 84 Project Deviations Table 8.2 Phase 2 - Actual Modules Breakdown. Game Development ID Module Period Total Days Total Hours MD Marker Detection 02-05-2016 to 15-05-2016 14 28.5 3DD 3D Model Display 16-05-2016 to 02-06-2016 18 19 GF Geofencing 03-06-2016 to 06-06-2016 4 8.5 HF Haptic Feedback 07-06-2016 to 09-06-2016 3 5 BA Base Application 24-07-2016 to 23-08-2016 31 68 Total 129 Table 8.3 Phase 3 - Actual Tasks Breakdown. Game Design ID Task Period Total Days Total Hours GDD GDD production 10-06-2016 to 17-07-2016 38 53.5 Total 53.5 Table 8.4 Phase 4 - Actual Tasks Breakdown. Game Art ID Task Period Total Days Total Hours VI Visual Identity 27-07-2016 1 1.5 LG Logo 18-07-2016 1 2 UX User Experience Design 30-07-2016 1 1 UI User Interface Design 23-07-2016 1 2 TS Tutorial Screens 19-07-2016 to 23-07-2016 5 10.5 3DM Modeling a 3D character 18-09-2016 1 6.5 3DT Texturing of the 3D model 18-09-2016 0 0 Total 23.5 Table 8.5 Phase 5 - Actual Tasks Breakdown. Game Evaluation ID Task Period Total Days Total Hours IT Integration testing 06-09-2016 to 26-09-2016 21 18 EA Evaluation of application 21-09-2016 2 4.5 Total 22.5 8.2 Budget 85 8.2 Budget As probably observed in Section 6.2, the application was evaluated in two smartphones instead of just one. The second device incurred the unique modification on the project’s budget. Table 8.6 Hardware Costs. Hardware owned Concept Price per unit Amortization (3 years) per month Cost (5 months) Personal Computer (x 1) 400.00C 11.11C 55.55C Moto G1 (x 1) 200.00C 5.55C 27.77C Moto G4 Plus (x 1) 269.00C 7.47C 37.36C Total 120.68C This increase does not have an effect on the total cost since it is assumed as part of the 15% associated with risks. 86 Project Deviations Fig. 8.1 Project Schedule Gantt Chart with deviations. 2016 Mar Apr May Jun Jul Aug Sep Oct 12345678910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Documentation TP TR PDV PDP D1 D3 D5 D6 Game Development MD 3DD GF HF BA D4 Game Design GDD D2 Game Art VI LG UX UI TS 3DM 3DT Game Evaluation IT EA References [1] (2016). Haar lbp and hog - experiments in opencv object detection | the robot diaries. http://robotics.hobbizine.com/opencv.html. (Online; Last accessed on 15-09-2016). [2] 10, K. (2016). Bromas " take five" by k10.. | k 10 | free listening on soundcloud. https://soundcloud.com/k10kansas/bromas-take-five. (Online; Last accessed on 25-09- 2016). [3] Ahmad, F., Najam, A., and Ahmed, Z. (2013). Image-based face detection and recognition: "state of the art". CoRR, abs/1302.6379. [4] Azuma, R. T. (1997). A survey of augmented reality. Presence: Teleoperators and virtual environments, 6(4):355–385. [5] Behrens, H. (2012). obj2opengl/obj2opengl.pl at master · hbehrens/obj2opengl · github. https://github.com/HBehrens/obj2opengl/blob/master/obj2opengl.pl. (Online; Last accessed on 19-09-2016). [6] Bileschi, S. (2007). Cbcl streetscenes database download page:. http://cbcl.mit.edu/ software-datasets/streetscenes/. (Online; Last accessed on 11-09-2016). [7] Canonical (2016). Ubuntu manpage: opencv_performance - evaluate the performance of the classifier. http://manpages.ubuntu.com/manpages/xenial/man1/opencv_performance.1. html. (Online; Last accessed on 26-09-2016). [8] Center, I. T. (2005). Infrared training center - message board archive. http://www. infraredtraining.com/community/boards/thread/3019/. (Online; Last accessed on 02-09- 2016). [9] DAQRI (2016). About artoolkit’s history and team | artoolkit.org. http://artoolkit.org/ about-artoolkit. (Online; Last accessed on 08-03-2016). [10] Djuknic, G. M. and Richton, R. E. (2001). Geolocation and assisted gps. Computer, 34(2):123–125. [11] Ericsson (2016). Ericsson mobility report november 2015. http://www.ericsson.com/res/ docs/2015/mobility-report/ericsson-mobility-report-nov-2015.pdf. (Online; Last accessed on 29-03-2016). [12] Gartner (2016). Gartner says worldwide smartphone sales grew 9.7 percent in fourth quarter of 2015. http://www.gartner.com/newsroom/id/3215217. (Online; Last accessed on 08-03-2016). 88 References [13] GitHub (2016). Github - googlei18n/noto-emoji: Noto emoji fonts. https://github.com/ googlei18n/noto-emoji. (Online; Last accessed on 27-08-2016). [14] Google (2016a). Android - history. https://android.com/intl/en_en/history/#/ marshmallow. (Online; Last accessed on 08-03-2016). [15] Google (2016b). Android performance patterns: Why 60fps? - youtube. https: //www.youtube.com/watch?v=CaMTIgxCSqU. (Online; Last accessed on 08-09-2016). [16] Google (2016c). Bound services | android developers. https://developer.android.com/ guide/components/bound-services.html. (Online; Last accessed on 26-09-2016). [17] Google (2016d). Code style for contributors | android open source project. https: //source.android.com/source/code-style.html. (Online; Last accessed on 06-03-2016). [18] Google (2016e). Color - style - material design guidelines. https://material.google.com/ style/color.html. (Online; Last accessed on 27-08-2016). [19] Google (2016f). com.google.android.gms.location | google apis for android | google developers. https://developers.google.com/android/reference/com/google/android/gms/ location/package-summary. (Online; Last accessed on 26-09-2016). [20] Google (2016g). Google maps android api | google developers. https://developers. google.com/maps/documentation/android-api/?hl=en. (Online; Last accessed on 26-09- 2016). [21] Google (2016h). Icons - style - material design guidelines. https://material.google.com/ style/icons.html. (Online; Last accessed on 27-08-2016). [22] Google (2016i). Material icons - google design. https://design.google.com/icons/. (Online; Last accessed on 27-08-2016). [23] Google (2016j). Noto color emoji – google noto fonts. https://www.google.com/get/ noto/help/emoji/. (Online; Last accessed on 27-08-2016). [24] Google (2016k). Overview of google play services | google apis for android | google developers. https://developers.google.com/android/guides/overview#how_it_works. (Online; Last accessed on 29-03-2016). [25] Google (2016l). Principles - layout - material design guidelines. https://material.google. com/layout/principles.html. (Online; Last accessed on 27-08-2016). [26] Google (2016m). Running a service in the foreground | android developers. https: //developer.android.com/guide/components/services.html#Foreground. (Online; Last accessed on 26-09-2016). [27] Google (2016n). Services | android developers. https://developer.android.com/guide/ components/services.html. (Online; Last accessed on 28-08-2016). [28] Google (2016o). Storage options | android developers. https://developer.android.com/ guide/topics/data/data-storage.html. (Online; Last accessed on 26-09-2016). References 89 [29] Google (2016p). Tango. https://get.google.com/tango/. (Online; Last accessed on 21-09-2016). [30] Google (2016q). Typography - style - material design guidelines. https://material. google.com/style/typography.html. (Online; Last accessed on 27-08-2016). [31] Gradle (2016). Getting started with gradle for android build l gradle. https://gradle.org/ getting-started-android-build/. (Online; Last accessed on 26-09-2016). [32] Groundspeak (2016a). Geocaching > getting started with geocaching > geocache types. http://www.geocaching.com/about/cache_types.aspx. (Online; Last accessed on 08-03-2016). [33] Groundspeak (2016b). Geocaching > getting started with geocaching > the history of geocaching. https://www.geocaching.com/about/history.aspx. (Online; Last accessed on 08-03-2016). [34] Groundspeak (2016c). Geocaching > press > media faqs. https://www.geocaching.com/ press/faq.aspx. (Online; Last accessed on 08-03-2016). [35] Group, K. (2014). Faq - opengl.org. https://www.opengl.org/wiki/FAQ. (Online; Last accessed oon 08-03-2016). [36] Group, K. (2016a). Opengl es - the standard for embedded accelerated 3d graphics. https://www.khronos.org/opengles/. (Online; Last accessed on 08-03-2016). [37] Group, K. (2016b). Replacement for glshademodel on opengl es 2.0. https://forums.khronos.org/showthread.php/ 6949-Replacement-for-glShadeModel-on-OpenGL-ES-2-0. (Online; Last accessed on 21-09-2016). [38] Itseez (2015a). Opencv: Android development with opencv. http://docs.opencv.org/3.1. 0/d5/df8/tutorial_dev_with_OCV_on_Android.html. (Online; Last accessed on 17-09- 2016). [39] Itseez (2015b). Opencv: Cascade classifier training. http://docs.opencv.org/3.1.0/dc/ d88/tutorial_traincascade.html. (Online; Last accessed on 26-09-2016). [40] Itseez (2015c). Opencv: Operations on arrays. http://docs.opencv.org/3.1.0/d2/de8/ group__core__array.html#gab55b8d062b7f5587720ede032d34156f. (Online; Last accessed on 26-09-2016). [41] Itseez (2016). About | opencv. http://opencv.org/about.html. (Online; Last accessed on 08-03-2016). [42] Kessenich, J., Sellers, G., and Shreiner, D. (2016). OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.5 with SPIR-V. OpenGL. Pearson Education. [43] Lafortune, E. (2011). Proguard. https://stuff.mit.edu/afs/sipb/project/android/sdk/ android-sdk-linux/tools/proguard/docs/index.html. (Online; Last accessed on 21-09- 2016). 90 References [44] Lary, L. M. (2004). Hide and seek gps and geocaching in the classroom. Learning & Leading with Technology, 31(6):14–18. [45] Lienhart, R., Kuranov, E., and Pisarevsky, V. (2003). Empirical analysis of detection cascades of boosted classifiers for rapid object detection. In In DAGM 25th Pattern Recognition Symposium, pages 297–304. [46] National Coordination Office for Space-Based Positioning, N. and Timing (2013). Gps.gov: Selective availability. http://www.gps.gov/systems/gps/modernization/sa/. (Online; Last accessed on 08-03-2016). [47] Nations, U. (2016). World population prospects - population division - united nations. http://esa.un.org/unpd/wpp/. (Online; Last accessed on 29-03-2016). [48] Norman, J. N. . D. (2016). The definition of user experience (ux). https://www.nngroup. com/articles/definition-user-experience/. (Online; Last accessed on 27-08-2016). [49] Project, A. O. S. (2013). android-ndk/vecmath.cpp at 75638054e96ef7a6b2f91905d3802b8b11deb574 · googlesamples/androidndk · github. https://github.com/googlesamples/android-ndk/blob/ 75638054e96ef7a6b2f91905d3802b8b11deb574/teapots/common/ndk_helper/vecmath. cpp. (Online; Last accessed on 26-09-2016). [50] Project, A. O. S. (2016a). Analyze your build with apk analyzer | android studio. https://developer.android.com/studio/build/apk-analyzer.html. Online; Last accessed on 22-09-2016). [51] Project, A. O. S. (2016b). Android ndk | android developers. http://developer.android. com/intl/es/tools/sdk/ndk/index.html. (Online; Last accessed on 08-03-2016). [52] Project, A. O. S. (2016c). android.location | android developers. http://developer. android.com/intl/es/reference/android/location/package-summary.html. (Online; Last accessed on 29-03-2016). [53] Project, A. O. S. (2016d). android.location | android developers. https://developer. android.com/reference/android/location/package-summary.html. (Online; Last accessed on 26-09-2016). [54] Project, A. O. S. (2016e). Broadcastreceiver | android developers. https://developer. android.com/reference/android/content/BroadcastReceiver.html. (Online; Last accessed on 26-09-2016). [55] Project, A. O. S. (2016f). Cardview | android developers. https://developer.android. com/reference/android/support/v7/widget/CardView.html. (Online; Last accessed on 26-09-2016). [56] Project, A. O. S. (2016g). Clickablespan | android developers. https://developer. android.com/reference/android/text/style/ClickableSpan.html. (Online; Last accessed on 26-09-2016). References 91 [57] Project, A. O. S. (2016h). Creating and monitoring geofences | android developers. https://developer.android.com/training/location/geofencing.html. (Online; Last accessed on 28-08-2016). [58] Project, A. O. S. (2016i). Dashboards | android developers. https://developer.android. com/about/dashboards/index.html#Platform. (Online; Last accessed on 17-09-2016). [59] Project, A. O. S. (2016j). Experimental plugin user guide - android studio project site. http://tools.android.com/tech-docs/new-build-system/gradle-experimental# TOC-Ndk-Integration. (Online; Last accessed on 17-09-2016). [60] Project, A. O. S. (2016k). Fragmentstatepageradapter | android developers. https: //developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter. html. (Online; Last accessed on 26-09-2016). [61] Project, A. O. S. (2016l). Glsurfaceview | android developers. https://developer.android. com/reference/android/opengl/GLSurfaceView.html. (Online; Last accessed on 26-09- 2016). [62] Project, A. O. S. (2016m). Imageview | android developers. https://developer.android. com/reference/android/widget/ImageView.html. (Online; Last accessed on 26-09-2016). [63] Project, A. O. S. (2016n). Making your app location-aware | android developers. http://developer.android.com/intl/es/training/location/index.html. (Online; Last accessed on 29-03-2016). [64] Project, A. O. S. (2016o). Opengl es | android developers. http://developer.android. com/intl/es/guide/topics/graphics/opengl.html. (Online; Last accessed on 08-03-2016). [65] Project, A. O. S. (2016p). Requesting permissions at run time | android developers. https: //developer.android.com/training/permissions/requesting.html. (Online; Last accessed on 26-09-2016). [66] Project, A. O. S. (2016q). Scheduling repeating alarms | android developers. https: //developer.android.com/training/scheduling/alarms.html. (Online; Last accessed on 26- 09-2016). [67] Project, A. O. S. (2016r). Service start_not_sticky | android developers. https://developer. android.com/reference/android/app/Service.html#START_NOT_STICKY. (Online; Last accessed on 26-09-2016). [68] Project, A. O. S. (2016s). Shrink your code and resources | android studio. https: //developer.android.com/studio/build/shrink-code.html. (Online; Last accessed on 21-09- 2016). [69] Project, A. O. S. (2016t). Sign your app | android studio. https://developer.android. com/studio/publish/app-signing.html. (Online; Last accessed on 23-09-2016). [70] Project, A. O. S. (2016u). Support library features | android developers. https://developer. android.com/topic/libraries/support-library/features.html. (Online; Last accessed on 26- 09-2016).