ArelXMLHelper
 All Data Structures Functions Variables Pages

Introduction:

The ArelXML Helper provides PHP methods to generate AREL XML. The full class documentation can be found here.

The basic usage of the ARELXML Helper is like this:

// start - providing path to AREL HTML file and Tracking Configuration
ArelXMLHelper::start(NULL,$arelPath,$trackingXML);
// create your AREL objects
// create a 3D model
"1", //ID
"http://dev.junaio.com/publisherDownload/tutorial/metaioman.md2", //model Path
"http://dev.junaio.com/publisherDownload/tutorial/metaioman.png", //texture Path
array(0,-100,0), //translation
array(3,3,3), //scale
new ArelRotation(ArelRotation::ROTATION_EULERDEG, array(-90,0,0)), //rotation
1 //CoordinateSystemID
);
//output the object
// create a 3D model from an image
"image",
WWW_ROOT . "/resources/image.png",
array(0,-70,0), //translation
array(5,5,5), //scale
new ArelRotation(ArelRotation::ROTATION_EULERDEG, array(0,0,0)), //rotation
2 //CoordinateSystemID)
);
//output the object
// end the output

These are the different types of objects you can create:

Object Method to create
3D model from 3D file (obj,md2,fbx) ArelXMLHelper::createGLUEModel3D
3D model from image (image-plane)ArelXMLHelper::createGLUEModel3DFromImage
3D model from movie (movie-plane) ArelXMLHelper::createGLUEModel3DFromMovie
Location based model from 3D file ArelXMLHelper::createLocationBasedModel3D
Location based model from image (image-plane)ArelXMLHelper::createLocationBasedModel3DFromImage
Location based model from movie (movie-plane) ArelXMLHelper::createLocationBasedModel3DFromMovie
General Location based POI ArelXMLHelper::createLocationBasedPOI