keijiro / NNCam

Virtual background with Unity Barracuda
Apache License 2.0
249 stars 35 forks source link

Using Video instead of 2DTexture #23

Closed justinLifelike closed 1 year ago

justinLifelike commented 1 year ago

Dear Keijiro,

Thank you for sharing this <3 I want to switch the standard image background with a video but I can't seem to find the right way. I am not the best programmer out there.

But I think I have to switch 2DTexture with the RawImage which has a render texture of a video.

image

Could you help me out here please. Thanks in advance!

keijiro commented 1 year ago

I'd recommend using the BodyPixSample project as a starting point rather than NNCam.

https://github.com/keijiro/BodyPixSample

It uses ShaderGraph, so you can easily modify the features.

keijiro commented 1 year ago

I close this issue as answered. Please reopen it for further problems.