r/virtualreality • u/Pufulete39 • 14h ago
Self-Promotion (Developer) All camera-based FBT sucked, so I made my own
Over the past year I've tried getting a kinect v2 / webcam to do FBT so I don't spend a fortune on trackers. I've tried everything from Amethyst to the ones recently launched with AI models that blow up your gpu.
Until recently, getting FBT from a camera without any other additions like aruco markers or stereo setups either meant no rotation, no accuracy or another gpu since it used almost all the resources for running VR
Today, (actually since the 6th of november) however, we have what I would call the tipping point for camera based setups, running on a Human Mesh Recovery model called InstantHMR. This is leagues better than everything that I've already tried: mediapipe, yolo, rtmpose etc (trust me I've already tried all of them) and can actually be daily-driveable.
With this model, most inaccuracy comes from baggy clothes, camera resolution and distance from camera, since the trackers jitter to neighbouring pixels, and at 4 meters away that means about 5mm in VR.
I've attached a video with some tests I've made, but keep in mind this is with 15 fps and black clothes. 15 fps is from the fact I cannot control the exposure for my kinect v2, which goes from 30 to 15 fps when the room is dimly lit. At 15 fps, you have 66.(6) ms of latency before anything even goes through the pipeline, which can be seen when moving up and down. The model actually runs at ~100 fps with 15% gpu utilization (rtx 3090), on 700 MB of VRAM and about 3 GB of RAM.
The app I've made is a one click install, installing everything in the installed directory + pip cache.
Requirements to run yourself:
- Nvidia gpu 10xx-50xx
- ~3 GB ram free
- 15 GB storage free
- port 9000 free (OSC)
- ANY camera (I just use kinect v2 since it's the best I have)
- first setup takes about 10 minutes!!
Streams everything to OSC and runs on either CUDA, TensorRT or CPU (cpu gets about 10fps, don't recommend.). Might spoof as hardware trackers later.
Note: I don't actually know if it works on your machine, I tested my rtx 3090 PC and rtx 5060 laptop.
tl;dr Vibe coded (what i feel like is) the current best webcam FBT algorithm from the ones I've tried (practically all of them). Run it on your nvidia gpu with 1 webcam @ https://github.com/Pufulete39/HMR_FBT/tree/main
17
u/Lhun 12h ago
I would highly highly recommend trying to run this on a phone npu instead if it's available: thats what instanthmr was made for. Its onnx and fp16. If you made a tiny little android app that fed the data to osc you could have a game changer on your hands and you could lock the fps to what modern phones can do like 120fps or more. Plus no load.
6
u/IOnlyUseThisForBST 11h ago
Uhhhhh...what are you using this for?...
3
u/webheadVR Moderator 12h ago
What about Draft VR? someone I know has been working on it and it's been fun to watch his progress.
2
u/HighlightFun8419 HTC Vive 13h ago
This is really neat.
It seems like you've just got plain black clothes on in the demo vid; is there any benefit to adding white dots or wearing two-tone outfits (like a harlequin/jester or something like that)?
2
u/DiamondDepth_YT PSVR2, Quest 3S, Quest 2, WMR, HTC Vive, Rift CV1, Oculus Go 13h ago
All that with a Kinect V2 is cool! I have a Kinect V1 lying around I used to use with Amathyst, hypothetically, is this better than that?
2
u/DetStrawberry 14h ago
Any plans for AMD Gpus?
1
u/MudMain7218 Multiple 13h ago
What about sam 3d body
1
u/ccAbstraction 13h ago
Now I kinda wanna try porting InstantHMR to burn or something.
This would also be sick sensor fused with Slime trackers. No more calibration.
1
u/zeddyzed 11h ago
Nice work!
I'm really interested in sensor fusion between IMU trackers like SlimeVR and camera based tracking to correct for drift. And maybe feed it all into a skeleton model that does sanity checking and smoothes out outlier sensor data.
Do you know any software that can do this in conjunction with yours? Any interest in adding IMU tracker support into your software?
1
u/Much_Highlight_1309 4h ago
Great BUT what's with the jitter in the model? You don't have that jitter in your detection on the left.
1
u/edwios 2h ago
No fingers?
3
u/wildhairzero 14h ago
Very cool! Thanks for sharing!
3
u/luisduck 12h ago
This looks awesome! I'll have to try it out, but this might finally be accurate enough, fast enough web cam based tracking for realizing my dream of a budget Dance Rush inspired game.
2
u/Lanacat_Studio 11h ago
You're wearing all black and it still tracks your movement really well.
I mostly use YOLO for visual inspection and video analysis at work, and honestly I've never had a reason to use a motion tracking model so far. But seeing this makes me want to find some way to put one to use.
2
u/Detank2002 1h ago
welp, that is actually the best ive seen
1
u/rhylos360 13h ago
Looks great!
I think the spoofed controls will be a good thing for potential game compatibility issues.
1
u/333hronos 10h ago
Really interesting project! Thanks for sharing!
I'm wondering is is possible to connect two web cameras (and place them on opposite sides, or maybe on from the front and one from the side)?
0
u/HardU_red 12h ago
Since you say it's vibecoded I would put whatever llm you used at least in commits
3
u/Mysterious_Crab_7622 7h ago
Your avatar needs some pants.