Skip to content
A particle system to create smoke
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
models first commit Feb 12, 2019
screenshot
src fix Apr 25, 2019
textures first commit Feb 12, 2019
.DS_Store migrate to 5.1 Mar 1, 2019
.dclignore first commit Feb 12, 2019
.gitattributes first commit Feb 12, 2019
.gitignore
Dockerfile
LICENSE first commit Feb 12, 2019
README.md first commit Feb 12, 2019
package.json latest Apr 25, 2019
scene.json first commit Feb 12, 2019
tsconfig.json first commit Feb 12, 2019

README.md

Smoke scene

This simple scene shows how to handle a particle system to create smoke. There are two modules being used

  • SmokeSource defines a place from where smoke puffs spawn and an interval. To instance smoke puffs, it either uses idle entities from an object pool or creates new ones if they don't exist yet.
  • Smoke updates the position of the existing smoke puffs so that they rise and slowly move in a direction set by their SmokeVelocity component. When a smoke puff is too far from the source, it's removed from the scene.

Explore the scene: this link takes you to a copy of the scene deployed to a remote server where you can interact with it just as if you were running dcl start locally.

Install the CLI

Download and install the Decentraland CLI by running the following command

npm i -g decentraland

For a more details, follow the steps in the Installation guide.

Previewing the scene

Once you've installed the CLI, download this example and navigate to its directory from your terminal or command prompt.

from the scene directory:

$:  dcl start

Any dependencies are installed and then the CLI will open the scene in a new browser tab automatically.

Usage

Note how smoke starts rising from the fireplace. Puffs of smoke have random sizes and move in random directions, but they gradually grow and straighten upwards as time goes by.

Learn more about how to build your own scenes in our documentation site.

Copyright info

This scene is protected with a standard Apache 2 licence. See the terms and conditions in the LICENSE file.

You can’t perform that action at this time.