@kusheesh God Buddha head seen above buildings. 30th street station #buddha #gods #extraordinary ♬ Buddham Saranam Gacchami - Lalitya Munshaw
Actual effect story video from TikTok app.

View on GitHub


A former colleague ask me to test TikTok’s Sky Segmentation (SS) right away for marketing purposes. They want to display some huge objects on top of some specific building, all rendered just in the sky avoiding other buildings and trees, through an Augmented Reality (AR) camera effect.

Let’s take a look at what others have done so far. First hit on Google was the always helpful Emiliusvgs spanish tutorial on Sky Segmentation effects. Thanks again Emilio!

Emiliusvgs spanish tutorial on Sky Segmentation effects. It has English subtitles and a great recommendation for generative AI Skyboxes.


To create TikTok AR effects and filters, we need to use Effect House (EH). It has never been so easy because EH has several templates that have been updated continuously, side by side with each Effect House software update. Following Emiliusvgs tutorial I’ll be using the latest available Sky Segmentation template.

Template features a castle in the sky laying over a piece of ground that took off from land and is now floating in the sky with (of course) some particles to enhance the sense of pandemonium. Existing particles are a perfect match for this effect purpose. A full sky replacement is featured in template, meaning that a fully opaque skybox image is overlay when sky detected. This is a cool Sky Segmentation use case but I really want it to be as seamless as possible with most of current sky seen on video feed with a subtle transparency blending.

To achieve such sky blending I started using an AI skybox generator called Blockade Labs, as Emiliusvgs suggested. It is known for its excellent results taking a simple prompt and delivering a full resolution cubemap texture ready to use in games and, like in this particular case, AR effects. Also I used a blend option for just tinting the real sky exactly where I want it: around Buddha’s head. It is an overlay, so I just needed some additive blending in the material and voila!

Effect preview captured using Effect House.

Buddha head 3D model is free for commercial and personal uses, it has the Creative Commons CC0 license. You can find more information about model, available to download at SketchFab

Sandstone Khmer Head of the Buddha, 12th, 13th C CE, now in the collection of the Minneapolis Institute of Art.

:eyes: Be aware!

TikTok is asking creators wether they are heavily using assets created through generative AI models for effects.

So I don’t want to be tagged for using too much generative content. Skybox generation is ok, but other assets were either provided by TikTok itself or downloaded from SketchFab.

Thanks for reading, and happy creations!!! :smiley: