This Sky Effects template project showcases the sky coaching overlay, explains how to use the sky scene to attach assets to the sky segmentation layer, and how to replace the sky texture.
Sky effects scenes are designed for scenes that exist only in the sky.
- In your
<a-scene>add thexrlayerscomponent - In your scene, add a sky scene using
<a-entity xrlayerscene="name:sky"></a-entity> - Parent objects under the sky scene to attach them to the sky layer.
Using Components for Sky Effects
-
The
#pivot<a-entity>will help you position assets in a spherical manner, it acts as a pivot that you offset your object from and then lets you position the object by rotating the pivot on the x and y axes. You may have to alter the rotation of the object itself depending on where you are positioning the object. -
Use the
edgeSmoothnessattribute of the<a-entity xrlayerscene="name:sky>element to feather the segmentation mask so that the edge between sky and not sky is more natural. -
Use the
invertLayerMaskattribute of the<a-entity xrlayerscene="name:sky>element to overlay everything but sky pixels within the sky scene. -
The
sky-coaching-overlayhelps instruct users to find the sky in order to start the sky effects experience.
It is often helpful to use the sky-remote-authoring component to position sky effects content remotely on your desktop.
To set up this project's scene for remote desktop development, disable any components related to 8thWall's AR engine or mobile development
by adding a letter to the beginning (i.e. "Zxrlayers") or removing it altogether. The sky-remote-authoring component will automatically remove the following components:
- xrlayers
- xrextras-loading
- xrextras-runtime-error
- landing-page
- sky-coaching-overlay
Next, add the sky-remote-authoring component to your element as last component in the list of attached components (after xrlayers).
Now you can open the sky effects scene and position content relative to the sky through any desktop browser!
Extra Notes:
- Make sure opacity is set to 1 on the element if the sky texture is not visible.
- Toggle the foreground element using the schema value
foregroundon thesky-remote-authoringcomponent. - The
sky-remote-authoringcomponent will automatically reparent elements in your sky scene to the for desktop development - Ensure
sky-remote-authoringis listed last/in the correct order on the element or else remote authoring may not work correctly.
- Laptop Mode: Sky effects also work on laptop cameras.
- Pin to Camera: Pin sky effects to the camera instead of to the world by nesting the whole sky scene within the
<a-camera>or you can append the camera to the sky scene and append specific objects to the camera. - Remote Development: An alternative to using the
sky-remote-authoringcomponent would be to use a stock image of the sky (example) on a monitor.
With Sky Effects for 8th Wall, developers now have the power to turn day into night, stage an AR alien invasion with flying UFOs and let users interact with larger than life characters that tower over the city skyline. While the sky's the limit in the use of this new feature, Sky Effects are a perfect way to celebrate a new movie release, add visual effects to an outdoor concert or take a sports game to the next level

