Nesta Playbox

Overview

A digital twin of Glasgow aimed at modelling the food environment within the city and examing how interventions could change it. Created in Unity and programmed in C#. For this project I was responsible for the 3D data views, Notification system and the district system.

The Project

This project was a continuation of the prototype we developed for Nesta and InGAME. This time the project was a playbox / proof of concept project with a similar goal of modelling food enviornments within citites. Dropping the sandbox aspect of the original prototype and grounding it in reality the resulting project was a digitial twin mapping the food environment within Glasgow

The project differed in terms of the mechanics/features quite drastically from the previous prototype. Additionally the team was much larger with two artists and four programmers along with design input from both InGAME and Nesta. This meant I got to work more in depth on features I developed in the protoype as well as focus on new features linking in with systems developed designed and developed by others:

My Role

Data Recording

One of the core systems of the playbox was the data recording. There were various stats we wished to record such as calorie intake, location, weight, age etc. There were also stats, BMI, that needed to be displayed and thus calculated from the data so various helped functions were also built into the data recorder. The data produced by the playbox was required for various other systems so not only did it need to be able to record in realtime but also to be used by other systems again in realtime. A prime example of one of these systems was the time slider where as the simulation ran / when the simulation ended you could use a slider at the bottom to take a look at the food environment overtime to see how it changed. This meant that the data needed to be accessed and re-applied based on the date and physical location.

3D Data views

This included both heatmaps and the 3D bargraphs extending out of the relevant wards(Glasgow's term for subregions within the city). The 3D heatmap was especially difficult as the client didn't want the data being simulated on an individual level or to be tied specifically to houses. This just meant that data was simulated for a subregion such as "Govan". This meant having to find a way to consistently paint a heatmap by linking data to specific spots on the map within the relevant regions. The result is something I personally think could be improved and with more time I would've loved to experiment with different approaches / solutions to this problem.

Notifictions

When a major event happens within the simulation a notificaion is sent to be displayed in the UI. This is a generic system to allow any type of event or notification to be displayed be it a BMI change in a sepcific regions or a policy being enacted. Only 3 notifications can be displayed at a time so if a new notification is sent the oldest one is automatically removed. They can also be dismissed manually by the user in any order and they are animated to move up, slide in and slide out for the relevant actions.

Districts and Data Panels

I created a tool to paint 2D polygons over the map so we could draw the region boundries that we were simulating within Glagsow. They fade in and out depending on the players zoom level and can be clicked on to pop open a data view window of the displaying current relevant statistics for that region. This was one of my favourite features to create as I hadn't got a lot of opportunity to create tools within Unity or work with visual effects.