UCloth VR Demo
A downloadable game for Windows and Android
This is a VR demo of a custom Unity cloth simulator utilizing Burst and Jobs system. It features basic collision detection with primitives, self-collision, procedural thickness, and a huge array of parameters. Performant enough to run natively on Quest 2.
The demo is meant to showcase the system and how it can enhance immersion in VR games. You 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. Try to fold them!
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.
Controls:
Left thumbstick | Locomotion |
Right thumbstick | Rotation |
Trigger buttons | Pinch the cloth |
Grip buttons | Grab the cloth |
X | Speed up simulation |
Y | Slow down simulation |
Right thumbstick click | Switch showcase |
Pinching with triggers grabs a specific part of the cloth, allowing precise manipulation, while grip buttons will grab a large part surrounding your controllers. Switching showcases can take a moment. Only tested with Quest 2 controllers, but any should work.
The APK version has been built for Quest 2. I cannot guarantee it working with any other standalone headsets, as I don't have them and can't test them. The PC version should work with any SteamVR-compatible headset. It should run well on any VR-capable PC.
You can now use the simulation tools in Unity as well: Matusson/UCloth: Burst-based Unity cloth simulation (github.com)
If you have any feedback, please leave it below, or message me on Twitter!
Status | Prototype |
Platforms | Windows, Android |
Rating | Rated 5.0 out of 5 stars (3 total ratings) |
Author | Matusson |
Genre | Simulation |
Made with | Unity |
Tags | 3D, cloth, demo, Physics, technology, Unity, Virtual Reality (VR) |
Average session | A few minutes |
Install instructions
- For PC: Extract the ZIP archive and run the EXE file.
- For Quest: Sideload the APK. There are multiple ways to do it, but the simplest is to use SideQuest.
Comments
Log in with itch.io to leave a comment.
Hi! May I ask what exactly about this cloth isn't production ready?
It has not been tested in various different environments, or with different use cases or cloth types. Stuff like collision is often unpredictable. There's a file on the GitHub that lists known issues as well.
If you have some basic idea about physics simulation, or you're willing to learn, I'm sure you could adapt it to fix the issues you come across, but I cannot offer a complete package and guarantee it will work for a general case.
Understood, I'm going to give it a shot, thanks!
This looks amazing! Will try it on the quest. Is it possible to access the Unity Project? Is this open source?
Not currently, but that is the intention. I need to fix a few problems and write proper documentation. I'm quite busy so I can't be sure when it will be done.
That is good to know that you would like to provide it as open source :) Would be looking forward to it.
I just released an initial version on Github: Matusson/UCloth: Burst-based Unity cloth simulation (github.com)
Also the final version, as I won't develop it further. If you're interested, maybe it could be useful as a learning resource?
Hi Matusson, just today i saw this update.
Can we talk by email to see if this fit in my project?
Regards
Laundry Folding Simulator here we come!
This looks very impressive and oddly satisfying, super cool stuff.
Amazing jobs, hope to see it in dress design simulator VR or in puzzle VR games.
I made an article and a video in French to present this demo to my community.
https://youtu.be/Ie1b6Xyqz-I
Thank you for giving it a try! There's many improvements that will have to be made before it can be used for full simulation of clothing.
I presented also in a post in french https://stylistme.com/vr-ar-jeu-tuto/ucloth-vr
Incredible! I'm working on a VR space for the showroom in our company with oculus quest pro and I was precisely looking for some information about materials and experiences with fabrics.
I would like to know if we could talk a little by email in the sense of knowing if I can incorporate this code in my project in unity to try fabrics in our virtual showroom? We work in fabrics for home textiles...
Congratulations, it's fantastic...
Best regards,
Thank you! I am hoping to release the code within a few months, and then you'll be able to use it freely, if it meets your expectations. If you have any questions that you'd rather ask in private, you can reach me at matusson.6105@gmail.com
Awsome! Thank you ;)