A Unity programmer created a realistic simulation of cloth. The demo is running at 90 FPS on Meta Quest 2.
The Polish programmer who goes by the name of Matusson has been showing off his work on Twitter and other channels for quite some time. This weekend, he released a demo of his cloth simulator for Meta Quest 2 and PC VR headsets.
“The demo is meant to showcase the system and how it can enhance immersion in VR games,” the description reads. “It features basic collision detection with primitives, self-collision, procedural thickness, and a huge array of parameters. Performing enough to run natively on Quest 2.”
Demo allows precise manual manipulation
VR users can play with two types of cloth: the gray one simulates more standard materials, while the darker, brown one attempts to simulate leather-like materials.
A video shows this impressive technology in action. Users can grab and pull the fabric at any point. Even neat-folding is possible. “Pinching with triggers grabs a specific part of the cloth, allowing precise manipulation, while grip buttons will grab a large part surrounding your controllers,” the description says.
The simulation runs in Unity and uses the Burst compiler and Job system, two tools that optimize code and improve performance. The demo should run smoothly at 90 frames per second in most cases. The graphics are more demanding on the Quest 2 than the physics simulation, Matusson writes on Twitter.
Despite a high degree of realism, the programmer still sees room for improvement: “This is currently an initial prototype version, so issues are expected. For example, there’s only very simplified friction, so cloth objects will slide around. Bending forces aren’t stable either, you can expect some moving around.”
What are the applications?
Matusson could eventually release the source code. This way, other developers can continue and improve his work or implement it in VR games. “I hope to open-source it once I polish it a bit more. Unfortunately, I can’t say when this will happen, I’m very busy with other projects and exams.”
Realistic cloth simulation could be used for new VR game mechanics, stunning effects, or more realistic avatars. Meta is also working on cloth simulation for the photorealistic Codec avatars.
You can download Matusson’s demo from Itch.io. For installation on Meta Quest 2, Sidequest is recommended.
Buy Quest 2, Quest Pro & Prescription Lenses
You can read all about the Meta Quest 2 and Meta Quest Pro in the linked reviews.
Prescription lenses from VR Optician make your glasses obsolete. You can get them with a 5% discount using the link below.
Note: Links to online stores in articles can be so-called affiliate links. If you buy through this link, MIXED receives a commission from the provider. For you the price does not change.