| Literature DB >> 34141881 |
Julie Vercelloni1,2, Jon Peppinck1,2, Edgar Santos-Fernandez1,2, Miles McBain1, Grace Heron1, Tanya Dodgen1, Erin E Peterson1,2, Kerrie Mengersen1,2.
Abstract
Virtual reality (VR) technology is an emerging tool that is supporting the connection between conservation research and public engagement with environmental issues. The use of VR in ecology consists of interviewing diverse groups of people while they are immersed within a virtual ecosystem to produce better information than more traditional surveys. However, at present, the relatively high level of expertise in specific programming languages and disjoint pathways required to run VR experiments hinder their wider application in ecology and other sciences. We present R2VR, a package for implementing and performing VR experiments in R with the aim of easing the learning curve for applied scientists including ecologists. The package provides functions for rendering VR scenes on web browsers with A-Frame that can be viewed by multiple users on smartphones, laptops, and VR headsets. It also provides instructions on how to retrieve answers from an online database in R. Three published ecological case studies are used to illustrate the R2VR workflow, and show how to run a VR experiments and collect the resulting datasets. By tapping into the popularity of R among ecologists, the R2VR package creates new opportunities to address the complex challenges associated with conservation, improve scientific knowledge, and promote new ways to share better understanding of environmental issues. The package could also be used in other fields outside of ecology. ©2021 Vercelloni et al.Entities:
Keywords: Data collection; Elicitation; Emerging technology; Environmental conservation; Remote ecosystems; Software; WebXR
Year: 2021 PMID: 34141881 PMCID: PMC8176535 DOI: 10.7717/peerj-cs.544
Source DB: PubMed Journal: PeerJ Comput Sci ISSN: 2376-5992
Figure 1Workflow of the R2VR package.
A function package is used to start a Fiery server from the R console and render WebXR Device API scenes via harnessing Mozilla’s A-Frame framework. This allows for the scene to be composed through the R interface and served into HTML and JavaScript which displays the VR scene in a WebXR environment (web browser and/or VR headset). There is a WebSocket connection between the Fiery server and the client which allows for R console commands to directly communicate with the user (e.g., display a question with the pop() function) in the VR environment. The recorded data is stored in an online MySQL database through a RESTful MVC NodeJS Application Programming Interface (APIRest). The Node API endpoints are made accessible for data fetching into R so all user responses can be analysed. There is an interoperable flow of data between R and VR through the implementation of the WebSocket and an API connections.
Description of the main functions included in the package.
See the help files for more details about the function arguments.
| Function | Description |
|---|---|
|
| starts the VR server on the web browser |
|
| kills the VR server |
|
| displays the question on the image |
|
| jumps to another image |
|
| retrieves the data from the database |
Comparisons R2VR (A-Frame embedded R) and Unity.
| R2VR | Unity | ||
|---|---|---|---|
| User | Pros | Accessibility, Run on the web, Compatible with most VR headsets | Mature, Ongoing development by large firm and massive community, Compatible with most VR headsets |
| Cons | Not as mature or as commercially refined | App access, compatibility, and maintenance | |
| Developer | Pros | Open-access sources, Relatively easy to implement, Accessible to the vast pool of web developers, Popular programming language | Flexible, Customizable, Extensive documentation and community, Easily integrated with other software, Mature tool support and high-quality, Integrated Developer Environment Tools, Asset Store resources are large and complete |
| Cons | Background in web programming, Not as flexible | Very specific programming language(s), Complex environment, Need licence for research projects | |
| Quantitative ecologist | Pros | Generic, Multipurpose, Use a unique programming language, Collect data in flexible format | Can produce refined user experiences for non-domain specialists |
| Cons | Access to internet mandatory, Potential issues with free hosting provider | Specific purpose, Use of more than one platforms to perform experiments, Manipulate more than one programming language | |
Figure 2Case studies developed using the R2VR package with (A) Koala, (B) Jaguar and (C) Coral reef studies.
The screenshots show the questions that were asked as part of the framework testing. Coral reef images were provided by Underwater Earth / XL Catlin Seaview Survey / Christophe Bailhache. Short videos of the virtual reality scenes can be seen at: https://youtu.be/el08HKysZX8.
Description of the data obtained from the elicitation stored online in table koala.
| Variable | Description |
|---|---|
| classification id | |
| unique identifier of the image | |
| image’s file name | |
| 0 (absence) or 1 (presence) | |
| date-time of the classification event |