/** * @brief Create a Glue Movie Texture (Movie overlaid a real world object) * @param String $id Id of the AREL Object * @param String $imagePath Path to the JPG or PNG image that shall be displayed in the real world * @param Array $translation An array given all translation parameters x,y,z * @param Array $scale An array providing scale values along three axis (x, y, z) * @param ArelRotation $rotation Provides the rotation information. Can be defined as euler (rad / deg), quaternion, axisangle or matrix * @param Int $coordinateSystemID ID of the corrdinateSystem the model shall be attached to */ public static function createGLUEModel3DFromImage($id, $imagePath, $translation, $scale, $rotation, $coordinateSystemID) { $obj = ArelObjectModel3D::createFromImage($id, $imagePath); $obj->setScale($scale); $obj->setRotation($rotation); $obj->setTranslation($translation); $obj->setCoordinateSystemID($coordinateSystemID); return $obj; }