3D – puredata communication

Starting to work on the first external to enable an easy integration of puredata in the polymorph engine.

The idea is simple: you place a pobject_in object in your patch to receive position (translation), rotation and scale of the 3D objects.

In edit mode, meaning you have pd with ui and the game running aside, info will go through OSC, allowing a RT modification of the patch.

In release mode, the patch will be loaded by the application thanks to libpd.

The pobject_in will work seamlessly in the 2 modes: in edition, you just add an udpreceive object and link it to pobject_in. Once edition is done, if you want to be clean, you just remove the udpreceive. In release, the info will come through a special receive object, polymorph_pobject_in_RT, already included in the pobject_in.

LibPD being integrated since several month it shouldn’t be too hard to adapt the required methods on the C++ side. I’ll work on this tomorrow, I hope to have a cool demo for sunday!