Tutorial: Vertex Manipulation Part 2
Last edited 4 months ago2019-04-23 07:37:05 UTC by
- View Page
In this tutorial we are going to explore a more advanced application of vertex manipulation. If you haven't already, I suggest you read the Vertex Manipulation Intro tutorial first, so that you understand the basics of the tool.
Most beginners ignore vertex manipulation and use the simpler Carve and Clip etc. tools to alter solids. These are weak in comparison! Their major drawback is that they often result in sub-unit vertices. These are rounded-off when the map is compiled, resulting in strange problems. Take a look at this carved hole: Notice the annoying little black 'things' that radiate from the corners (vertices). Here's a section of the actual structure: The Snap to Grid is set to 1. So each intersection made by the grid lines is a single unit, the smallest point that you can work with in a map. The vertices you see in the red circle are meeting at some point between units. The game engine doesn't like this, so you get all kinds of mess-ups when it happens. And it happens often. Carving with complex shapes, careless clipping and rotating can all create sub-unit vertices.
So what's the answer? Well, vertex manipulation, of course! The thing said most often with regard to the vertex tool is 'be careful', but frankly, it's far easier to mess up with the other tools, and at least invalid shapes created by the vertex tool are detected by WorldCraft (Map -> Check for Problems). Altering vertices alone, it's impossible to get them onto sub-unit grid points (even with Snap to Grid off, the vertices will still snap to single units).
In this tutorial we're going to make an alternative to the cylinder carve I just showed you, that looks and works much better. This is just to give you an idea of what can be achieved with vertex manipulation - working out whether and how it should be used to solve other problems is up to you.
The first thing to note about the cylinder primitive is that all of its vertices will always land up on a grid unit (there are never any sub-unit vertices). Just don't resize the cylinder after you've created it.
Let's start with a 32w x 64l x 32h 8-sided cylinder. We're going to use it as a template around which we'll construct our tube. You could use any number of sides, but smaller, even numbers are easier to work with. You'll see why in a minute...
Making a Tube
Because we're making a tube, we need to create sides. Because we've got an even number of sides to our template cylinder, we only need to create one piece of the tube that we can then clone for the other sides.
Make sure you're in 1-unit grid mode (press [ until it goes no further). Zoom into one diagonal of the template, and build a block like so: It doesn't have to look exactly like that, because you are going to alter its shape in the next step...
Now, with the new block selected, go into vertex manipulation mode (Shift+V). Drag the top-right vertex across to the cylinder's vertex, and the top-left vertex down to the bottom-left one (and say 'Yes' when it asks you if you want to merge them). There are plenty of other ways to do this, as long as you end up with something like the picture below. Notice how the bottom-left vertex is in line with the furthest-left point of the cylinder: At this point you could shift-drag the manipulated solid, flip it and rotate it to fit into the other sides. In some situations this isn't the best idea, but it'll work in our case. The alternative is the shift-drag the manipulated solid, then go into vertex mode and move the vertices around so they complete the other sides. With tubes with even numbers of sides, you may be able to do one quarter of the tube, then select all of its solids and duplicate them, then flip them so they fit into the other quarters. You'll work out short-cuts as you go along.
Finally, delete the template cylinder, and add any extra blocks around the tube that you need. You'll land up with something like this: Which looks like this in 3D: Here is an alternative method for creating the tube, involving more vertices, but slightly simpler creation: Here's a 32-sided tube... And here's its carved alternative (ug!): And finally, a tube with an odd number of sides (5): It's important to realise that vertex manipulation can do pretty much anything - it's just not always the easiest way. There are times when you have to use it, there are times when it's the most efficient way, and there are times when using any other tool would just be silly. You need to learn when to use it as much as you need to learn how to use it. This tutorial has hopefully taught you some of the 'how', but it's impossible to explain the 'when' - there are an infinite number of possible situations in mapping. Armed with the understanding of the finite number of tools at your disposal, it's up to you to decide when to use what. Just bear in mind that the 'simple' tools, Carve, Clip, Hollow, Rotate, Shear, when used improperly, can cause far worse problems than vertex manipulation can when used improperly.
By the way, rotating solids using the Transform Tool (Ctrl+M) is far safer than rotating using the Selection Tool and manually rotating - it always snaps vertices to units. So that's one tool you can always trust!
The example map includes the set of tubes used in this tutorial, which you can experiment with. Just remember: if you can do it with clip, carve, hollow etc., you can do it better with vertex manipulation!
You must log in to post a comment.
You can login or register a new account.