Author Hongwei Tang
Frustrated by the limited official changelogs I started to write this article to help you understand the concept behind the new layer modes. Feel free to contact me if you find any mistakes or missing parts.
Old Version
(Outdated)
Layers - Spark AR Studio
Render Mode
- Opaque
Enable read and write depth buffer. This means that closer objects will obscure far objects.
- Cutout
Disable read depth and enable write depth. These objects will always draw over any other object, and these will obscure opaque or transparent objects farther away if such are drawn after.
- Transparent
Enable read depth and disable write depth. These objects will be obscured by nearer opaque or cutout objects that have already been drawn, but can be obscured by any objects drawn afterwards (whether nearer or further away).
- Overlaid
Disable read and write depth. These draw on top of any objects of any type already drawn, and in turn will be overdrawn by any later rendered objects, regardless of whether they are nearer or further away.
Current situation
So since v63 beta the layer render modes have been moved from the layer section to the material section. Sadly that information is only showing up in this Spark AR community here (screenshot). The changelog doesn't show any indication of that important change for people who are still used to older versions.
How It Works