Creating Caves using Voxel Objects
From CryWiki
| ||||||||||||||
In this tutorial, we are going to use Voxel Objects (VO) to create a cave inside a hill.
Contents |
Prerequisites
- A map with a Hill
Setting up the Voxel Area
Firstly, place a VO over the desired area. Go to the rollup bar and select Misc→VoxelObject, and place a new VO in to your level. Since we want to go under terrain surface we need to tell the game s physics engine that we want to have a hole here. Open in the rollup bar, go to Terrain Holes and make a hole in the area where you want to make the entrance to your cave. Please note this is only a change in your heightmap, and not the VO.
|
Select VO and press Copy Terrain into Voxel button in the VO properties. The hole in the heightmap we painted earlier will be not visible anymore because the VO has covered over the original (hole-less) terrain sector. Here's what it looks like now:
Making the Cave
Now we can start making the cave. In the Rollup bar, open Terrain→Voxel Painter, and select brush type Subtract.
Make a cave by keeping the left mouse button pressed while moving on the area where the hole should be.
|
Changing the Material
In Brush settings, select Material from the Type dropdown box. Then select one of the 3D materials in the surface types box. Now you can paint on the voxel area using the left mouse button.
In the same way as cliff materials are used for usual terrain painting, materials that are painted on voxels should have 3 submaterials, one for each of the xyz axis. So as a base let's use the rock_mine material. Go to the material editor and select materials/voxel/rock_mine.
Make a new layer in the Terrain/Texture window.
Click on Edit Surface Types.
Make a new Type by pressing Add
Enter the materials editor and select your material.
Close the material editor and click on Pick Selected.
Now you can select the new voxel material in the surface types list of the voxel tool.











