Making caves with Voxels

In this recipe, we will explore the basic uses of the Voxel object and how you can create caves in the cliff sides of your terrain.

Getting ready

  • Before we begin, you must have Sandbox 3 open
  • Then open My_Level.cry
  • Adjust a section of your Heightmap, so that you have a mountain side to make a cave from
  • Complete Terrain Texture Setup and paint the mountain side

How to do it...

  1. From the RollupBar, open the Objects tab.
  2. Click the Misc button.
  3. Select VoxelObject.
  4. Place the VoxelObject a little towards the side of the mountain, as seen in the following screenshot:
    How to do it...

    Note

    DO NOT rotate or scale the Voxel object.

  5. Select the Voxel object and click Copy Terrain into Voxel.

This has now copied the shape of your terrain into the Voxel. You may not see the differences yet, but we will now cut a hole into the mountain using the Voxel Painter to create a cave:

  1. Go to the Terrain tab in the RollupBar.
  2. Select Voxel Painter.
  3. Select Soft Subtract.
  4. Set your Brush Radius to 15.
  5. Click once around the centre of the Voxel surface.

Again, you may not see anything different, but that is because there are still two layers rendering (Terrain and Voxel). We will now cut holes into the Terrain, so we can see the Voxel cave that is forming:

  1. Go to the Terrain tab in the RollupBar.
  2. Select Holes.
  3. Select Make Hole.
  4. Increase your Brush Size to a reasonable size (1/4).
  5. Make a hole around the same area as your Voxel (be sure not to cut holes outside of the Voxel object).

    Note

    If the Terrain tiles are too large for the holes that are created, increase the tile resolution from the Layer Painter.

  6. Go back to the Voxel Painter and continue subtracting the Voxel.

A cave like the following should begin to appear:

How to do it...

How it works...

The Voxel tool is a very powerful tool that allows the designers to create caves or even some extrusions from the terrain surface without requiring an artist to create new assets.

There's more...

Enhance the Voxel using the following options.

Soft Create

Soft Create extrudes the triangles of the Voxel instead of bevelling them inside.

Material

This allows the designer to paint the materials from the Terrain Layer Painter into the Voxel.

Copy Terrain

Painting with this brush restores the Voxel to the Terrain's original position.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.134.130