we have drawn shapes, we have drawn images. but what about drawing input from your webcam?
we start by creating a new project & importing 'Video' & something new 'VideoCapture'.
we then init the VideoCapture & setup two functions to help it.
lastly, render the video on screen.
source code:
https://github.com/lewislepton/kha-tutorial-series
SUPPORT ON PATREON FROM AS LITTLE AS $1:
https://patreon.com/lewislepton
intro & outro music is from this EP:
https://lewislepton.bandcamp.com/album/coat-noise-ep
like, share & subscribe to stay up to date.
https://lewislepton.com
https://patreon.com/lewislepton
https://twitter.com/lewislepton
https://facebook.com/lewislepton
https://lewislepton.bandcamp.com
https://soundcloud.com/lewislepton
https://github.com/lewislepton
* with a question asked if this would work on mobile.
ive checked & searched in the source code. capture is currently not in the backends of kha for mobile. even with native as well.
with HTML5 its fine.
so hopefully either these will be put in soon, or we can help & work on some native & mobile stuff for capture. it would be awesome. ;)
for anything such as kinect or other third party cameras, you would need things such as the SDK of the camera. if you were wondering *