Location based contents are a common use case for AR-applications. Junaio, for example, is a fully featured AR-browser that is build on top of the MobileSDK.
setMoveTranslation() to modify its z-value instead. To e.g. move the MetaioMan a bit down you could do the following:
mMetaioMan.setMoveTranslation( new Vector3d( 0, 0, -100) , true );The second, boolean parameter which is
true in the upper case tells the SDK to append this translation to the general translation in the world.
Billboards: Billboards are floating images which are always facing the viewer. Billboards can be used as 'signs' indicating e.g. a point of intereset (POI). Optionally, they can be arranged in groups, so called BillboardGroups. A billboard group takes care of proper, non-overlaying display of billboards that are close to each other.
You can either implement this interface in your Activity or you can create a nested class that implements that. In any case you also need to link your class with the UnifeyeSensorsManager. You can do that by calling the/** * Callback interface, any class which requires to update based on sensor values * can implement this interface and receive new sensor readings when the sensors are updated, * the class which implements this interface must register itself with the UnifeyeSensorsManager * */ public static interface Callback { /** * Called when accelerometer sensor provide new reading at regular interval * * @param vector Vector containing x,y,z angles */ public void onAccelerometerSensorChanged(Vector3d vector); /** * Called when orientation sensor provide new reading at regular interval * * @param orientation Vector containing orientation reading, x=azimuth, y=pitch, z=roll */ public void onOrientationSensorChanged(Vector3d orientation); /** * Called when GPS provide new reading * * @param location New location provided by the GPS */ public void onLocationSensorChanged(LLACoordinate location); }
registerCallback() method of it.
So for example a definition could look like this:
public <YourClassNameHere> implements UnifeyeSensorsManger.Callback
{
}
-- SupportMetaio - 2011-12-02 | I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
location_based.jpg | manage | 31.4 K | 2011-12-05 - 09:21 | SupportMetaio |