Blender for beginners¶
This tutorial is designed to provide a simple introduction to blender. This will not be covering any advance topics, it's sole purpose is to provide a small amount of knowledge that you can use to proverbially get your foot in the door of using blender. I am not going to cover how to install blender as i going to assume you are capable of doing that by yourself.
This tutorial is designed for Blender 2.65a It may work with newer or older variants, i don't know what the future holds or when you are reading this. So a small word of warning; If you are using blender 25.45b then you are probably looking at something that is outdated.
A different Blender tutorial (This goes into much more depth and may be harder to understand, but covers almost everything you could ever want to know)
This is Blender¶
This is the first thing you should see when you load up blender.
The first thing that i want you to do is click on the grey area that is covered in a grid, This should remove the big box in front of you.
So first things first, you should now be looking at a grey box. It doesn't look like much yet but believe me it will be a work of art once you have finished with it
Currently you are in object mode, this is indicated by the box with object mode written on it at the bottom of the viewing window (the bit your cube is displayed in) You can select objects by right clicking on them, such as the cube. When you right click on something you will see an orange border around it, this indicates it is the object that is currently selected. There is a little diagram at the bottom left of the viewing window which you can look at if you forget or can not tell which way you are looking. The arrows point into the positives of each axis (as opposed to the negative/minus numbers)
That is the basics of navigating your object.
You can move your cube along thee different axis. These are red, blue and green. If you click and hold on one of the arrows you can move the object in that direction around your screen, you can also right click and hold anywhere when you have a selected item to drag it around your screen, but i advise that you stick to using the three arrows as it is much easier to use because it is much easier to gauge where you are actually moving the object. There are three arrows that have a colour individual to each one:
Blue = z axis
Green = Y axis
Red = X axis
To modify your cube you will need to switch to edit mode. This is because in object mode you can modify objects (individual 3d models) , whereas in edit mode you can edit the object itself.
To do this:
Make sure you have your cube selected with an orange glow around it, remember this is done by right clicking the cube. Then once you have done that you have to go to the bar at the bottom of the viewing window and click where it says "object mode" a list will then pop up. From that list select "edit mode" and you will then be in edit mode.
If you have done this correctly then your cube should now be tinted orange, this is because by default all of the faces (sides), edges (lines) and vertices (angles/joints) have been selected. This is also similar to when you selected the object earlier. if you haven't already noticed the theme, anything that has been selected will be orange in some way or form.
Editing your cube¶
Now that you are in edit mode it is time to edit your cube.
First you may notice that your object is a little low on polygons, currently you have a grand total of 6 polygons and nothing awesome was ever created with just 6 polygons. So to fix this we need to move our cursor to the left hand pane of the screen labelled "mesh tools". In this pane there are several functions that you can use to modify your model, The options shown will depend on which mode you currently have blender in (remember edit and object mode). We are going to use the tool called subdivide, all you have to do is click it and you will find your cube now has 24 polygons. Now to be completely honest with you that is still quite low, but for now it will do.
Now that you have subdivided your cube it is time to make it into something. For the purpose of this tutorial we are going to make a house (essentially a 3d pentagon)
So the first part of turning this run of the mill cube into a house is to select the three top central vertices (points/angles etc... From now on i am only going to refer to these as vertices) you can do this by holding shift while right clicking on them. Once again note how they have turned Orange, have a guess why?
The vertices may appear to have moved very slightly when you selected them, don't worry about this. It is one of the quirks of the program/ your pc screen/ your eyes that you will have to get used to.
Now you are going to use the blue (z axis) and drag the vertices up into a roof like shape, you will now see that the house is taking shape and although it may look like the roof has triangles in it you will find that it does not (which is good).
You will now have something that looks vaguely reminiscent of this house shaped model. It doesn't have to be identical, as long as you are doing the same things you are learning the same things.
But believe it or not most 3d house models are slightly more complex than this, so more work may be needed. Unless you are creating models for a scene where you never get more than 100 meters within said model if that is the case then job well done, get yourself a cup of tea and a well deserved chocolate digestive.
In this section we are going to add more detail to the building, please note that while more detail makes something look nicer it can also decrease the in game fps. So when you create a "to scale 1:1 replica of the uss enterprise" be warned that it may lag a little in blender its self, never mind rigs of rods or whatever else you wish to add this into.
We will want to subdivide the object again (go back up if you have forgotten how).
Once you have done that we will add a bay window to your house.
To do this we are going to move the highlighted vertices in the image to the left
First you should highlight said vertices (shift+right click). Then you are going to use the red arrow to drag them outwards, this will make the house shape much more appealing.
Now we are going to make something that kind of looks like a door. I wouldn't worry to much as to what it looks like as long as you are learning the techniques that's all that matters for now.
First we are going to select these six vertices, these are where the edges of the door will be, then we are going to use the extrude region tool (its just above subdivide) when you click on that you will then be able to move that area backwards and forwards. I would suggest that you indent it slightly so it looks a bit like a door.
Notice the lip at the bottom of the door, while it is fine to have it there in blender, it may cause issues when you put it into a game such as rigs of rods. This is because in most 3d game engines faces (side of model/object) only have 1 side, this means you can only see the face from 1 side. On a 3d model this inst an issue because you have multiple faces meaning the backface (side of face that cant be seen) is hidden by other faces. But in the case of this 2d lip it will not be. In rigs of rods if you do this on the collision mesh then you may experience collision issues with the building if a car crashes into the door.
So lets delete it, blender offers a multitude of delete options which are all useful for different things
In this case we want to delete the edge which will in turn delete the face which will get rid of the problem. So first you need to select the two vertices of the lip, the two that need selecting are the ones at each end of the lip. Then you need to press the delete key on your keyboard. This will bring up a menu with several options.
You do not want to delete the vertices because this will also delete a lot of the rest of the model.
You do not want to delete the face because there is no face selected
You also do not want to delete all of the above or any combination of them
All you want to delete is the the edge. so you click on that. Next time you try and delete something it will put the mouse cursor over the edge option for you, this is to try and allow you to work faster if you are trying to delete multiple similar things in a repetitive style.
 Texturing (UV mapping)
