Spirotrac visualization module: 3D incentive scenes inside spirometry software.

A set of real-time 3D scenes that show patients their progress during a spirometry test: the harder and longer they exhale, the further the scene moves. Built in Unity and integrated into the Spirotrac .NET diagnostic software over UDP with two-way data transfer.

Team
2 designers, 2 developers and a project manager
3D render of the ball in a glass tube with the words Spirotrac Visualization Module

Results

3
incentive scenes: candles, ball in a tube, straw house
343 h
of design and development time

The challenge

During a spirometry test the patient has to exhale as hard and as long as they can. The software needed a way to show progress that keeps the patient going.

The scenes had to run inside an existing Windows .NET application, on low- and medium-performance computers.

What we built

  • Three scenes: blowing out candles, blowing a ball up a tube, and blowing down a straw house, each moving with the intensity and volume of the exhaled air
  • Real-time rendering with post-processing, optimised for low- and medium-performance systems
  • Integration into the .NET application (Windows, standalone), with the module controlled in the background
  • A dynamic two-way data transfer protocol over UDP
  • Any window size and aspect ratio
  • A separate test harness to drive the scenes with simulated data

The project at a glance

Host software
Spirotrac 6, a Windows .NET application
Scenes
Candles, ball in a tube, straw house
Data link
Two-way UDP protocol
Hardware
Low- and medium-performance PCs
Engine
Unity and C#
Time
343 hours

How it works

The blowing-out-candles incentive scene
1

Blowing out candles

An arc of lit candles goes out as the patient exhales. How far the scene gets depends on the intensity and volume of the exhaled air.

The ball-in-tube incentive scene that rises with the patient's exhaled flow
2

A ball in a tube

A ball rises up a glass tube with the patient's breath. The animations are semi-dynamic and follow the input parameters, so progress shows smoothly.

The straw-house incentive scene with the wolf and the pig
3

Blowing down a straw house

A cartoon wolf blows at a straw house with a pig in the window. The graphics render in real time with post-processing and run on low- and medium-performance computers.

The straw-house incentive scene running inside the Spirotrac spirometry software during a test
4

Running inside Spirotrac

The module is built into the Spirotrac .NET application on Windows and controlled in the background. Data moves both ways over a dynamic UDP protocol, and the window takes any size and aspect ratio.

The Windows test harness that drives the scenes with simulated breath data
5

A separate test harness

A standalone tool loads each scene and plays its states with simulated real-time data. It let the team test the module apart from the diagnostic software.

Inside the Spirotrac visualization module

Technology

  • Unity
  • C#
  • 3D
  • .NET integration
  • UDP