Between the Sand - Phase 3 - Online Exhibition
December 05, 2020
The third and final phase of Between the Sand is an interactive web application that premiered in Art the Science's Polyfield Gallery on December 5th, 2020 to coincide with World Soil Day. To create this, the web application from Phase 2 was expanded and optimized. An Explore tab was added where one can change the flow direction, toggle the contamination or update the display. A lava mode automatically changes the settings over time for passive viewing.
There are 4489 sand grains and 62,500 cells in this work, and drawing them is resource intensive. To help with drawing, several canvas layers are used to display grains, cells, and contamination individually. A webGL layer runs a shader program in one of the layers to preserve each contamination after they have finished expanding.
A sprite sheet is used to speed up the drawing process. Using the sprite sheet, the program draws eight grains of sand, each rotated ten times, for a total of 80 grains. These are distributed across the field of view, allowing for the grains to be drawn on demand without slowing down the application.
Each grain is coloured before being drawn to the sprite sheet and placed on a background gradient of similar colour. Two of the colours are blue and purple, to simulate the effect of an experiment with dye, as seen in Phase 1 of the residency.
The grains are distributed across the field of view to create an organic looking section of sand. The spaces between the sand form branching paths as they wind their way through the grid, which the invasion percolation algorithm uses to determine flow.
In order to determine how likely a cell is of being contaminated, the closest sand grain to each cell had to be found − if a cell is within the boundary of a sand grain, it will not be as invadable. The linear approach is to find the minimum distance between every sand grain for each cell. However this work would require over 280 million distance calculations if calculated linearly, significantly slowing down or even crashing the browser when it is time to load the grid.
This process is sped up even more by loading the positions and r-values into a file that is read when the application is loaded. The tradeoff is the grid is static. A future version of Between the Sand could allow some file options such as exporting or calculating a new grid as needed.
If you lay a sand column flat, the contamination percolates in all directions along the plane of the column. The experiments showed how a gas behaves when it is injected into sand filled with water. This can be simulated by positioning the flow direction upward. Cells at the bottom will now be less invadable, and cells near the top will be darker and more likely to be invaded.
The flow field is determined by multiplying each cell by a factor depending on the position of the cell, and multiplying the new factor by the r-value of the cell.
Pressure and Diffusion
The experiments I observed ranged from slow injections that lasted several minutes to high pressure injections that lasted only a second or two after they were initiated. The high pressure injections were impressive, and showed a network of interconnected pathways for a short while before being occluded.
Gas can also spread at different rates, depending on its viscosity. For example, sand could be filled with oil instead of water, or injected with creosote instead of gas. In this simulation, adjusting the diffusion and pressure can mimic different media and material.
An online survey was embedded into the web application to invite participants to take part in an upcoming research paper. Findings are currently being compiled by Art the Science and a research paper about all three phases of the residency will be out soon.
Between the Sand
Phase 1 - In the Lab
Phase 2 - Local Event
Phase 3 - Online Exhibition (this page)