A simple 4x4 SDK7 scene designed for batch testing 3D assets in Decentraland
Use this file to quick place items in a fresh SDK7 environment. By default, there are 11 items loaded onto this 4x4 space. Copy up to 11 models into /models folder and rename 1.glb through 11.glb for easy batch testing.
Spawn items with one line of code and 3 different options:
WORLD CENTER
Spawn a static model from world center with:
classSpawner('models/1.glb');
CUSTOM POSITION
Spawn a model with custom positioning with:
elementSpawner('models/1.glb', Vector3.create(8, 0, 8));
CUSTOM POSITION, SCALE & ROTATION
Spawn a model with custom positioning, scale, and rotation with:
customSpawner('models/1.glb', Vector3.create(1, 2, 2), Vector3.create(2, 2, 2), Quaternion.fromEulerDegrees(180, 0, 0));
Previewing the scene
-
Download this scene repository
-
Install the Decentraland Editor
-
Open a Visual Studio Code window on this scene's root folder.
-
Open the Decentraland Editor tab, and press Run Scene
Alternatively, you can use the command line. Inside this scene root directory run:
npm run start