Hello,
I'm going to use the vrVideoGrab API to grab the webcam stream and use the live video as a texture. There is an example file named "videograb.py" in VRED. However, it seems that this example (API) has some problem for me.
Here is the scripts:
screen = findNode("Geometry")
material = findMaterial("videograb")
# vg = vrVideoGrab(screen, "0")
vg = vrVideoGrab(screen, "Logitech BRIO")
vg.setActive(true)
keyS = vrKey(Key_S)
keyS.connect(vg, SWITCH_TOGGLE)
vrLogInfo("Press key s to toggle videograbbing")
Here is the error:
Found device 0 'Logitech BRIO'
vrFrameGrabber::init : Couldn't get capture output pin!
Is there any solution for this problem?
Or is there any way to set the webcam stream as a texture?
Best regards,
Biubiu