VR Multiplayer Wildlife Biking
May, 2021
This VR exergame integrates online multiplayer stationary biking and wildlife exploration, using real-time sensor data for movement. Features include animal AI, collaborative and competitive modes, gaze-based interaction, and accessible design tailored for rehabilitative use.
Introduction
- Overview: VR exergame built with Unity 2020 for the Oculus Rift S, designed to encourage physical activity through social biking in a serene virtual nature environment. Players navigate using real-world cadence sensors attached to exercise bikes, competing or collaborating in wildlife-spotting challenges while biking. The project integrates multiplayer synchronization, realistic animal behaviors, and a user-friendly design to accommodate elderly users in rehabilitative settings.
- Motivation: Created as part of my master’s thesis, the game aimed to investigate how competitive and collaborative mechanics affect physical exertion, motivation, and user experience. The project was inspired by a need for engaging, low-barrier VR applications for less tech-savvy users, particularly in the rehabilitative domain.
Key Features
- Online Multiplayer: Real-time connectivity for players to compete or collaborate in different gameplay modes.
- Multiplayer Modes: Includes solo, competitive, and collaborative modes:
- Solo: Player explores the environment, spotting animals for points.
- Competitive: Players compete to spot the most animals individually.
- Collaborative: Players share a tandem bike, combining their speeds and scores for a unified goal.
- Real-Time Animal AI: Six animal species (bear, deer, wolf, fox, raccoon, and rat) navigate the environment autonomously.
- Gaze-Based Interaction: Players use gaze to spot animals. A dynamic reticle and progress indicator ensure intuitive interaction while avoiding discomfort typical of VR systems.
- Voice Chat Integration: Built-in voice chat encourages collaboration and communication between remote players.
- Dual UI System: A minimalist in-game interface caters to elderly users, while an external screen-space UI allows nursing home staff to manage technical settings and game setup.
- Optimized VR Terrain: Realistic mountain environments with volumetric lighting, fog effects, and carefully tuned vegetation densities ensure high performance.
- Data Collection System: Automatically logs gameplay data, such as points, session duration, and cadence, for research purposes, saved in CSV format.
- PC Support: The game can be played on a regular PC screen instead of VR, if preferred.
Key Challenges & Solutions
1. Multiplayer Synchronization
- Challenge: Ensuring consistent state synchronization across connected game instances for animations, animal behavior, and gameplay logic.
- Solution: Used the Normcore framework for real-time state management. Implemented an observer pattern to synchronize animal animations and gameplay events across instances, ensuring consistent experiences across all players.
2. Dynamic VR Reticle for Comfort
- Challenge: A static screen-space reticle in VR caused discomfort because virtual elements close to the eyes are unpleasant in VR, while a fixed world-space reticle clipped into objects.
- Solution: Implemented a dynamic 3D reticle system using raycasts from the camera forward to the nearest mesh. The reticle is positioned slightly in front of the mesh and scaled linearly by its distance from the camera, maintaining a stable and comfortable VR experience.
3. Animal AI and Pathfinding
- Challenge: Creating lifelike, responsive animals required efficient state management and scalable pathfinding for large terrains.
- Solution: Leveraged Unity’s NavMesh for efficient pathfinding and implemented a custom finite state machine for managing animal behaviors. States included decision-making mechanisms for realistic and responsive actions.
4. Tandem Bike Mechanics
- Challenge: Combining player inputs for collaborative gameplay required synchronized speed calculation and movement.
- Solution: Implemented a shared speed system that aggregates player cadence inputs. Used spline-driven movement to ensure smooth transitions and coordination, with each player’s effort dynamically contributing to the overall biking speed.
5. Optimized Terrain for VR
- Challenge: Maintaining high-quality environments in VR without compromising performance.
- Solution: Implemented LODs for terrain and assets, used billboarded grass, and reduced vegetation density in non-critical areas. Optimized Aura 2 volumetric lighting and post-processing settings specifically for VR to balance performance and visual fidelity.
6. Accessible UI for Elderly Users
- Challenge: Balancing simplicity for elderly players unfamiliar with VR and advanced configuration tools for staff.
- Solution: Developed a dual UI system – an in-game world-space UI displays essential gameplay information, while a PC-based screen-space UI manages advanced setup and network configurations.
7. Real-Time Cadence Integration
- Challenge: Synchronizing real-world cycling with virtual movement required precise data interpretation.
- Solution: Integrated ANT+ cadence sensors using a C# library to process real-time sensor data. Mapped cadence values to in-game speeds, driving a spline-based navigation system for accurate virtual movement.
Future Development
- Expanded Wildlife Behavior: Adding more animal species with more unique AI behaviors to enrich the environment, and making them responsive to player presence.
- Platform Expansion: Extending support to other VR headsets and potential non-VR versions for broader accessibility.
- Advanced Analytics: Integrating deeper data analytics to measure player performance and engagement.
Impact
While the game was designed with elderly nursing home residents in mind, real-world testing with the target audience was not possible due to COVID-19 restrictions in 2021. Despite this limitation, the project achieved its academic objectives and received the highest grade, validating its design, technical execution, and potential impact. The prototype demonstrates how virtual reality and gamification can be applied to rehabilitation, offering a foundation for future iterations and real-world testing. It highlights the value of combining physical activity, social interaction, and engaging virtual environments to create meaningful experiences for users with diverse needs.
Key Takeaways
Social Wildlife Watching exemplifies the synergy between game design, technology, and research. Developing AI-driven wildlife, intuitive multiplayer mechanics, and user-friendly VR interactions taught me to balance complexity with accessibility. The project emphasized the importance of robust networking, immersive design, and thoughtful optimization in creating meaningful VR experiences for diverse audiences.