logo
Image without caption
πŸ‘‹
Here are some instructions and examples project using the Unreal Live link Augmenta plugin from the Unreal market place
⬇️
First, get the plugin! (free) πŸ‘‰ Unreal Live link Augmenta plugin
⬇️
Then check the examples projects showing different use cases and techniques
Unreal Augmenta examples projectUnreal Augmenta examples project

Quick start

  1. Get the simulatorGet the simulator or your equipment and use the Unreal preset or OSC V2 with port 12000 (default)
  1. Start one of the Unreal example projects
  1. Enjoy πŸ™‚

Features overview

The Augmenta data is stored in the LiveLinkAugmentaSource :
  • The AugmentaScene contains the scene data.
  • The AugmentaVideoOutput contains the video output data.
  • The AugmentaObjects contains the augmenta objects data, stored in a TMap with the object id as key and AugmentaObject as value.

LiveLinkAugmentaSource

The Live Link Augmenta Source has the following parameters :
Parameter
Description
TimeoutDuration
An existing Augmenta object which has not been updated for this duration will be removed.
ApplyObjectScale
If true, the Augmenta object bounding box size is used as the scale of the subject transform.
ApplyObjectHeight
If true, the position of the subject is moved up by half the Augmenta object height (i.e. it is moved up so that the bottom of the bounding box is at the Augmenta scene level).
OffsetObjectPositionOnCentroid
If true, the centroid of the Augmenta object is used for the subject transform position. Otherwise the bounding box center is used. This parameter is only used when ApplyObjectScale is true. If ApplyObjectScale is false, the subject transform position will always be the centroid of the Augmenta object.
DisableSubjectsUpdate
Disable the creation and update of Live Link subjects from received Augmenta data to improve performance when they are not needed.

Usage

Creating the Live Link Augmenta source

  • Open the Live Link window by clicking Window -> Virtual Production -> Live Link.
Image without caption
  • In the Live Link window click on Source, LiveLinkAugmenta Source, enter your IP address, port and scene name, then click Add.
Image without caption
If you are receiving Augmenta data, you should see the received Augmenta elements apearing in the subjects list.
Image without caption
πŸ‘‰
There are two ways of using the Augmenta data from the Live Link plugin
  • With the Live link subjects (No code and manual assignment)
  • With the AugmentaManager (C++ or blueprint)

1. Using the Live Link subjects

This is the standard Live Link usage. The Augmenta elements (scene, videoOutput and objects) are exposed as Live Link subjects with the Transform role.
You can use those subjects to control the transforms of actors in your scene through the LiveLinkComponentController.
Image without caption
Image without caption
πŸ‘‰ You can check this in use in the LiveLinkAugmentaDemo_LiveLinkSubjects level from the
Unreal Augmenta examples projectUnreal Augmenta examples project

2. Using the Augmenta Manager

The Augmenta Manager exposes the complete Augmenta data of the Live Link Source to C++ or Blueprints for advanced usage such as spawning objects at runtime or using more advanced Augmenta data. Additionally, the Augmenta Manager transfers Augmenta events from the Live Link source thread to the game thread (for blueprints).
The parameters of the Augmenta manager are described below.
Parameter
Description
LiveLinkPreset
Live link preset to load at start. This can be left empty to avoid replacing an existing loaded Live Link preset.
SceneName
Scene name of the Live link Augmenta source to attach to.
SourceSearchDelay
Delay between each source search, as long as the manager is not connected to a Live link source.
IsConnected
Read only, true if the manager is connected to a Live link source.
EventQueueCapacityWarningThreshold
The event count threshold (in percentage of the event queue capacity) above which warnings are issued. If the event queue capacity is reached, it means the Live link source receives messages faster than the manager can propagate them. This can happens if your Augmenta data rate is too high, or your game framerate is too low. In this case, incoming events from the Live link source might be missed by the manager. The event queue currently has a capacity of 2047. This means you should not receive more than 2047 augmenta messages during every frame of your game. This can be manually increased in the LiveLinkAugmentaManager.h file.
The exposed methods of the Augmenta manager are described below.
Method
Description
GetAugmentaScene
Returns a copy of the Augmenta scene.
GetAugmentaVideoOutput
Returns a copy of the Augmenta video output.
GetAugmentaObjects
Returns a copy of the Augmenta objects map.
GetAugmentaObjectById
Returns a copy of an Augmenta object with a specific Id (if it exists).
GetAugmentaObjectsCount
Returns the current number of Augmenta objects.
The exposed events of the Augmenta manager are described below.
Event
Description
OnAugmentaSceneUpdated
Fired when the Augmenta scene is updated.
OnAugmentaVideoOutputUpdated
Fired when the Augmenta video output is updated.
OnAugmentaObjectEntered
Fired when a new Augmenta object entered the scene.
OnAugmentaObjectUpdated
Fired when an Augmenta object as been updated.
OnAugmentaObjectLeft
Fired when an Augmenta object left the scene.
OnAugmentaSourceDestroyed
Fired when the Augmenta source that this manager is connected to is destroyed.
πŸ‘‰ You can check this in use in the LiveLinkAugmentaDemo_AugmentaManager level from the
Unreal Augmenta examples projectUnreal Augmenta examples project
In this level, a blueprint derived from the Augmenta manager is added in the scene to load a Live Link preset and a custom AugmentaVisualizer blueprint connects to the manager events in order to display debug objects for the Augmenta scene, video outputs and objects.
Image without caption
And with many points :
Image without caption
πŸ’‘
Note that if you are only using the Augmenta manager and not the Live link subjects, you can disable the Live link subjects update in the Augmenta source.

Ndisplay : using the Augmenta Cluster Manager

The AugmentaClusterManager is a C++ class that binds to an existing AugmentaManager to send the event from the AugmentaManager through a nDisplay cluster via cluster events. This allows to propagate the Augmenta events through the cluster in a synchronized manner. This framework is described in the diagram below.
Image without caption
πŸ‘‰ You can check this in use in the LiveLinkAugmentaDemo_AugmentaClusterManager_nDisplay level from the
Unreal Augmenta examples projectUnreal Augmenta examples project
In this level, the AugmentaClusterManager propagate cluster events from the incoming Augmenta events from the AugmentaManager, while the AugmentaClusterVisualizer listen to the AugmentaClusterManager events for the instantiation and update of the visualization objects.
The Live Link Augmenta Cluster Manager has the following parameters :
Parameter
Description
AugmentaManager
The Augmenta manager to link this cluster manager to.
UseBinaryClusterEvents
If true, Augmenta events are propagated to the cluster using binary cluster events, otherwise json cluster events are used. Binary cluster events are better for data throughput and latency.
BinaryEventIdOffset
Binary cluster events are identified by a unique id (an integer). Different binary cluster events sharing the same id will lead to interpretation issues and potential crashes. The cluster manager use ids 0 to 5 by default, but they can be offsetted to prevent overlapping with other event ids using this parameter.
SendReducedObjectData
If true, only the transform, id and age data of the Augmenta objects will be sent through cluster events to improve performance. This only works when using json cluster events.

Creating and loading Live Link presets

Live Link presets can be created in the Live Link window by clicking on Presets and Save as.
Image without caption
This allows to save your Live Link sources configuration and reload it at runtime. To do so, you can specify a default preset for your project to load at start up in the Project Settings -> Live Link.
Image without caption
Or if you are using an Augmenta manager, you can specify the Live Link preset to load in the Augmenta manager directly. Note that if you use several Augmenta managers in the same level, you should have only one of them responsible for loading a Live Link preset.