Before publishing an effect on the Camera Effects Platform you should make it as small as possible. Smaller effects take less time to load on devices, so people are more likely to see them and share them.
The maximum export sizes is 2MB for effects for modern mobiles, and 12MB when opened on a device. For older devices, they'll need to be as small as possible to work well.
To make your effect smaller, you can:
There are also some advanced compression controls you can try.
Compressing in AR studio will not affect your original files, so you can do it again and again.
To test the appearance and performance of your effects after applying compression, mirror your effect using the AR Studio Player app.
Make sure the textures and objects you're planning to use meet our technical guidelines.
All assets listed in the Assets panel will be in the bundle of your finished effect - even if they're no longer included in the effect itself.
To see which assets are in use go to Project then Show Asset Summary. You'll see a screen that looks like this:
Assets that are being used in the effect have a tick next to them. If assets are referenced in a script, they won't be shown as In use.
If there are any gaps in the table, click Compress All. This will compress your effects and tell you the size of all your assets.
In this effect we'd remove Old_Texture. We'd select the asset and then click the bin icon in the bottom left of the asset panel:
AR Studio has default global compression settings for textures. You can override these settings for individual textures that are taking up more space than they need to.
Find which textures are taking up a lot of space in the the Asset Summary. You'll see the sizes of assets across the 3 bundles AR Studio generates:
You'll see both downloaded and unpacked bundles. Downloaded bundles are the zipped up files that get downloaded to a device. Unpacked bundles are the unpacked files, ready to be displayed.
Test different compression settings for the textures that will have the most impact on the size of your effect. In this example, we could experiment with compressing boater_01_var10.
A texture's compression settings are shown in the Inspector panel. You can change these settings, and check how your effect looks using the AR Studio Player app.
The texture's file size for both downloaded and unpacked bundles, for each of the 3 bundles AR Studio produces:
Change the Image size to scale down the texture, which can help bring its size down.
Limit the size of the texture. You can't make the size of the texture bigger than the original, unless you're stretching an image to make it square.
The following compression options are available for iOS devices:
Depending on the type of texture you're compressing, some methods will look better than others. Selecting PVRTC_V1 (Automatic) will choose the best method for your texture depending on whether you have an Alpha channel or not.
The highest accuracy setting usually results in better quality effects, but it will take longer to calculate the compression. We recommend using Highest, because it doesn't effect the file size.
Check this box to help remove banding in some images, especially those with gradients.
Change the size of the texture.
The following compression options are available for Android devices:
Depending on the type of texture you're compressing, some methods will look better than others. Selecting ETC2 (Automatic) will choose the best method for your texture, depending on whether you have an Alpha channel or not.
The following options are available for this compression scheme:
The highest accuracy setting usually results in better quality effects, but it will take longer to calculate the compression. For basic bundles, accuracy settings effect file size.
You could use another program to compress these types of files.
Reduce the polygon count of 3D objects in a 3rd party package.
Many effects still look good at lower frame rates. To reduce the number of frames:
Audio size isn't currently included in the asset summary, but make sure files are 32kbps mono AAC files.
AR Studio has default compression settings. If you haven't changed the settings of individual textures, any textures and assets in your effect will have these settings applied to them.
Find default compression settings by selecting Project, then Edit Properties, then the Compression tab. The options are the same as those available for individual textures.
We recommend leaving these options as they are, and reducing the size of individual assets instead.
Changing these settings can be useful if an effect is intended for lower end devices or areas of low connectivity. For example:
If you change default compression settings, you'll keep any changes you've made to individual textures. Uncheck the box next next to Override in the Inspector panel to remove changes to individual textures.
For ETC2 formats, select Punch Through Alpha. This is half the size of an ETC2_RGBA - so you'll need to test it to make sure your effect looks okay.
If a texture with an alpha channel isn't appearing as expected, check you're using RGBA, rather than RGB.
For PVR formats, you can try overriding large textures to 2BPP rather than 4BPP formats. Use Highest Accuracy, as 2BPP textures can look poor.
For Basic bundles, set the format to PNG and Quality to Medium or Lowest. This will reduce the PNG to a 256-color variant which should save space, but loose some quality. Set Method to Best to get the tightest compression.