This project is based on a great study by Jose Padovani. Take a look at https://github.com/zepadovani/upbge_osc_gamemode
This version has few improvements and a new feature:
Improvement:
The commands /move and /rotate are object agnostic, you can now send the obj_name in the OSC message
New feature:
The command /play executes an action of a given object, extracting its animation's start_frame and end_frame automatically.
- Download this repository:
git clone https://github.com/sandrobenigno/upbge_osc_gamemode
- Download pythonosc to the same folder of the blend file, so that the standalone app can find the module there
cd upbge_osc_gamemode
pip install --target ./ python-osc
-
Run the game (press 'p' to play the embedded game or select the standalone version in render options)
-
Run the SuperCollider code or the PureData sketch to send messages to move, rotate and play actions of the objects by name
-
On both environiments, run the /quit message to end the server, close the port and exit the game