Augmenta JSON protocol v2.0 (Fusion only)

💡
This JSON protocol is used over Websocket mostly to communicate with web based apps. It is a simple wrapping of the OSC message structure in JSON format.
Note : All coordinates are (otherwise specified) normalized [0-1] with a top left origin.
When an object enters the scene
plain text
{"object": { "enter": { "frame": frame, "id": id, "oid": oid, "age": age, "centroid": { "x": centroid.x, "y": centroid.y }, "velocity": { "x": velocity.x, "y": velocity.y }, "orientation": orientation, "boundingRect": { "x": boundingRect.x, "y": boundinRect.y, "width": boundingRect.width, "height": boundingRect.height, "rotation": boundingRect.rotation }, "height": height, "extra": { "frame": extra.frame, "id": extra.id, "oid": extra.oid, "highest": { "x": extra.highest.x, "y": extra.highest.y }, "distance": extra.distance, "reflectivity": extra.reflectivity } } }
When an object is updated (same format than enters)
plain text
{"object": { "update": { ... } } }
When an object leaves the scene
plain text
{"object": { "leave": { ... } } }
Scene information
plain text
{"scene": { "frame": frame, "objectCount": objectCount, "scene": { "width": scene.width, "height": scene.height } }
Fusion software specific information
plain text
{"fusion": "textureOffset": { "x": textureOffset.x, "y": textureOffset.y }, "textureBounds": { "x": textureBounds.x, "y": textureBounds.y }, "targetOutSize": { "x": targetOutSize.x, "y": targetOutSize.y } }
Share