Adding 3D objects to your Spark AR effects is a great way to create more immersive effects that take place in people’s real surroundings.
You can create your own 3D objects with tools such as Blender, a free and open-source 3D content creation suite.
Spark AR Toolkit is an add-on that you can use in Blender to optimize your 3D object and check it's ready to import to Spark AR Studio.
Use Spark AR Toolkit to:
This article is for people already familiar with Blender. Download the latest version here.
First, to download the toolkit, click the pink button labeled Spark AR Toolkit under Downloads on the right-hand side of this page.
Then, in Blender:
To enable and start using Spark AR Toolkit:
You can now access Spark AR Toolkit via the Sidebar. To do so:
You can only use Spark AR Toolkit to optimize one mesh at a time.
If your 3D object is made up of multiple meshes, try combining all the surfaces into one mesh or optimizing each mesh individually before combining and exporting as one.
Select your mesh
Select a mesh to get started. It will then be listed in Spark AR Toolkit, under Mesh.
Check triangle count
The Optimization section in Spark AR Toolkit displays your mesh’s current triangle count.
A checkmark to the right of the count will let you know that the triangle count is in line with the Spark AR Technical Guidelines.
If you see a white exclamation point instead, the triangle count meets requirements, but the mesh will perform better if reduced.
A red exclamation point indicates that the triangle count is too high and you’ll need to reduce it.
Reduce triangle count
Use the Reduce Triangles section to make your mesh as lightweight as possible without negatively impacting the visual quality of your 3D object.
Try reducing the triangle count by different percentages and checking that your object maintains its realism and shape before applying any changes.
For example, to reduce the triangle count by 50%, follow these steps:
If you forget to hit apply any further optimizations you make will be applied to a still-heavyweight object. This could slow down the application.
Next, under Clean Up Mesh click Apply. This will further reduce triangle count by repairing and removing geometry that could cause issues when exporting to Spark AR.
The clean up includes:
Scale and positioning
The scale and positioning displays your 3D object’s height and lets you adjust both the height and pivot position.
A checkmark to the right of your object’s height will let you know that it follows the Spark AR Technical Guidelines.
If you see a white exclamation point instead, the height meets requirements, but the mesh will perform better if reduced.
A red exclamation point indicates that you’ll need to reduce the height.
To set the height:
The default unit of measurement in Spark AR Studio is in metres. Learn more.
Set Pivot Point
Click Center or Bottom to shift your mesh’s pivot point to a desired position.
When you’re happy with the results, all you have to do is click Export Mesh to save your 3D object to your computer.
If the Export Mesh button is greyed out, your object is not ready to be exported and you’ll need to adjust the triangle count and try again.
Once you click Export Mesh, there’s no need to worry about file format and export settings, your 3D object will be ready to import to Spark AR Studio!
Once your object is exported, add the 3D object to your Spark AR project.
If you are used to working with Blender you can also learn how to use the Blender environment textures to add Blender image-based lighting to your scene.
Join the Spark AR community to share feedback on Spark AR Toolkit. This information helps to guide improvements in new versions of the tool.