This project is a simple demonstration of how a python application can communicate with a Godot game using UDP. This communication channel can for example be used to send encoded image frames from a webcam.
- Open the Godot project in the
godot/
directory and run the game scenegreeting/greeting.tscn
. - Run the
greeting.py
script inpython/
.
- Open the Godot project in the
godot/
directory and run the game scenecamera_stream/camera_stream.tscn
. - Install the python requirements for in the
python/
directory by runningpip install -r requirements.txt
from that directory. - From the same folder you can then run the
camera_stream.py
script.
https://medium.com/@flip.flo.games/godot-python-3e3f98860e2f
https://medium.com/@flip.flo.games/godot-python-camera-stream-1866cfb9941f
- Godot 4.2.2
- Python 3.11