![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Maxpilot |
I have a simple 3D scene, and a pluggedIn webcam. Shouldn’t CameraServer now show one CameraFeed?
Have you looked at the latest documentation for CameraFeed
? Especially this part of the description?
Note: Many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.
Ertain | 2019-12-12 16:22
Hi,
yes I saw this. I built a simple scene with only a camera, put an environment to this camera and set the background to “CameraFeed”, full energy and CameraFeed Id 1. I don’t know if I’m totaly wrong, but I think for this to work there has to be a CameraFeed yet. When testing this with
print(str(CameraServer.get_feet_count()))
that gives “0”. So no chance to set a CameraFeed to “active”. Also tried to instanciate one with “CameraFeed.new()”, but looks like this one has no connection to any physical device. Totaly lost in figuring out how this should work, but I guess there has to be a CameraFeed in CameraServer as soon as you connect a physical device.
Maxpilot | 2019-12-12 18:15