Greetings!

Welcome to Scifi-Meshes.com! Click one of these buttons to join in on the fun.

Local TutorialBlender For the Faint Hearted - 09 : Practical Examples - The Gun, part 1

SphynxSphynx195 Posts: 461Member
edited January 2015 in Tutorials #1
Blending for the faint hearted - Sphynx's guide to Blending

Tutorial 9: Practical Examples - The Gun, part 1a

This tutorial is the first of several that are connected with pulling together the functions and features of Blender, along with general 3D principles that are shown in 'Blender for the Faint Hearted', tutorials 1 to 8. Because of the audience nature, I've deliberately put together a Sci-Fi oriented practical example that incorporates both Blender features and techniques for creating sci-fi oriented meshes and images that are often requested and available for other 3D applications.

In this tutorial, we'll also look at some modelling techniques and strategies. You may look at the way in which we create a mesh for example and think, ?I could have done it easier than that!?. Well, you probably could - but if we only do it the easiest way each time, we don't get to learn the modelling techniques that could be the best, most efficient way to do something else. So bear with me.

This set of practical examples will therefore pull together the features from the eight tutorials; show additional tricks and minor functions and features that are really not deserving of their own full tutorial; but also demonstrate the following more general techniques:
  1. Practical examples of UV mapped textures
  2. Armour plate, hull panel and deck plate creation
  3. General heat and energy glow
  4. Creation of specific intersecting mesh structures, such as Windows, vents and portals

The Brief
The brief for this scene is a wide open plain, potentially a grassland but which could be modified to suite the individual, with a chain of mountains to break up the division between the ground and the sky. In actual fact, we'll probably leave this backdrop to a suitable stock-photo rather than try to model and incorporate terrain on that scale.

In the forground however, is a design for a gun-emplacement that I made some time ago and never used. The emplacement is about 12 storeys tall and pretty much the shape of a 9mm bullet, about 15-25m in radius. It is dropped from orbit, to 'spin' through the atmosphere and slow its descent just before touch-down. Using the remnants of its gravitational drop and 'drilling' motion, it buries itself up to the neck so that only the shallow dome-shaped rear end is visible above the surface.

Finally this dome raises itself up out of the back of the emplacement on a neck, to display two heavy weapons just beneath the dome. From a distance therefore, it is a very low visibliliy heavy gun-emplacement designed mainly for wide-open spaces - such as tank territory. From the top, it is hardly visible at all due to its heaviliy armoured and camoflagued casing.

For now, we are going to assume that our initial sketches have been accepted, and we are going to duplicate the side-on view of a concept painting that has been put together. In a later practical, after we have learned a few more of Blender's functions, we'll do some animating.

Unless you have got something very specific in you head (and probably not even then), I would not recomend the casual or beginner to just sit down and start to mesh model. The problem is not getting it wrong, as most modellers will do that regardless of how much preparation they make, but more importantly the psychological impact that getting it wrong can have if you don't really know where you are going in the first place. You could just give up the entire thing rather than try again.

Before begining, do some sketches to fix you ideas. You don't have to go as far as a full brief, just put together some sketches that fit what you are aiming at. Then if things do go wrong, you have something to refer to that can keep you on track.

If it's a big project, then you could benefit by acting like a client and modeller in one package. Put together all of you ideas then set them aside for a day or two. Then pick them up and give them a serious critique. Will it work, is it really possible, do I really like the design? Do this a few times if you have to - I am a bit of an extremist on this, and some of my personal designs can sit in my folder for months or years before I finally get around to building them. If it is still all OK, even if you need to make some changes, then put you modelling hat back on and start work.

The Basic Modelling
Before we do any building, we need to make a list of the basic model components that we need to build. Some of the models may be made out of several separate meshes, and I have grouped these according to what I could see being animated in the future, or which would be logically separated due to size or general use. You may come up with a different list, but try these for now. If you are particularly new to 3D, try to duplicate this practical tutorial in totallity, then branch out on your own.
  1. The ground plane
  2. The ground level gun emplacement (what is seen, anyway)
  3. The neck of the emplacement
  4. The dome of the 'mushroom'
  5. Each gun
  6. The gun articulation

I am a modeller who like things to 'work', but for the most part I am going to try and avoid going into this much detail for this scene. We will therefore try and accept that some components do work, and that we don't really need to know how. We will therefore try to build the external appearance of the meshes only, building the internals only where we think that some sort of motion in the future will reveal them. Even then, we may leave those internals as blanks and model them only at the point at which we need to.

