Scene content guide
Learn how to import 3D models to use in a scene
In order to improve performance in the metaverse, we have established a set of limits that every scene must follow. If a scene exceeds these limitations, then the parcel won’t be loaded and the preview will display an error message.
Below are the maximum number of elements allowed allowed in a scene:
n represents the number of parcels that a scene occupies.
log2(n+1) x 10000Total amount of triangles for all the models in the scene.
log2(n+1) x 200Amount of entities in the scene.
log2(n+1) x 300Amount of meshes in the scene.
log2(n+1) x 20Amount of materials in the scene. It includes materials imported as part of models.
log2(n+1) x 10Amount of textures in the scene. It includes textures imported as part of models.
log2(n+1) x 20Height in meters.
When running a preview, any content that exceeds parcel boundaries are highlighted in red when rendered.
When your parcel is rendered, any static content extending beyond your parcel’s boundaries is replaced with an error message. All dynamic entities that cross your parcel boundaries are deleted from the rendered scene.
Texture sizes must use width and height numbers (in pixels) that match the following numbers:
1, 2, 4, 8, 16, 32, 64, 128, 256, 512
This sequence is made up of powers of two:
f(x) = 2 ^ x. 512 is the maximum number we allow for a texture size. This is a fairly common requirement among other rendering engines, it’s there due internal optimizations of the graphics processors.
The width and height don’t need to have the same number, but they both need to belong to this sequence.
The recommended size for textures is 512x512, we have found this to be the optimal size to be transported through domestic networks and to provide reasonable loading/quality experiences.
Examples of other valid sizes:
32x32 64x32 512x256 512x512
Although textures of arbitrary sizes work in the alpha release, the engine displays an alert in the console. We will enforce this restriction in coming releases and invalid texture sizes will cease to work.
Not all shaders can be used in models that are imported into Decentraland. Make sure you use one of the following:
Standard materials: any shaders are supported, for example diffuse, specular, transparency, etc.
Tip: When using Blender, these are the materials supported by Blender Render rendering.
PBR (Physically Based Rendering) materials: This shader is extremely flexible, as it includes properties like diffuse, roughness, metalness and emission that allow you to configure how a material interacts with light.
Tip: When using Blender, you can use PBR materials by setting Cycles rendering and adding the Principled BSDF shader. Note that none of the other shaders of the Cycles renderer are supported.
See entity interfaces for a full list of all the properties that can be configured in a material.