View Source

h3. Augmented Reality
The {{<mobi:augmentedReality>}} component is used to display a list of labeled icons on a video overlay positioned so that they correspond to the users line-of-sight. The selected icon returns the label as the value. This can be used to help guide a user to a particular destination or to select from a set of nearby destinations.

{note}Compass and GPS accuracy may be highly variable.{note}

[Watch a video of Augmented Reality|http://www.youtube.com/watch?v=MmCYhTup1nk]

h3. Usage

This component is used in conjunction with the *augmentedRealityLocations* tag to provide the details for each of a set of locations.

{code:xml}
<mobi:augmentedReality id="ar" urlBase="#{realityBean.baseURL}"
value="#{bean.selectedLocation}" >
<mobi:augmentedRealityLocations
value="#{bean.places}" var="place"
locationLabel="#{place.title}"
locationLat="#{place.lat}"
locationLon="#{place.lon}"
locationDir="#{place.direction}"
locationIcon="#{place.iconURL}" />
</mobi:augmentedReality>
{code}

The *augmentedRealityMarkers* component may also be used for rendering 3-Dimensional markers in the Augmented Reality view:

{code:xml}
<mobi:augmentedReality buttonLabel="3D Augmented Reality"
urlBase="#{realityBean.baseURL}"
value="#{realityBean.selection}">
<mobi:augmentedRealityMarkers
value="#{realityBean.markers}" var="marker"
markerLabel="#{marker.label}"
markerModel="#{marker.model}" />
</mobi:augmentedReality>

{code}

h3. Component Documentation
[augmentedReality|http://res.icesoft.org/docs/icemobile/v1_latest/jsf/tld/mobi/augmentedReality.html]
[augmentedRealityLocations|http://res.icesoft.org/docs/icemobile/v1_latest/jsf/tld/mobi/augmentedRealityLocations.html]
[augmentedRealityMarkers|file:///C:/work/releases/ICEmobile-1.2.0-BETA-bin/icemobile/docs/jsf/tld/mobi/augmentedRealityMarkers.html]