Basic Blender Layout and Strategy
For my development, I am going to use the standard four-window layout that I described in the first few tutorials, because that it what I am used to and what I can fit comfortably on my screen - I am one of the lucky ones, and get to use a 20inch TFT. You may not be so lucky to have a big screen however, so as an alternative you may be happier with the two-window layout - one in each half of the screen, left and right, with the buttons window along the bottom. At the end of the day, you really only need a minimum of two windows (two views, flicked back and forth on one window at a push) for perfect positioning of points in 3D space. In fact some operations, once you have positioned a selection in one plane, sees most of the rest of its editing in the other. A good example of this can be seen when we build our ground plane.

As long as you have at least two windows, you can jump back and forth between views in one window to check things, keeping the other fixed as a good reference point and for modelling.

As a general strategy on layers, I am going to use the first five layers (1 to 5 on the top row) as my scene building layers. All of the lights, cameras and meshes involved in the scene that will be rendered will be in here, and probably only in the first couple of layers. I have mentally assigned 5 for the moment however, so that I can try alternatives by turning on and off layers with the different alternatives in place and render them up without totally disrupting the scene each time.

I am going to mesh model starting in the last layer (20, on the second row), moving in backwards if I need to temporarily use layers to store mesh components. Typically I use the last layer on the first row (10) moving backwards towards 5 to temporarily store completed meshes that are not yet being use.

As I have said before, you will develop you own system, but this is the one that I am now used to.

Ground plane
One of the golden rules that we will use time and time again - especially when we get onto building windows and portals - is to not make your own life hard when you don't have to.

For now, we are going to create our ground plane out of one big square. In the centre however, we need to cut a hole to represent where the gun emplacement is going to go. We need to do this as part of the gun emplacement is below the surface and we might be able to see inside - if the ground plane were just flat, we would have part of the plane going through the gun emplacement. At the same time however, we also want a reasonably sized area around the gun emplacement separate from the ground plane itself. This is because the gun has buried itself with some force. After an impact like that, the ground around the immediate area of the gun is no longer going to be flat and may not have the same ground covering as normal at all. At present we may not do anything with it, but we want it there anyway just in case.

We are therefore going have a shape something like this:

sb009_040.jpg
Image: General polygon layout

So how to do we create this shape? Blender philosophy is to model around holes; my learned philosophy over the years is to drill holes. The important thing is, do what's easiest for the job at hand.

Logically, we could start with a big square, cut a circle in the centre where we want the gun to be, then create a border within the circle to account for the disrupted ground. The thing is, that circles within squares are usually constructed by linking each corner of the square to about one-quarter of the circle's vertices to form a series of long faces. In this case however, the square is very much larger than the circle. As a result, we would have very long thin faces - and 3D applications don't really like those, so avoid them whenever you can (they are also a pain to actually manage and model if you need to revise them). As a result, follow this process - stop and understand each of the following step as we are doing it.

Practical 1: Creating the ground plane
Before doing anything else, turn on lock-to-grid in your configuration settings. Remember that to do this, drag your main menu bar down then go into [View & Controls]. Turn on [Grab/Move] in the 'Snap to grid' area. That will make positioning of our meshes much simpler.

sb009_001.jpg
Image: Snap to grid

Add a simple plane to the scene (remember that we were going to work in layer 20), ensuring that its centre is at (0,0,0). Instantly, we only need to work in one view (the top) as the vertical orientation is set to ground level and this mesh is otherwise flat. Make the plane 60m along each edge, using the [n] to specify the co-ordinates if needed (remember, if its 60m along an edge each point will be at 30m and -30m positions in their appropriate X and Y locations). Note: Actually position the vertices at these points - don't just create a 1m plane and size it - this time we really want their positions at these points.

Tip: An alternate method of doing this is to zoom out a bit till you think that you could get 30m in your window, grab all of the points then hit and drag your mouse with the [ctrl] key pressed down. This will scale in nice 0.1 increments. Drag it out till the scale reads 30.0. If you don't quite have the room, do what I did in two stages - I scaled to 10.0, zoomed out then scaled by 3 (10 x 3 = 30m). You can always hit [n] on one of your points, just to make sure that you got it right.

Next, switch to face select mode and grab the plane. Hit [e] to extrude it, [esc] to abort the automatic grab mode, then to place it into scale mode - move your pointer with the [ctrl] button pressed to limit movement to 0.1 at a time, and scale the face down to 0.8 of its original size - this will put the new vertices at 24m co-ordinates, giving a 48m square face - which is close enough for what we want. Finally for this section, grab each of the original vertices around the edge of the big square and scale them up in all directions. I scaled them by a factor of 10.0, giving us an outer size of a 1.2km square.

sb009_002.jpg sb009_003.jpg sb009_004.jpg
Image: Creating the ground plane (1)
Image: Creating the ground plane (2)
Image: Creating the ground plane (3)

