Learn how to import 3D models to use in a scene
In Decentraland, a scene is the representation of the content of an estate/LAND. All scenes are made up of entities, which represent all of the elements in the scene and are arranged into tree structures, very much like elements in a DOM tree in web development.
Make sure you first install the CLI tools. In Mac OS, you do this by running the following command:
npm install -g decentraland
See the Installation Guide for more details and specific instructions for Windows and Linux systems.
Use our CLI tool to automatically build the initial boilerplate scene. To do so, run
dcl init in an empty folder.
dcl init command creates a Decentraland project in your current working directory containing a scene. It prompts you to answer a series of optional questions about the scene’s ownership and where in Decentraland to eventually upload it, then it asks you to select a scene template to start from. Depending on what you choose for this option, the CLI builds a different file structure with different default content.
There are four different scene templates that you can use as a starting point:
See scene contents for an overview of the default files that are created in your scene.
To preview your rendered scene locally, run the following command on the scene’s main folder:
Every time you make changes to the scene, the preview reloads and updates automatically, so there’s no need to run the command again.
For more about what you can see in a scene preview, and instructions for how to run a preview of a remote scene, see preview your scene.
To edit scenes, we recommend using a source code editor like Visual Studio Code or Atom. An editor like this helps you create scenes a lot faster and with less errors, as it marks syntax errors, autocompletes while you write and even shows you smart suggestions that depend on the context that you’re in. With Visual Studio Code you can even click on an object to see the full definition of its class.
See the development guide for simple instructions about adding content to your scene.
Once you’re done creating the scene and want to upload it to your LAND, see publishing.