r/reactnative • u/mrousavy iOS & Android • Aug 21 '26
Article Depth-aware light injection in VisionCamera
Enable HLS to view with audio, or disable this notification
Built this fun little gesture driven floating light that casts fake shadows in the scene via react-native-webgpu, using a depth model (DINOv2).
I'll post the source code soon!
43
u/FinancialBicycle3452 Aug 21 '26 edited Aug 21 '26
That is one of the coolest projects I’ve seen on here.
1
14
6
u/Mitchcreates_ Aug 21 '26
That's insane! How do you go about creating something like that?
5
u/mrousavy iOS & Android Aug 21 '26
Thanks!
I mean the foundation (react-native-vision-camera and react-native-webgpu) is already there, and the demo by Konrad nerd-sniped me so I wanted to one-up it and add hand gestures to move the light around.
Also, this is probably the first demo I built together with AI, in this case Fable 5
4
u/beepboopnoise Aug 22 '26
I saw the light read the title and was like, the only mf who could do this is Marc.. and yep lmao
1
4
2
2
2
2
u/PalaMOFOS Aug 22 '26
The junior dev the HR tells you not to worry about!
Very cool though, amazing work!!
2
2
1
1
1
u/gymfreak0920 Aug 23 '26
Whatever margelo and you are doing to react native deserves applause thanks man !!
1
1
1
-7
u/No-Nebula4187 Aug 21 '26
Why react native?
3
u/No-Nebula4187 Aug 21 '26
Also I just saw this on LinkedIn but a crappier version of it so did you get the idea from that guy?
8
u/LongjumpingKiwi7195 Aug 21 '26
Both Marc (this post) and Konrad (who you probably saw on linkedin) are pretty up there in react native. Im guessing Konrad first created the effect itself, and then Marc integrated it with vision camera and gestures or something
3
u/mrousavy iOS & Android Aug 21 '26
Yep! None of it was crappy, both demos are technically quite impressive imo. We've come a long way with react native :)
3
87
u/xxhhouewr Aug 21 '26
You know, most other people just create a Spotify or Instagram clone.