Time to think: What have we now got, and why? Well, this shape obeys the rule we set down earlier about not making it hard on ourselves. While it took a little bit more work to get here, we now have a large 1km+ square ground plane, with a 60m wide square in the centre. What this means is two things:
  1. When we come to cut out circular hole, we don't need to be trying to deal with vertices a huge distance apart, thus making us move around in 3D space a lot just to perform vertex selection; and more importantly,
  2. When we cut our hole, the faces are going to be formed by relatively close vertex connections - not a connection to a far distant point and therefore forming a very long, thin face.

There is only one thing more that we need to do - because we have just extruded a flat plane, Blender has assumed that we were going to make it 3D. As a result, it made the four faces around the central face, but it also created a 'back face'. Imagine this like Blender creating a cube for us, out of a single plane extrusion - a cube has sides, a top and a bottom. But we've kept it all flat - we havn't used the 3rd dimension that Blender created for use - as a result, we need to get rid of this bottom as two faces occupying the same physical space like this will negate each other when displaying and rendering. Use [Tab] to jump into object mode. Did your ground plane disappear? If it did, its because we have a big face in there negating the visibility of all of the others.

To delete it, jump back to editing mode using [Tab], and switch to face select mode. Click the handle right in the middle of the ground plane (you may not see it because of the mesh's pink origin spot, but its there), and click it. First time around, you may get the smaller central square. We want to keep that one, so click in the same spot again - if Blender sees two handles in the same place, it will rotate through them each time you click. The next click should select one big square covering our entire ground plane. Got it? Good. Delete it (remembering to select [Faces] from the confirmation menu, and not [All]).

Hit [Tab] again and we should see the pink outline of our ground plane.

Next, we need to cut the circle. In this case, we are going to do the outer circle as it will be that one that is directly connected to the square ground plane. The basic idea is to get a set of vertices where we want the circle to be. As the ground plane is flat, the easiest way to do this is to just create a circle primitive in the centre of the square.

There are two ways to add more points (in the form of primitives in a mesh). We'll do both so that you can see them. Go to object mode, so that you see your ground plane as a pink outline, then create a new primitive circle. Adding a mesh in object mode will create a whole new mesh, with its own origin. When creating the circle, change the default segments to 96 (the maximum is 100) and scale it to be about 40m across (20m in diameter). We need this number of vertices as the circle is going to be quite large and segmentation might be a problem when we render. You could get away with half this number if you want to just follow this tutorial for learning - if you want to get a good mesh at the end, stick to 96.

sb009_005.jpg
Image: Scaling the circle

If you don't see the circle when you have created it, remember that you are probably zoomed all the way out to see a 1.2km square - you will probably have to zoom back in again to see the circle. One thing to remember, is that the circle is just vertices and edges - no face will be created, which suits us fine. Also, if you are in face select mode, guess what - you also won't see it. Switch to vertex select mode.

Tip: Remember that a circle is created so that the points at the 45' mark are on the (1,1,1) co-ordinates so the actual radius of the circle is going to be about 1.4m. The easiest way to get this to our 20m radius requirement is to scale the entire circle by about 1.4 to get it to about 2m (1.4 x 1.4 = about 2), then again by 10. If its not perfect, just zoom in on a point on one of the axis (remember, only points on an axis will give you a true 'by-eye' radius estimate) and scale freely until its close - we don't really need to be exact.

Make sure that you are in object select mode, select everything using [a] and hit [ctrl-j]. This is the keyboard shortcut that joins meshes together. Once you've confirmed that this is what you want to do, everything on the screen will change to one colour. Hit [Tab] to go into edit mode, and you will see both the square that we created earlier, and the circle. This then, is the first method to add points - create the new primitve as a separate mesh, then join it to the first. In actual fact, because of the scaling that we needed to do with the circle, this was probably the best way for this type of addition.

Zoom in so that the inner square and the circle fill your window. Switch to face select mode and select the face that forms the inner square. Delete it.

Tip: If you delete any face where the vertices are ONLY within that face, then those vertices will be deleted as well. Similarly, if you delete vertices, all of the edges and faces that those vertices belong to will be deleted as well. This is doubly important when you start to manually create larger faces over areas that were originally made up of lots of faces that you no longer want (ie. You are rationalising the face pattern). If you delete all of the small, unecessary faces in one go to clean up then you will probably end up deleting all of your newly created faces as well. If you want to do this, select smaller numbers of unconnected faces at a time, deleting them in batches so that the vertices are still attached to existing faces - you are much less likely to delete faces that you do want.

In this case however, we won't lose the points that form the square. The reason is that they also belong to the faces that form the outer square as well. Now we have a series of points that we can use to form our central circles, floating in an empty space in the centre of the ground plane. Go into edit mode using [Tab], into vertex select mode, and make sure that nothing is currently selected.

We now need to select three points at a time - one of the corner points of the square, and two of the inner points that will form the circle - remember to use [shift] to select more than one point at a time. When you have three selected, press [f] to create a face. Select the next three in turn and repeat. Repeat the process for all of the faces in the diagram below. We have four identical quadrants to this circle, so there is no point in doing more work than necessary - we'll just copy them.

sb009_006.jpg sb009_007.jpg sb009_008.jpg
Image: Joining the circle to the ground plane (1)
Image: Joining the circle to the ground plane (2)
Image: Joining the circle to the ground plane (3)

Make sure that the focus of any transformations is the 3D cursor (either select it from the menu, or hit [.]), positioned at 0,0,0 then go into [face select mode], select all of our new faces and hit [shift-d]. They will be copied, placed in to exactly the same position in space and placed into grab mode. Immediately hit [esc] to cancel grab mode, then [r] to go into rotate - this is why we needed the cursor to be the centre of the transformation. Hold down [ctrl] to restrict rotation to 15' increments and rotate the shape around into the next quadrant. Copy and rotate this shape twice more to totally fill up the gap.

sb009_009.jpg sb009_010.jpg sb009_011.jpg
Image: Joining the circle to the ground plane (4)
Image: Joining the circle to the ground plane (5)
Image: Joining the circle to the ground plane (6)

When it is all finished, enter vertex select mode and hit [a] to select all of the vertices in the mesh then hit [w] to bring up the specials menu. If you've been following the tutorials, then so far we have actually done nothing new - we are just finally implementing it for real. On this specials menu, select [Remove Doubles] - Blender will tell you how many doubled vertices were removed. What has effectively happened, is that all of the seperate shapes that made up our mesh have now been merged into one. Press [Tab] so that it only displays the pink-outline of the mesh, and you should see that we now have a big square with a circle cut out of the middle.

sb009_012.jpg sb009_013.jpg
Image: Removing doubles
Image: The resulting ground plane

Let's reduce the strain on the eyes however, and visually at least cut the number of faces being displayed when editing. Drop back to edit mode, into face select, and select everything using [a]. Now press [f]. This time, we have a whole load of faces selected, and not a few points - Blender knows this and realises that you want to do something different. It knows that you want to create a f-gon, so displays the appropriate menu. Click [Make]. Did Blender complain?

The reason for this, is that an f-gon can not be created if there are points within the face. We can create f-gons that go around holes, but not where there is a vertex in the middle of an otherwise solid plane. We still want to do some tidying up however, so we'll create two f-gons instead.

Deselect everything, then select all of the faces that make up the inner square and hole - the easiest way is to use [ b ] and drag the selector over all of these inner faces. When they are selected, hit [f] and [Make] to make them into one virtual face. Zoom out, and select only the four faces that make up the outer square - hit [f] and [Make] to make these into one virtual face. The other faces are still there, just hidden. This is going to make it much easier on our eyes when we do any editing.

sb009_014.jpg sb009_015.jpg
Image: Tidying the ground plane / f-gons (1)
Image: Tidying the ground plane / f-gons (2)

To create the inner circle, we need to add a new circle primitive. This time, we are going to add the points directly to our existing mesh to show you the difference. Start by selecting the ground plane and entering edit mode, then hit [Space] and select the [Add] menu. You'll notice that the other options have disappeared - Blender knows that the only thing that it can add to a standard polygon-type mesh are more primitives. Add a circle in the same way as before - once created, all of the new points will be selected. We want this circle to be smaller than the last, so scale it by about 10. That gets it to within spitting distance of the 15m radius that we want - from here, zoom in and tweak the scale a little more so it is almost (or even exactly...) on the 15m radius mark.

The advantage of doing it this way, is that the new vertices go straight into the mesh - we don't have to think about joining the meshes afterwards. The disadvantage of doing it this way, is that we have to be damn sure about which vertices are selected - deselect any, and it can be a bit of a pain selecting them again, especially if they are in close proximity to an already established vertex.

sb009_016.jpg sb009_017.jpg sb009_018.jpg
Image: Creating the inner circle (1)
Image: Creating the inner circle (2)
Image: Creating the inner circle (3)

Now zoom in to one side of the circle, so that you can see a series of vertices in both the inner and outer circles pretty well. Select the four vertices shown in the diagram below, then press [f] to make them into a face. Repeat with the next four points, and so on, until we have a quarter of the circle done. We now need to repeat what we did eariler - select all of the faces that we just created using face select mode, copy them using [shift-d], hit [esc] and [r] to enter rotation, and rotate them with the [ctrl] key held down around 90'. Repeat this process twice more to create the entire band. Switch back to vertex selection mode and press [a] to select everything, [w] to enter the specials menu, and select [Remove Doubles] to combine everything into one. Press [Tab] so that it only displays the pink-outline of the mesh, and you should see that the big square still has a circle cut out of it, but the circle has now shrunk a bit.

So why did we create the ground plane in this way? There are other methods to create the face system that we just created in the ground plane, but this was a learning experience. You now know how to create faces between existing points; you know the basics of creating irregular holes in faces - simplistically this time, but we will build on it later when we create windows and doors. You know how to save time and energy in creating repeating face patterns and copying them elsewhere to fill the hole; and you also know the basics of creating bands of circular faces - sometimes very useful when adding thickness to objects (such as between two tubes). In fact there are a lot of little mesh creation principles that we used in this last, extremely simple exercise that will crop up again and again in your mesh building.

Strategies in naming materials and objects
I am a programmer - and as such, I am used to naming conventions for 'objects'. Not only to keep things orderly, but also to make sure that you can find things again quickly. A scene is relatively straight forward when you only have a few meshes and a few materials, but these numbers can grow quickly - so it is a great advantage to start an orderly naming convention right from the start.

The main system that I use to name meshes and materials is by using a prefix followed by a separator character, usually either the underscore '_' or period '.', followed by an increasingly accurate name for the component or subcomponent to which it refers. Recently I have been using the period more and more, as it is simply visually smaller and uses less room in Blender's limited display space for datablock names.

Select the ground plane and go to the editing panel (F9). Time to name our first mesh. I am going to name mine 'GP.Basic' for 'Ground Plane' and 'Basic Version'. In this case, 'GP' is going to be our key, so in this same pane of buttons, change the ME name to 'GP.Basic' as well. Now go to the Shaders panel (F5), and add a new material to the ME. Call the new material 'GP.Grassland' - it won't look like a grassland for now, but we are planning for the future. If you want, change the colour and specularity to a matte shade of green - just don't make it distracting. We are not going to do any materials till later, so it's not important right now.

When you are finished, select the object, press [m] and move it to layer 10 (the last one on the top row). There is our first mesh placed into storage.
Continued...

Copyright (c) 2006, Craig Robinson ("Sphynx")
Permission has been granted for inclusion only on www.scifi-meshes.com and www.industrial-meshes.com
Post edited by Sphynx on
Tagged:

Posts

  • SphynxSphynx195 Posts: 461Member
    Blending for the faint hearted - Sphynx's guide to Blending

    Tutorial 9: Practical Examples- The Gun, part 1b



    Ground level gun emplacement
    Another golden rule is don't build more than you need to. If you intent to use a model for lots of things, or you don't know what you are going to use it for, that rule may go out the window. In this case however, we are going to follow it. We don't need the full drop-container of the gun emplacement - we just need the bit that shows above ground.

    The easiest way to build this is going to be a spin, in much the same way that we built the wine glass in an earlier tutorial. There is not really much to this, so just create a 13 sided circle in the front 3D view, ensuring that it is exactly on 0 (which it will be, if you kept your 3D cursor at 0,0,0).

    To start with, position the points as in the diagram below. I've added x and z co-ordinates to the image, as it is not easy to read by just matching up the grid. I've already worked out this pattern for you - if you were doing this yourself, use a higher number of points in your circle, place them, then either delete the excess or merge them into an existing point. You could do that by snapping your cursor to a point, selecting all of the excess points and the correctly placed one at the cursor; then hit [w] for the specials menu, and then the [Merge] menu item. Select [At cursor], and your excess points will merge into one.

    sb009_019.jpg
    Image: Coordinates for the gun base

    I have deliberately chosen only this simple shape, as we can now use the knife tool to add some details before we spin.

    The knife tool simply cuts an edge into two pieces, creating a new vertex in the process. You need to select an edge first, then hit [Space] and choose [Edit] > [Edges] > [Knife Subdivide]. Personally, I always use the shortcut [shift+k]. There are two modes in which we can use the knife tool - Exact Line or Midpoint - and you will get a requester asking which you want to use each time you activate the tool. The difference between the two is simple - to use the tool, just hold down the mouse-button and drag the mousepointer over the edge that you wish to cut. If you are in Exact Line mode, the cut will occur exactly where you drew the line. If in Midpoint mode, the division will take place in exactly the mid-point of the edge(s) that you selected, regardless of where you actually crossed the edge.

    Note the plural here - you can select more than one edge, and draw lines over as many as you need to. Just hit [esc] to abort, or [return] to accept where you drew the line(s) and the new vertex will be created.

    I'm going to show you how to create one of the details that I'd like in this spin-template, then pictures of the rest. You add the other ones yourself using the method shown.

    I chose the outside incline of the emplacement and selected the edge. Hit [shift+k] to start the knife tool, and use Midpoint mode. I drew a line over the edge and hit return to commit the tool - hence, a new point in the middle of the edge. I left both of the new edges selected and started the tool again - this time I hit them both to get four new equally divided edges. I selected the bottom most edge and second from top, then hit [e] to extrude - choosing only to extrude [Only Edges] when prompted. I hit [x] to restrict my movement to the x dimension, then dragged them 'inwards' a short way and committed the extrusion by clicking the mouse.

    sb009_020.jpg sb009_021.jpg sb009_022.jpg sb009_023.jpg sb009_024.jpg sb009_025.jpg
    Image: Cutting some details (1)
    Image: Cutting some details (2)
    Image: Cutting some details (3)
    Image: Cutting some details (4)
    Image: Cutting some details (5)
    Image: Cutting some details (6)

    As an extrusion creates faces that I don't want, I used the edge selection mode to select the outside edges of the new faces and deleted them (remember to choose [Edges] only when doing that). As the face was 'broken' by that act, the face disappeared along with the edge but left the other three edges safe.

    The rest of the details that will ultimately become 'ridges' and 'grooves' once I spin the template are seen below. Create these ones yourself - note that some of them use Midpoint and some Exact Line. In the latter case, you don't have to be too precise.

    sb009_026.jpg sb009_027.jpg sb009_028.jpg
    Image: The other required details (1)
    Image: The other required details (2)
    Image: The other required details (3)

    Once you have the detailing in that you want, make sure that your cursor is back at (0,0,0) and we'll do the spin. Also make sure that the cursor is selected as the pivot point - remember that the short cut for this is just to hit the period [.] key.

    Select the template that we have just created, [Tab] to edit mode if you are not already there and select all vertices using [a] in vertex select mode. Go into the Editing panel (F9), ensure that [Degr] is set to 360 and [Steps] is set to 96 - we don't want any segmentation if we can help it. If your PC is not so powerful however, halve the number - 96 steps is going to generate a lot of vertices and faces.

    Finally, select [Spin]. If you have more than one 3D view open (which I do), you'll need to select the top-view window but then the spin is performed. Hit [a] again till all vertices are selected - if you remember, there are a couple of things that we need to do. First, press [ctrl-n] to recalculate the normals. Next, press [w] and select [Remove Doubles] to join up the two ends of the spin.

    sb009_029.jpg
    Image: The spun gun base

    Press [Tab] to go back to object mode, and select [Set Smooth] - this is a disc, after all. Now if you hit [z] to see the emplacement in a solid mode, you'll notice that it looks a mess. Don't worry however - we have just set the entire thing to smooth and it will all run together like a 1950's B-movie flying saucer. We are going to tidy up again right now.

    Tidying up the gun base
    The best way to do what we are going to do is to make a window into a three-quarter view and move it around until you can see a bit of all of the mesh from the outside to the centre - just as I've done in the image. We'll need to adjust the view and maybe zoom in a little to do some things, but this is a good start.

    sb009_030.jpg
    Image: A better view of the work piece

    We'll do the example on a clearer part of this view, then you can do the rest yourself. Once you are in edit mode, you can select using any of the methods - vertex, edge or face - but I prefer to do this in face mode. Hit [shift+r], and this will enter [Face Loop Select] (alt-b enteres vertex loop select). Move your mouse roughly into the location of the crossing point between two of the faces shown below - keep moving the mouse around a little until the yellow lines clearly delineate a set of faces revolving around the mesh.

    sb009_032.jpg sb009_031.jpg
    Image: Loop-selecting faces (1)
    Image: Loop-selecting faces (2)

    When they are highlighted, click your mouse or hit [return] to select them. We are going to do two things with these full-rotation selections. First, we are going ot hit [y] to split them out of the smoothing calculation. Together, they will still be smoothed but not in conjunction with the faces around them. Next, if the particular set of faces are all flat (as they are in this case), we are also going to hit [f] and opt to make an f-gon. The only reason that we are going to do this is to cut down on the number of faces that are being displayed visually and help us while designing the meshes. Now its your turn - do the rest.

    A tip: Use a strategy to do this. If you have three rows of faces, you only actually need to loop select one set - the middle ones. Simply by definition, if you split that row off it also splits the two others from itself at the same time. You don't need to select and split off all three sets. The only time that you would need to do this, is if all three sets were flat and we were also going to make them into f-gons. If you have a series of these sets therefore, you only need to select every other set.

    My strategy to finally get the image of mesh show below, was to only go through the sets of flat faces. In fact, as I am familiar with doing this I actually selected all of these separate loops together, then hit [y] and [f] only once - Blender is intelligent enough to know how to create f-gons for several sets of faces at once.

    sb009_033.jpg
    Image: Flat planes converted to f-gons

    The final thing that we can do is to get rid of some faces that we don't need - namely the very top and the very bottom - neither of which are ever going ot be rendered. As we spun this template with 96 steps, that means that deleting these faces will save us 192 faces.

    Tip: The easiest way to select them is to go into front or side mode and use [ b ] to box-select the entire bottom line and top line, then delete them.

    Name and material
    Now in object mode, I changed the name of the mesh and ME to 'GE.Base', then created a single new material for it called 'GE.HullMetal'. In my case, I made it a very pale grey-yellow colour - I can always change it later, but this may be the base colour for what I want anyway. After that, I moved it to the storage layer. That's two basic meshes done.

    Neck of the mushroom & the Mushroom
    I am going to leave you to do these as they use exactly the same principles as those we have just used for the gun base. Build them using the guide pictures below. There are several ways to build them: the neck I built using a simple plane, then deleted edges that I did not need after knife cuts; the cap I built using pretty much the same method as the base.

    sb009_034.jpg
    Image: Neck data

    Notice, that all of the co-ordinates that I have supplied are given from (0,0,0), and not from the mesh origins. Move your points after you go into edit mode so that your origins stay at (0,0,0) - we want all of them to be at the same place for this scene. I have also just put the major co-ordinates in for the cap - you can work on the detailing yourself.

    sb009_035.jpg sb009_036.jpg sb009_037.jpg sb009_038.jpg
    Image: Spinning the 'mushroom' shield
    Image: Mushroom details (1)
    Image: Mushroom details (2)
    Image: Mushroom details (3)

    When you have your meshes, call the neck mesh and ME block 'GE.Neck' and the mushroom 'GE.Cap'. Assign them both the 'GE.HullMetal' material for now - they are all made of the same metal.

    A test lighting rig
    The last thing that we will do in this tutorial is build a very quick a dirty lighting rig. We are not even going to go so far as to create a three-lamp rig this time. This is not going to be our final rig, so we'll build it in layer 3. In the final scene, we are not even going to be looking from the same angle, let alone use this rig. This is just so that we can take a look at what we are bulding.

    Add a single Hemi light to the top view and move it out to x/y/z of (30, 30, 50). Call it 'Test.Hemi' and set its distance to 50 and its energy to 0.9.

    We're going to take a quick look at a new panel now, called [Object] using shortcut [F7] but we'll cover it in more detail in a future tutorial. In the constraints panel, select the [Add Constraint] drop-down menu and select [Track To]. Once this displays some settings, change [Target] to 'GE.Base', click the [-Z] button labeled [To:], and the [Y] button labeled [Up]. What we have done here is lock the lamp into always pointing at the origin of the GE.Base mesh so that we don't need to calculate the angles ourselves. If we move the lamp, it will automatically track to the same place. In practice, you would normally track to an [empty] object so that you could move the empty without disrupting the scene.

    Finally the camera - change it's position to (20, -40, 15) and set up a constraint in exactly the same way that we did for the lamp.

    If you want to try a test render, make sure that you have layers 1, 3 and 10 selected. You'll notice that there are some harsh edged shadows in there but it is generally a constantly lit scene - that's fine as it helps with what we want to see. We want to see those detailing lines - there is no point in putting together a test lighting rig if all it is going to do is wash out the detail that we are trying to design. We can refine this rig a great deal - but as we have not done the lighting tutorial, we'll leave that for now.

    sb009_039.jpg
    Image: The completed gun-emplacement structure

    What's in Tutorial 10?
    Now that we have built the base meshes for the gun emplacement, we are going to add some detailing to it. We are going to look at both hull plating techniques, and at the methods in which we can cut various shapes into our existing faces to add windows and doors.

    We'll deal with the guns in Tutorial 11.


    Copyright (c) 2006, Craig Robinson ("Sphynx")
    Permission has been granted for inclusion only on www.scifi-meshes.com and www.industrial-meshes.com
  • tetsujintetsujin0 Posts: 0Member
    One suggestion I'd like to add is that before you get into the instructions on how to make this gun emplacement, that you provide a picture of the finished thing. (If that's not something that will be ready until you're done with the next section or two, then perhaps you can add it in to this section later) The textual description is good, but it'd be nice to see exactly where this is going.
  • Corbin DallasCorbin Dallas0 Posts: 0Member
    Nice Tut. May I point out that you have duplicated two images?

    "Flat planes converted to f-gons" and "spinning the neck (1)" are the same image.

    Great stuff, though. Really. As a matter of fact, I would dispense with the polls. This is some of the best Blender tutorial material on the web. And believe me, I've looked...
  • SphynxSphynx195 Posts: 461Member
    @Tetsujin: Actually, this tutorial is a 're-print' of the original version that was on this site some time ago, lifted from Industrial-Meshes.com. As it turns out, the full image was never rendered, and the blend file has gone walkabout. A version of the gun will be reproduced, but I'm under it at present and finding time to rebuild it all (with the pieces that will be seen in the next tutorials) is proving difficult.

    I'm trying to find the original concept sketch instead however - I don't really want to show too much of the finished image, as it also shows things on the gun that I want to deal with in subsequent tutorials.


    @Corbin: Yep - I just copied all of the image locations across from the other site, and it's now clear that the duplicate has been in there since the start. Saying that however, all of the images are consecutively numbered, so it looks like that's an extra image rather than a duplicate - thanks for pointing it out.

    On the Poll issue, that was standard thing that I was going to put into all of the tutorials anyway - mainly to get feedback on a general level. I agree however, that for a series of this length it is probably not worth it - they will become more useful as I do some tutorials on other applications however, that we don't see much of on the site.
  • walkercreationswalkercreations0 Posts: 0Member
    I know this appears to be an old thread and I apologize for bumping it, but have the rest of the tutorial parts from 10 on been posted? I would love to see this tutorial to the end.

    Peter Walker
    Internet Home of walkercreations
  • strangemanstrangeman0 Posts: 0Member
    No, Sphynx wrote those tutorials regulary but he have his own life ;) Give him some time :)

    PS: This tut is really great :)
  • dedalusdedalus0 Posts: 0Member
    I cant see any pictures those link's doesnt work
  • su_liamsu_liam0 Posts: 0Member
    This is kind of sad. These tutorials are the only reason I was able to get Blender to work at all. Hopefully sphynx will return soon.
  • SphynxSphynx195 Posts: 461Member
    They will be done again (mainly to bring them up to date) at some point, but life is particularly busy (and has been for more than a year).

    The image problem is purely because there has been a server switch - as soon as I get time to breath, I will be putting them back up again.
  • su_liamsu_liam0 Posts: 0Member
    You, my man, rock in fullness! Thank you for getting the pics back up.

    I really need to get back to my Blender practice. Bryce is increasingly pi^^ing me off...
  • dead1960dead19600 Posts: 0Member
    Please do more. Thank you.:thumb:
  • D.M.J.D.M.J.0 Posts: 0Member
    Excellent tutorials Sphynx, Blender meets my needs for a modelling app that works on my dinky eeePC laptop perfectly, and your tutorials are clearly written by someone who knows his stuff and can express it.

    More would be appreciated if you have time!
  • fieldgunnerfieldgunner331 Posts: 0Member
    Dude, you da mastah!

    Cant praise this enough. I never got uvmapping until i read your tuts...thanks!
    really looking forward to the rest of this...

    some things have changed with 2.45 and 2.46...are you going to use the latest blender?
  • SphynxSphynx195 Posts: 461Member
    They will be revisited eventually - life is busy at present.
  • HrafnHrafn0 Posts: 0Member
    I don't mean to mine up an old topic but a continuation here would be great.
  • SphynxSphynx195 Posts: 461Member
    Well, considering the fact that life has been so busy that I've not been on the board for about 6 months, that sort of sets the tone for the continuing amount of work that I've got on.

    Ultimately, these will be continued as free tutorials at my company's education and training site (Esferico Education & Training) and copied back to here, but I won't be returning to full work on this till at least late August / early September. My software development work is way to full for anything else.
  • Judge DeathJudge Death0 Posts: 0Member
    I too hope that the sphinx will do new glender tuts, his seem very useful, more so than a book I bought for blender that was so terribly indexed as to be a pain to use.

    I'd love to see what the gun emplacement would look like finished.
  • ldoldo0 Posts: 0Member
    Re window layouts: learn to take advantage of the layout presets menu (the one that initially says A“DefaultA” at the top, to the left). Add/change/rename layouts to suit, and get rid of ones you donA’t need. These window layouts are saved with the Blender document, and you can use control-left-arrow and control-right-arrow keyboard shortcuts to quickly switch between them.

    Like I said earlier, Blender is all about workflow!
Sign In or Register to comment.