Changes
After the folder is configured, the next step is to validate the schema against an online validator. A solution can be found at [http://www.utilities-online.info/xsdvalidation/ Online XML Schema Validator]. The schema used to validate against can be found inside the ''UBIK'' Folder and is named ''xsd_schema_validation''.
The action mapping xml contains different actions such as GeometryAction(3D Object), MovieAction and UBIKObjectAction.
* The following xml shows an example configuration:
<source lang="xml">
<TrackingActionMapping>
<GeometryAction TrackingID="1"> <GeometryResource> <ResourcePath>pump.obj</ResourcePath> <Scale>100</Scale> </GeometryResource> </GeometryAction>
<UBIKObjectAction GeometryAction TrackingID="2"/><GeometryAction TrackingID="5"> <GeometryResource> <ResourcePath>pump.obj</ResourcePath> <Scale>100</Scale> <RotationDegrees>
<Z>90</Z>
</TrackingActionMapping>
</source>
All Action tags must specify a Tracking id, as an attribute. The Tracking id must exist in the corresponding tracking xmlwithin a ''<SensorCOSID>'' tag.
{{Attention|If a texture is used for a geometry, the material (*.mtl file) and the texture (picture) must all exist in the same place in order for to have the 3D object displayed properly, Only the geometry has to be specified as a resource in the Action Mapping, though.}}
=== GeometryAction Tag Displaying 3D objects ===
==== GeometryResource Tag ====
</source>
In the following rotation example the user must see the 3d 3D object rotated around X axis and around Z axis 90 degrees.
Note that the angle is in radians.
* ''RotationDegrees example''.
</source>
=== MovieAction Tag Displaying movies ===
Inside the ''MovieAction'' tag there can be two possible resources defined, a MovieResource and a PlayButton resource.
==== MovieResource Tag====
==== PlayButton Tag ====By using the ''<PlayButton>'' tag, the movie will not start immediately but there will be a geometry shown in between which basically contains the same values as the ''GeometryResource'' tag. Its purpose is to start the video only when this intermediate geometry is touched.
== '''Examples''' ==
In order to use the previously configured xml's, you can use either the ID Marker activity or the Markerless activity on the {{UBIK}} Android Client.
=== ID Marker Activity ===
The scenario is very similar with the id marker activity with the only difference that instead of ids you have to scan your tracking images.
=== Examples Results ===
With the existent configuration from the zip file, you should see the following picture when scanning the first id or the first picture: