---
title: "Dust ring effect in three.js from a sprite sheet"
description: "Play a dust ring in three.js today: a snippet loads the packed RGBA sprite sheet on a THREE.Sprite and steps the texture offset. Steps and code."
canonical: https://appliedmanifold.com/effects/threejs-dust-ring/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [three.js VFX](https://appliedmanifold.com/effects/threejs-vfx/)
4.  three.js dust ring

EFFECTS // THREE.JS

# How to make a dust ring in three.js

In three.js, you can play a 10 m ring of dust thrown out by a landing or a blast. A snippet loads the packed RGBA sprite sheet on a THREE.Sprite, sets the texture repeat to one eighth, and removes it after the last frame. Godot 4 gets a ready scene that relights the smoke.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [What the sheets hold →](https://appliedmanifold.com/docs/pyrofx/outputs/)

-   Godot 4 Available
-   Unity Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   **three.js** Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**DUST\_RINGFINAL**

![First frame of the dust\_ring bake](/bakes/dust_ring/poster.webp)

Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-dust_ring)

01 // WHAT YOU GET

## What you get for dust ring in three.js

The dust ring is a ring of dust kicked out along the ground by a blast or a heavy landing. It spreads to about 10.5 m wide but stays low, about 2.2 m tall, and plays once over 2.1 seconds. Its camera looks down from 35 degrees, so the ring reads as lying on the ground.

You get four PNG sheets of 64 frames, a `layout.json` with the timing, and previews, which three.js plays through a small material.

02 // HOW TO

## Play the dust ring in three.js

1.  Ask your agent for the effect (for example "a small dust ring when a character lands, played once") with `export.pack` writing the light from above into RGB and opacity into alpha, so one PNG holds gray shading you can tint. (`main_pos.png` as it comes holds three light directions in RGB, not a color.) Load it with `TextureLoader` and set `texture.repeat.set(1 / 8, 1 / 8)`.
2.  Put it on a `THREE.Sprite` with a `SpriteMaterial` (`transparent: true`, `depthWrite: false`) so it always faces the camera. Normal blending suits smoke; tint it with the material color.
3.  Each frame, pick the tile: column `i % 8` and row `Math.floor(i / 8)`, then set `texture.offset.set(col / 8, 1 - (row + 1) / 8)`.
4.  The dust ring's frames crowd its fast start, so pick `i` from the clock: `i = layout.frame_times_s.findIndex((t) => t >= elapsed)`. When that returns -1, after 3 s, call `sprite.removeFromParent()` and `material.dispose()`.
5.  Set `sprite.scale.set(s, s, 1)` with `s` the meters per tile from `layout.json`, a little over 10.5 m for the dust ring, so it shows at its real size.

03 // ADJUST IT

## Adjust the dust ring for your scene

Use it under explosions, helicopter landings and ground slams. Ask your agent for a smaller ring for a character landing, a sandier color for a desert or a slower spread for a heavy vehicle.

04 // SETTINGS

## Settings in the dust ring spec

A ring-shaped source throws cold dust outward at 14 m/s for 0.15 s, and drag slows it so it settles. Front pacing gives the fast first moments more frames.

Ask your agent to change these and compile again; the [full dust\_ring spec](https://appliedmanifold.com/docs/pyrofx/examples/#ex-dust_ring) lists every value.

05 // RELATED

## Related pages

-   [Godot dust ring Godot 4A 10 m ring of dust thrown out by a landing or a blast, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-dust-ring/)
-   [Unity dust ring UnityA 10 m ring of dust thrown out by a landing or a blast, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-dust-ring/)
-   [Unreal dust ring Unreal EngineA 10 m ring of dust thrown out by a landing or a blast, played in Unreal Engine by hand today.](https://appliedmanifold.com/effects/unreal-dust-ring/)
-   [Roblox dust ring Roblox StudioA 10 m ring of dust thrown out by a landing or a blast, played in Roblox Studio by hand today.](https://appliedmanifold.com/effects/roblox-dust-ring/)
-   [three.js fire three.jsA looping fire, from a burning wreck to a fire whirl or a window fire, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-fire/)
-   [three.js explosion three.jsAn explosion that plays once, a ground fireball or a shell impact, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-explosion/)
-   [Dust ring sprite sheetA low ring of dust thrown outward along the ground as a 2.1 second one-shot sprite sheet, precomputed from a 35 degree camera for views from above.](https://appliedmanifold.com/effects/dust-ring-sprite-sheet/)
-   [Soft particlesSoft particles fade a flat effect quad where it meets scene geometry by comparing depths, which hides the hard cut line.](https://appliedmanifold.com/learn/soft-particles/)
-   [Play an explosion once three.jsPlay an explosion sprite sheet once in three.js, then remove the sprite and free its material and texture.](https://appliedmanifold.com/guides/threejs-play-once/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in three.js VFX →](https://appliedmanifold.com/effects/threejs-vfx/)

[← three.js smoke column](https://appliedmanifold.com/effects/threejs-smoke-column/)

06 // FAQ

## Questions about dust ring in three.js

[All questions →](https://appliedmanifold.com/faq/)

**README.THREEJS\_DUST\_RING**

### How do I play a dust ring once and remove it in three.js?

Pick each frame from layout.frame\_times\_s, stop after frame 63 at 2.1 seconds, then call sprite.removeFromParent() and material.dispose().

### How do I make a realistic dust ring in three.js?

Start from a simulated ring instead of manual particles. A ring source throws cold dust outward while drag slows its spread.

### How do I keep a dust ring in proportion in three.js?

Keep the Sprite square because every tile is square. Set sprite.scale.set(s, s, 1) using the meters per tile from layout.json.

### What resolution does each dust ring frame use?

Each frame is 256 px square on a 2048 px sheet by default, which is plenty for dust seen from a few meters away.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
