Monday, 18 May 2015

The UserDefinedTargetBuilder of the User Defined Target Builder prefab provides methods to start and stop scanning for good targets and to build a new target. In its inspector the following options can be configured :


    • Start scanning automatically: If this is enabled, the target builder will automatically start to scan the camera image for feature points on startup.
    • Stop tracker while scanning: Check this if you want to automatically stop the ImageTracker while the Target Builder is scanning. Once scanning mode is stopped, the ImageTracker will be automatically started again.
    • Stop scanning after creating a target: If this is enabled, scanning will be automatically stopped when a new target has been created.
    UserDefinedTargetBuilder
    Prefab : UserDefinedTargetBuilder
    If the last two options are disabled, it is possible to create an application where scanning mode is never left and targets are tracked immediately after creating them. With this configuration it is possible to create multiple targets in quick succession.

    The UserDefinedTargetBuilder will fire various events to registeredUserDefinedTargetEventHandlers. These must implement the IUserDefinedTargetEventHandlerinterface to process the following events:
    Interface: UDTEventHandler