Desert Island VR

Desert Island VR

A VR experience investigating whether virtual reality can help people manage chronic pain.

  • VR
  • Health
  • Research
  • Relaxation

My role

  • Solo project: designed and built entirely by me
  • Stretching and movement activities designed for chronic pain
  • Wind and bubble shaders built in Shader Graph
  • Activity tracking saved between sessions as JSON

Final-year dissertation project at the University of Greenwich · graded a First

On this page

Overview Stretching and Activities Why a Desert Island? Wind in the Trees Bubble Shader Activity Tracking Gameplay Video

Overview

Unity VR

This project was an investigation into whether virtual reality (VR) could be used as a tool to manage chronic pain.

Stretching and Activities

Stretching and movement play a crucial role in helping individuals manage their chronic pain. My aim was to develop a stretching exercise that would be accessible to all users. Initially, the concept involved balloons that would spawn around the user, requiring them to reach out and pop the balloons. However, this approach might have been too challenging for some patients who may not be able to reach certain positions, and it did not provide a way to track their stretching progress.

To address these challenges, I designed stretching columns that encourage users to raise their arms and visually measure how far they can reach within small blocks. Users earn points based on their reach, promoting gradual improvement. These columns use box colliders to detect how high the user's hand rises through the tube, effectively tracking their progress.

Stretching columns that measure how high the user can reach

Why Is It on a Desert Island?

Everyone has a unique place where they find relaxation, but it's scientifically proven that natural environments can reduce cortisol production and lower stress. For these reasons, I decided to create a natural landscape as the environment for the game, with a low poly aesthetic to maintain a gap between the virtual and the real world. To ensure the user's experience is as relaxing as possible, I incorporated natural sounds like wind and waves to fully immerse them in the environment. Building on this concept, I envisioned different locations for users to explore, allowing them to tour the island in a clockwise route, starting from their initial point.

Each location on this tropical island features a unique mini-game, progressing from simple stretching tasks to more complex puzzles and quizzes.

To develop the island, I used Unity Terrain to create the islands, adding a water shader for realistic water effects. I customised colours for sand and grass, and used the grass tool to add depth and richness to the landscape.

Overview of the low poly desert island level design

Creating Wind in the Trees with Shader Graph

To make the environment more dynamic and immersive, I aimed to incorporate more movement and animation. This approach helps create a more engaging and lifelike experience for users.

To create this effect with Shader Graph, I combined time with position into a gradient noise to move the leaves over time. I then combined these back into the transform with the colours to create a simple rippling effect of the leaves. I left a few exposed variables to make these leaves configurable, such as the Wind Density, which I added to the scale of the Gradient Noise to increase the size of the ripple.

Shader Graph node network for the leaf wind effect
The Shader Graph for the wind effect in the palm trees.

Creating a Bubble Shader with Shader Graph

The bubble shader was a lot more complex, but it basically contained a position node that was altered with tiling and offset, and a gradient noise, blended with a reflection probe and a fresnel effect. Another reflection probe was added to the scene to amplify the reflection as well.

Shader Graph node network for the bubble effect
The Shader Graph created for the bubble effect.

Activity Tracking and JSONs

One session saved as JSON: run number, date, time, pain before and after, and reps and rating for each activity
One session, saved as JSON.

Seeing progress and understanding that your efforts are making a difference are crucial components of any rehabilitation process, especially when it comes to chronic pain. It provides motivation and reinforces the belief that the chosen path of treatment is effective.

After each session, I saved user details and experience points into a JSON file and stored it on disk. This allowed users to load their activity data and review their progress over time, providing valuable feedback and motivation. To further encourage engagement, I implemented gamification elements such as levelling up. These devices gave patients more incentive to continue playing, as they could see their progress and achievements, making the rehabilitation process both effective and enjoyable.

Activity history table listing each run's date, time, pain before and after, and results for each activity
The activity history users see in-game, built from those saved sessions.

Gameplay Video

You can view a full demo of the playthrough below. The gameplay shows:

  • The main menu
  • The stretching activity where users can stretch their arms
  • The neck stretching game where users look around
  • The puzzle game where users place blocks into a puzzle board
  • The quiz game where users throw a ball into a box to answer questions
  • The user's profile and activity tracking