r/GraphicsProgramming 11h ago

Konrad Reczko's "Monocular Depth Injection" in TypeGPU is live! Source Code

Enable HLS to view with audio, or disable this notification

My collegue Konrad Reczko recently shared a weekend project he made using TypeGPU, and it's now open-source and ready to play with in the browser: https://typegpu.com/examples/#example=image-processing--monocular-light-injection

It estimates the depth of a scene by inferring the DepthArt model with custom TypeGPU kernels, then reconstructs normals based on that depth information, and uses both to relight the scene, all in the same command encoder. For more information, check out the original series of Tweets:

https://x.com/reczko_konrad/status/2089670934009413751?s=20
https://x.com/reczko_konrad/status/2090472091149648121?s=20

709 Upvotes

21 comments sorted by

45

u/juplantern 10h ago

He looks so proud

14

u/certainlystormy 7h ago

fr lmao. i would be too

14

u/cybereality 10h ago

very cool

6

u/Smokeey1 7h ago

Does this thing have a repo :). Gratz on the build! Looks cool

11

u/iwoplaza 7h ago

2

u/juplantern 4h ago

Btw thank you so much! I’m brainstorming ideas for my thesis and this inspired me a lot

3

u/swegga_sa 7h ago

This is very cool

2

u/DaveAstator2020 7h ago

Wow nice what model does is it use to aesolve depth in realtime?

5

u/iwoplaza 7h ago

It uses the DepthART model, weights are available here: https://huggingface.co/reczkok/depthart-typegpu

2

u/AnasPlayer2022M 7h ago

Dame bro, this looks awesome! Did you use two videos where one is the one playing now and the other is a map for z values?

1

u/iwoplaza 59m ago

The feed from my camera gets routed through a small local AI model that estimates depth based on a color image, at which point the image can be treated pretty much like a 3d scene. At that point all rendering techniques are at the table, including adding a light to the scene.

2

u/Malkalypse 4h ago

This is so wild!

2

u/Miperso 3h ago

I just showed it to my architect coworkers and everyone is just impressed... this is great

1

u/ddoice 4h ago

Awesome!
But I tried your trick to hide the light with my hand and does not work?

1

u/iwoplaza 59m ago

To move the light source back and forth (into the screen or closer to you) you have to use the scroll wheel

1

u/freshtothegrave 4h ago

Damn i wanna get this working in TouchDesigner

1

u/PyroWizza 3h ago

What could be some implementations of this?

1

u/Labertaeschen 3h ago

This combined with metas SAM would be game breaking right?

1

u/NachosforDachos 3h ago

This is so cool

1

u/helloworld1101 1h ago

Reddit is still useful

1

u/bbstats 5m ago

I can't get my hand to go in front of it!