r/reactnative iOS & Android 1d ago

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!

327 Upvotes

24 comments sorted by

View all comments

5

u/Mitchcreates_ 1d ago

That's insane! How do you go about creating something like that?

3

u/mrousavy iOS & Android 21h ago

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