Create a start tunnel for your level

From CryWiki

Create a start tunnel for your level
Jump to: navigation, search


About
Author Boebi
Skill Level Beginner
Compatibility All
Requirements Sandbox2
Date Added 30/06/2009
Last Modified 30/06/2009

Contents

Introduction

In this tutorial I will explain how to make a unaccesible tunnel. This can be used for the start of your map, or simply anywhere you want to fill some content in. This is part of a tutorial series, for more information feel free to visit this thread on Crymod.com:

Tutorial: Make a inaccessible tunnel

Alright let's start. I'm starting with a basic layout, just some clean terrain. Image:Tunnel tutorial-1.JPG

Let's make a simple hill to build our tunnel in. Go to the terrain tab in your Rollup Bar and select Modify. In the Type field choose Flatten. These are options I used, you can edit these as you which. I do suggest you use the same value for Inside radius as for Outside radius, and Hardness to 1. Image:Tunnel tutorial-2.jpg

This is how it should look like, again you are free to make this bigger, or smaller, or how you like it. Image:Tunnel tutorial-3.jpg

Now use the 'Smooth tool to just go over the egdes. This will actually divide the large faces into smaller ones, making future steps easier (making holes in the terrain). This are the settings I used:
Image:Tunnel tutorial-4.jpg

It should look something like this in the end. I didn't bother to do the rear of the hill as we won't be doing anything there, feel free to do it if you want. Image:Tunnel tutorial-5.jpg

Let's put together our tunnel. Click on Brush, and set the filter to tunnel. Then go to Library > Architecture > Multiplayer > roundtunnel Make sure you have the Snap to Grid turned on, I used 0.5 but you can finetune this as you personally wish.
Image:Tunnel tutorial-6.jpg

Now take these three tunnel parts on your map. Do not rotate them, they will perfectly fit in their default rotation!
roundtunnel_entrance_cap1
roundtunnel_entrance1
roundtunnel_40m_end1

The first 2 tunnel parts should be put "inside" each other, keep moving them untill the fit together. You might have to turn the Snap To Grid back off to finetune it. The last part will be put behind the other 2 ones, it should be easy to fit with the Snap to Grid turned on. You should have your tunnel looking like this:
Image:Tunnel tutorial-8.jpg
Image:Tunnel tutorial-9.jpg

Now select all three tunnel parts together, and rotate them as you wish. Move them into the mountain. I've got it looking like this:
Image:Tunnel tutorial-10.jpg

Alright, we can now start working away the terrain blocking our tunnel. In some cases you can do this all without using voxels, but I personally have only had it happen just once (in this tutorial as it happens). I'm going to explain the long way with voxels so you can always finish of your tunnel. To start place a voxel object over your mountain. Turn the Follow Terain on. Image:Tunnel tutorial-11.jpg
Select the voxel object in the rollup bar, it's under the Misc tab (unlike selected in the screenshot).
Image:Tunnel tutorial-12.jpg

Mouve it over your mountain and then pull it down into the ground, this is to make sure that all the terrain will be included.
Image:Tunnel tutorial-13.jpg

Select your voxel object and press the Copy Terrain into Voxel' button. This will litterally take a copy of the existing terrain so it can be edited later.
Image:Tunnel tutorial-14.jpg

But first we need to get rid of the original terrain, so for now we're going to turn the voxel visibility off. Go to the view tab in the rollup bar and select Voxels in the hide menu.
Image:Tunnel tutorial-16.jpg

Now we can get rid of the original terrain. Go back to the terrain tab in your rollup bar and click Make Hole.
Image:Tunnel tutorial-17.jpg

Make enough holes on the inside of your tunnel untill it gets rid of all the terrain. Even if you have a small egde left, get rid of it. Don't worry if there is also terrain missing outside your tunnel, we will fix that later by using the voxels. In rare cases you will be able to get rid of only the terrain you want to, and none outside your tunnel. In the picture here this is such a case:
Image:Tunnel tutorial-18.jpg

You will most likely be confronted with a tunnel looking something like this, with terrain missing outside the tunnel.
Image:Before.JPG

Don't worry, were going to fix that. If you have a perfect terrain, you can actually delete your voxel object and skip the rest of the tutorial untill we start placing the road. If you have terrain missing outside your tunnel we're going to fix that now, so let's first start by turning off the voxel hiding:
Image:Tunnel tutorial-19-.jpg

As you can see, your tunnel is filled with terrain again, it's the copy of the terrain we just made visible. Using voxels we can edit this terrain with much more flexibility than the normal terrain editing tools allow. This is also how caves, legdes, and other things are made. Select your Voxel Painter tool under the Terrain tab in your Rollup bar. Make sure the brush setting is set to Subtract. The other settings you can choose.
Image:Tunnel tutorial-20.jpg

Now comes the hard part, were going to create a "cave" around the tunnel, only removing the terrain inside the tunnel and not outside of it. This can sometimes be a little tricky. Hold the sphere over the middle of the tunnel, and hold your left mousebutton. Then slowly move your move upwards. You can see that the terrain is being "pushed" inside the tunnel. Remove all terrain by pushing it outside the tunnel. If you removed some terrain outside the tunnel, you can turn the voxel painter brush type back to Create, and "pull" the terrain back. Here is a picture in the middle of the terrain subtraction
Image:Tunnel tutorial-21.jpg

And here is the tunnel finished, with all the terrain "pushed" outside the tunnel:
Image:Tunnel tutorial-22.jpg

Congratulations! You have your tunnel and the hardest part is over. We're just going to finish it off by placing a gate so they player won't be able to get into the tunnel, and putting down a road. Go back to the Misc button in your rollup bar and select the road tool.
Image:Tunnel tutorial-23.jpg

Here are the settings I used for the road tool:
Image:Tunnel tutorial-24.jpg

Move the road into the tunnel so it fits nicely.
Image:Tunnel tutorial-25.jpg

It still looks gray, so we're going to put a material on it. Hit M on your keybord and it will open the material editor. Keep your road selected. In the material editor go to 'Materials > Terrain > Roads > concrete_driven_on_brighter.
Image:Tunnel tutorial-26.jpg

Press the little button to assign the material to your road. Image:Tunnel tutorial-27.jpg

Tadaa! We have a nice looking road. You might have to increase the Width property on your road to fit the tunnel, I had to set it to around 10.50. You can also use a different road material if you like to. We're now going to finish it off by placing a gate. Go back to your Brush button in the rollup bar and again filter for tunnel. Then go back to Library > Architecture > Multiplayer > roundtunnel and select the roundtunnel_gate brush.
Image:Tunnel tutorial-29.jpg

Now rotate it around and move it untill it fits in your tunnel. There you go, you just have finished the tutorial. I hope you enjoyed it, and most of all, have learned something from this. If you need anymore help feel free to ask on the talk page of this article.
Image:Tunnel tutorial-30.jpg

Other usefull links

- More help on how to use voxels: Creating_Caves_using_Voxel_Objects
- More help on how to use the Road Tool: Sandbox_Roadtool

Personal tools