Creating an environment with terrain allows you to generate and customize organic materials within the 3D space that look and behave like natural materials from the real world. Using tools within the Terrain Editor, this section of the tutorial teaches you how to generate and sculpt terrain for a small island where players spawn and navigate to the first few platforms of your experience.
Before you begin, it's important to note that sculpting terrain is an art form, and it's difficult to exactly recreate brush strokes and subtle material edits. As long as your terrain meets the needs of your own experience, it's normal and expected for your environment to look and feel different from the sample Island Jump experience.
Create the Island
The first step in creating your environment is to create a small island that players will spawn to when they start the experience, and when their health reaches zero after they fall off a platform. Using the Terrain Editor's Draw tool, you can click and drag anywhere within the viewport to generate a large sphere of terrain to start the island, which you can later shape and flatten for a wide surface area.
To create the island:
In the menu bar, navigate to the Home tab, then click the Terrain Editor button. The Terrain Editor window displays.
In the Terrain Editor window, click the Edit tab, then the Draw button.
In the Brush Settings and Material Settings sections, keep all default setting except for the following:
- Set Brush Size to 32.
- Set Source Material to Sand.
In the viewport, click near the spawn location in the viewport. A sphere of sand material displays.
Shape the Island
If you keep the island in its current shape, players would have a difficult time navigating without falling off the island. Using the Terrain Editor's Flatten tool, you can click and drag on the sphere to evenly level the terrain on a fixed plane, and provide players a relatively flat surface as they start your experience. While this shape initially looks unnatural, you can also use the Terrain Editor's Sculpt tool around the edges of the island to ensure it looks organic and realistic.
To shape the island:
In the Terrain Editor window, click the Flatten button.
In the Brush Settings section, keep all default setting except for the following:
- Set Brush Size to 18.
- Set Flatten Plane to Fixed. New settings display.
- Set Fixed Y Plane to 0.
In the viewport, click and drag your mouse around the sphere until it's completely flat on top.
Navigate back to the Terrain Editor window, then click the Sculpt button.
In the Brush Settings and Material Settings sections, set Source Material to Sand, otherwise keep all default settings.
In the viewport, click and drag your mouse around the island's edges and below the water line to make the island look more natural.
Create Water
While there are multiple ways to generate a large body of water, the following instructions utilize the Terrain Editor's Fill tool. This method allows you to replace any material in a specific region with another material, including air itself.
To create the water around the island:
In the Terrain Editor window, click the Fill button.
In the Selection Settings section,
- Set Position to 0, -15, 0 to ensure the water fills below the top of the island.
- Set Size to 1800, 5, 1800 to ensure the water fills toward the horizon of your experience.
In the Material Settings section, configure the tool with the following settings:
- Set Fill Mode to Replace.
- Set Source Material to Air.
- Set Target Material to Water.
Click the Apply button. Water generates around the island.
Apply Materials
Now that you have the basis of your island, you can customize its appearance with different materials. Using the Terrain Editor's Paint tool, you can click and drag on your terrain to apply both a grassy surface and blades of grass to the middle of the island's surface.
To apply materials to the island:
In the Terrain Editor, click the Paint button.
In the Brush Settings and Material Settings sections, keep all default setting except for the following:
- Set Material Mode to Paint.
- Set Source Material to Leafy Grass.
In the viewport, click and drag around the middle of the island to apply the leafy grass material.
Navigate back to the Terrain Editor window, then in the Brush Settings and Material Settings sections,
- Set Brush Size to 3.
- Set Material to Grass.
In the viewport, drag along the edges of the island to apply blades of grass, leaving space in the middle of the island for the spawn location and the initial platforms.
In the Explorer window, select the SpawnLocation object.
In the Home tab, select the Move tool.
In the viewport, move the spawn location toward the edge of the island to make space for the first platform. The sample Island Jump - Building .rbxl file uses a position of -127, -3, 9.
Playtest
Once you are happy with your island's appearance, you can playtest your experience to check the scale of the island and how it feels in the context of your experience's 3D world.
To playtest your experience:
In the menu bar, click the Play button. Studio enters playtest mode.
Walk around the island and check out how it looks while playing. When you're done, navigate back to the menu bar and click the Stop button. Studio exits playtest mode.
In the next section of the tutorial, you will learn how to create a playable area for players to follow in order to reach the highest platform.