For this i am going to keep it simple so we are ditching the house. You may want to save it first.
For this section of the tutorial we are going to use a plain old cube, mainly because it only has 6 sides making it easy to work with.
So you are back at square one, this is a cube. Please make sure it has 6 faces and 8 vertices , if it doesn't then you have already done something wrong (for the intent of this tutorial).
First switch into edit mode (you can use "tab" if your a hotkey ninja) Then select the button that is on the bar at the bottom of the viewing window that has a cube with a line on it. When you highlight over it you will see a message saying edge select. If you still cant find it just look to the right of where it says "global"
Now you have to mark the edges. To do this you need to select the edges of your model that will allow you to unwrap it as 1 whole layer. Similar to if you are peeling an orange in 1 continuous layer (i cant be the only one who tries to do that?) So all you have to do is hold down ctrl while clicking the edges you wish to select. You want the seems to unfold to make a T shape.
**WORK IN PROGRESS - The rest of the tutorial is glued from an older one, for blender 2.49 or previous.**
Skins in Rigs of Rods are made by draping the beams in triangles known as submeshes. Textures are cut up and placed by coordinate and percentage. This is a lot of work by hand, and luckily Blender does it all for you.
 Applying Texture
Enter and select your truck. Press f to enter UV Face Select. Enter UV/Image Editor by clicking the Windows Type button, see on the right. Click Image > Open Image and select your trucks texture. Because there is no real texture for the tutorial truck, just pick any image. I am using a picture of my cat, because I can.
Select triangles by right clicking them, holding SHIFT to select multiple triangles. You can now adjust the texture placement. In the UV/Image Editor, use left click to adjust the position of the triangle on the texture. Right click a corner of the triangle and use the left click to adjust its position. This may be time consuming and may require some trial-and-error. Take your time, because you're almost done!
From here, make a Material File for your truck and set it in your globals... export your truck, and you're done!
EDIT: in blender 2.46 there isn't a "UV face edit", go to edit mode and press "U"
 Exporting in Blender
You must export to an alreading existing truck file. Blender will NOT make the truck file for your when you hit 'Export'.
Make sure the truck file you're exporting to has the word 'submesh' right above the word 'end'.
Now, when in Blender, go into object mode.
Right-click on the submesh so there is a pink outline around it and you shouldnt see very many beams if you are actually clicked on the submesh. and in the left hand bottom corner make sure it says submesh after ME and OB (there might be some letters and numbers befor the word submesh. this is ok)
Also if you try to export and it says "wings section not found, unable to export wings" just click on the boxes in the bottom left had corner that say OB:(some stuff here) ME:(some stuff here and rename it submesh on BOTH ME and OB and it will now work.
After that if you have the blender ror importer and exporter installed.( witch im sure you do if you got the car into blender in the first place) click file-export-RoR exporter, then find the truck file you are exporting to and click export.
Blender should just pause for a second and then return to normal activity. and when you go to your truck file you should see all the submesh stuff in the truck file.
Also Blender will automatically make a copy of your original truck file from befor you exported it. open that using notepad and copy the node and beem sections into your new truck file that has the submesh because blender will have messed those up. but by doing that it will put it back to normal.