Real-Time Physics Simulation Method for XR Application
Real-time physics simulations are vital for creating immersive and interactive experiences in extended reality (XR) applications. Balancing computational efficiency and simulation accuracy is challenging, especially in environments with multiple deformable objects that require complex interactions....
Saved in:
Main Authors: | , , , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2025-01-01
|
Series: | Computers |
Subjects: | |
Online Access: | https://www.mdpi.com/2073-431X/14/1/17 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | Real-time physics simulations are vital for creating immersive and interactive experiences in extended reality (XR) applications. Balancing computational efficiency and simulation accuracy is challenging, especially in environments with multiple deformable objects that require complex interactions. In this study, we introduce a GPU-based parallel processing framework combined with a position-based dynamics (PBD) solver to tackle these challenges. The system is deployed within the Unity engine and enhances real-time performance through the use of sophisticated collision detection and response algorithms. Our method employs an AABB-based bounding volume hierarchy (BVH) structure to efficiently detect collisions, and incorporates the Möller–Trumbore algorithm for precise triangle-level interactions. We also boost computational efficiency by storing collision data in GPU-accessible 2D textures. Experimental assessments show performance improvements of up to 1705% in GPU simulations over CPU counterparts, achieving stable real-time frame rates for complex models such as the Stanford Bunny and Armadillo. Furthermore, utilizing 2D texture storage improves the FPS by up to 117%, confirming its efficacy for XR applications. This study offers a robust, scalable framework for real-time physics simulations, facilitating more natural and immersive XR experiences. |
---|---|
ISSN: | 2073-431X |