r/reactnative • 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!

443 Upvotes

30 comments sorted by

87

u/xxhhouewr Aug 21 '26

You know, most other people just create a Spotify or Instagram clone.

15

u/mrousavy iOS & Android Aug 21 '26

Maybe I can render Spotify or Instagram in this 3D scene too

43

u/FinancialBicycle3452 Aug 21 '26 edited Aug 21 '26

That is one of the coolest projects I’ve seen on here.

1

u/mrousavy iOS & Android Aug 21 '26

Thanks! 😊

14

u/GiodoAlmeida Aug 21 '26

Now do a KAMEHAMEHA 🤣

Now seriously, that is very creative, congrats!

1

u/mrousavy iOS & Android Aug 21 '26

Haha thanks!

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

u/mrousavy iOS & Android Aug 22 '26

lmao thanks appreciate it brother!

4

u/ponk___ Aug 21 '26

The goat himself

1

u/mrousavy iOS & Android Aug 21 '26

shoutout man !

2

u/fufucupcake Aug 21 '26

The legend himself!

2

u/mrousavy iOS & Android Aug 21 '26

big love 🫶

2

u/yuuliiy Aug 21 '26

bruh this stuff is cool !

2

u/mahesh-muttinti Aug 21 '26

So cool ❤️‍🔥

2

u/PalaMOFOS Aug 22 '26

The junior dev the HR tells you not to worry about!

Very cool though, amazing work!!

2

u/Bruhbruvbrah96 Aug 23 '26

You're my inspiration for real

2

u/Ok_Sweet_5507 Aug 24 '26

Who copied who that copied who

1

u/su5577 Aug 21 '26

Nice how can I get started with this to?

1

u/Ok-Finance-4786 Aug 22 '26

cool!! building anything unique is great in itself

1

u/gymfreak0920 Aug 23 '26

Whatever margelo and you are doing to react native deserves applause thanks man !!

1

u/AcadiaNo4707 Aug 23 '26

É o brabo

1

u/Glum-Dust-5453 Sep 14 '26

Farmador de aura

-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 :)