Banuba AR Cloud service enables your app to connect with our servers and access AR effects directly from the cloud. This means that the effects are downloaded on-demand, whenever a user requires them, instead of being pre-packaged within your app. As a result, your app remains lightweight while still offering a wealth of content.
AR Cloud service can be deployed on your favorite CDN solution i.e. AWS.
Use .zip archive with AR effects provided by Banuba representatives to process data before uploading on your CDN.
CLI tools are in bin folder.
Run the program with the required parameters in Terminal.
./mac_arcloud-effects-cli -s <path/to/effects.zip> -u <your_arcloud_domain>.\win_arcloud-effects-cli.exe -s <path\to\effects.zip> -u <your_arcloud_domain>
-s, --source: Path to the effects zip filerequired-d, --destination: Destination folder to extract the effects (default: effects)-u, --api-url: ARCloud domainrequired
./mac_arcloud-effects-cli -s /Users/username/Work/arcloud-effects-cli/banuba_effects.zip -u https://resources/banuba/
As a result effects folder will be created with processed data.
effects folder includes
<effect_name>.zipand<effect_name>.pngfiles for each AR effect of the provided.zip.api_responseManifest file that has json structure for all effects.
Example of api_response
{
"effects": [
{
"URL": "https://resources/banuba/Effect1.zip",
"Preview": "https://resources/banuba/Effect1.png",
"ETag": "\"c78e0bed9032f3997cb489036040afc6\""
},
{
"URL": "https://resources/banuba/Effect2.zip",
"Preview": "https://resources/banuba/Effect2.png",
"ETag": "\"57c5ff0367335807ffc5298cd23c5d33\""
},
...
]
}Fields:
"URL"- path to AR effect.zipfile."Preview"- path to AR effect preview.pngfile."ETag"- MD5 hash of the effect.
Use data from effects folder.
Upload api_response file to https://<your_arcloud_domain>/v1/effects/api_response
Manifest file is a JSON file without file extension. Set Content-Type as application/json before upload file to CDN i.e. AWS S3
bucket.
Upload all .zip and .png files to <your_arcloud_domain>
/(folder store effects and their preview)Effect1.zipEffect1.png>
v1/effects/api_response