Section 2. Adding a new mesh to an existing model (BASIC)
Open up blender. It will look something like this:
Just click outside the menu to close it.
Blender will open with some meshes already present for first time users. You want to delete these. Just press Ctrl+A to select them all then hit delete.
Set the top drop-down menu to info
Set the middle drop-down menu to 3DView
Set the bottom drop-down menu to info
Drop down the File menu and select Save Startup File so these setting are saved for next time you open up blender.
Now we import a model. Go to the top drop-down menu under File and go down to import, then select the JA Ghoul 2 model (.glm) option.
Navigate to the base\models\players folder and whatever model folder you put there to edit. Select the model.glm file and click import.
It will look something like this when you open. You can navigate around the model with the numpad or the mouse. To see what the controls are for navigation just go down to view on the middle drop-down menu, and then to navigation. Go ahead and start saving your progress by going to file and save.
If you do not have a numpad fear not for you can use the mouse also for navigation. Use the mouse wheel to zoom in and out. Ctrl+mousewheel to move right or left on screen. Shift+mousewheel to move up and down on screen. Alt+Ctrl+mousewheel to rotate screen around horizontally. Alt+Shift+mousewheel to rotate screen around vertically.
On the right of your window you will see the outline and properties panels. This is where the most important stuff takes place so don't lose them. The outline shows all the meshes present and hierarchy. The different model_root's are the different levels of detail or LOD, meaning how the detailed the model is at different ranges or distances. You don't have to have multiple LOD's you only really need one, but to edit an existing model and remove them is a huge pain. Best just to leave them.
Now time for the fun stuff. This stormtrooper has recently been trained by batman and needs the proper equipment like the armclaw things and bat-ears. Let's see if we can help him out.
There is several ways you can do this. You can add any of the preset meshes or planes and sculpt them into something of your liking. I found an image of something I liked on Google and saved to desktop and am going to open the image as a plane.
You see it shows up to the side of the model and useless and grey as it is. Go to the middle menu and select texture from the viewport shading menu.
As you can tell it can be pain trying to navigate around this mesh to edit it with the stormtrooper in the way. So, with the mesh selected hit the numpad / key or you can go to the view menu and view global/local option. Now you won't be distracted by the other stuff and can focus on editing this mesh.
On the middle menu go to the model interaction mode menu and select editmode
We need to make a mesh out of one of those claws so we are going to first subdivide this thing first to make it easier to cut on. On the left side of your screen is a panel called mesh tools. Down about on the third table there is an option for subdivide. Press it several times until the mesh is subdivided up as much as you want or go down to the slider for number of cuts and input the amount of cut you want per side.
Now select the knife tool, hotkey K, and trace along whatever you want. Make sure to make connections to the other lines. For this tutorial I am only going to knife one claw out and duplicate the mesh to make the other 3 claws.
[IMAGE]
Once you are done select solid from the viewport shading menu, same place where you selected texture from. Still in editmode go to the selection mode and select face select mode.
Now all the faces of the mesh will show up with a little dot in the center of them. The other modes are line select and vertex select. Line select will select only lines and vertex select mode will select only "vertexes" (vertices)(points where lines intersect). Press C to activate select mode and circles should appear where your mouse usually is. Use the mouse wheel to make this bigger or smaller. If you have objects selected prior to select mode you can clear deselect them by pressing A which is a hotkey that toggles between select all and deselect all for whatever selection mode you are in (vertex, face, line). To exit select mode, press the Esc key.
Now select all the face that you don't want around the mesh that you want to keep delete them by pressing the delete key and select delete faces from menu.
Continue cleaning up the mesh by removing any lines you don't want or need for the future by using line select mode, selecting lines, delete, and then select the dissolve edges option to keep faces intact. Use Ctrl+Z if you make a mistake that need to be undone or Alt+Ctrl+Z to bring up the history menu. Keep in mind that you do not want to delete to much as each line or vertex is detail if you choose to reshape the mesh later on.
To get this mesh ready to be duplicated we first need to arrange it on the viewing plane. You can use the properties panel on the right to Transform it by location, rotation, or scale, and by using the red, blue, and green axis arrows to move it. For now we are just going to rotate it. In any selection mode press A to select all and then press R, the hotkey to rotate. While rotating you can press X,Y,or Z to choose what axis you want to rotate the selection around.
Now you can also edit the mesh to get it to the right shape and size. Since this bat claw is going to be the same on both sides I am going to edit/reshape half of it and mirror it later on to the other side.
Using whatever selection mode you want(vertex, line, face) make selection and move around as desired. Keep in mind that using the red(X), green(Y), blue(Z) axis arrows help moving a selection only along that axis instead of trying to guess in a 3D environment on a 2d screen.
Once you have your mesh the way you want it you need to do a UV map of it. A UV map tells the mesh where texture goes on it. We are going to do the UV map now so we only have one claw to paint as opposed to like 6 later on since we are duplicating the mesh later. In editmode with everything selected go to the top menus and to the screen layout menu and go down to the UV editing option.
Should look something like this:
No on the mesh menu in the middle of the screen go down to the mesh drop down and click unwrap. From here you can edit the UV layout as you want it or to an image if you choose to load one. Go down to the Island Select button at the bottom of the left screen. Now you can select an entire UV map for a given mesh (Island) and move it around or rotate it. Now I'm going to rotate the Island so it looks better on the screen by pressing R key.
After you have the Island arranged the way you want it you can export it by going down to UVs and Export UV Layout save it to somewhere you can find it later. To Learn what to do with these UV maps go down to the skinning part of Section 5.
Now go back to the default screen lay out. In object mode select the mesh you want and go down to the object drop down menu and select duplicate object or Shift+D.
Note: I did the UV map before duplicating the object to avoid having to slip the finished mesh and remapping the separate objects. Objects that have already been UV mapped keep the map through duplication, mirroring, resizing, etc.
After you have duplicated it don't move it. Just press enter. You should see a second plane show up in your outline menu usually with .001 ending or something similar.
With the .001 mesh selected go to the object menu and select mirror. You can mirror the selected mesh across any axis you want. In this case we want to mirror across the Z global and press Enter.
Go to edit mode and select the entire mesh by pressing A and go to the panel on the left side of the screen and press the button that says Flip Direction. This reverses this direction of the faces of the mesh so that they face outwards again. Mirroring the mesh made them face inwards. If you don't do this texture will only show up on half your mesh later on. Now we need to join the two meshes so while holding shift+left click to select both meshes. Then go to the panel on the left that say object tools and go down to the button that says join.
Now that you have joined both meshes you can begin copying it across to complete the other two claws that were pictured. Go to object menu and duplicate objects or Shift+D. Move them along the appropriate axis, scale, and distance to your liking. After you have things the way you want join the meshes.
Now we want to rename the mesh to something more appropriate like armclaw_0 and give it a parent. The _0 at the end is associated with the model_root LOD. As a rule with goul2 models all meshes have to be connected up through the hierarchy seen in the outline panel. Usually try to parent meshes to the object they are connected to.
At the bottom of the object context panel you need to add ghoul 2 properties. Essentially this is the name of the object for use of the skin files where you will assign a texture. And if you forget this blender won't let you export. So we'll use r_armclaw here.
You probably noticed that once you parented your mesh it disappeared from you window and the outline. It didn't disappear, it just moved and resized. Press numpad / or change view in the view menu from local back to global. If you look between your models feet you will see that the mesh you created is still there, it is just smaller.
Move, rotate, and scale the mesh until it looks right to you and looks attached to the correct object according to the parent.
In the outline select skeleton_root and make sure the X-Ray and the Name boxes are checked.
Going back to your mesh go to the modifier tab and select armature. Make sure object is set to skeleton_root. Rename Armature to skin. Do not hit apply; just leave it as is here.
Now moving over to the object data tab rename the mesh data block to whatever your mesh is called, armclaw_0 for me. Now go down to the part where it says vertex groups and press the button that looks like a '+'. This tells the mesh what bones it is to group its vertices to for movement. As a rule all vertices must be weighted.
From looking at the bones and names we can tell which bones the mesh needs to be weighted to. Go down to the name of the group, select and rename to whatever bone you will be weighting vertices to.
Add other bones that your mesh may need to be weighted to.
With the object selected go to the object interaction mode selector and choose Weight Paint.
Your mesh should turn dark blue, meaning it has no weight. Red means full weight or that your mesh is 100 percent weighted to a certain bone. On the left a panel should appear with various weight tools and blend modes. If you can a fairly complex model the weight gradient tool is a good way to apply an even gradient of weight to all vertices along its path.
After you have finished with the weight go to edit mode and select all. Then go to Mesh menu up to faces and select triangulate faces. This had to be done because Ghoul 2 requires that all faces be triangulated.
Go to object mode and now we will duplicate the object to move it over to the left arm. So duplicate the mesh and move, rotate, and scale. Also don't forget to rename it appropriately for the left arm, parent it to the left or opposite side, and the G2 properties at the bottom for the left arm.
Go back to the object data tab for you need left side mesh and rename the vertex group rradiusX, or any other bone where a side r for right and l for left is indicated, to lradiusX so that the weights that were for the right bone will now apply with the left bone.
Now we will add the different levels of detail for the mesh. You usually want to check in game at this point before adding the LOD's to make sure your mesh is weighted properly and doesn't look weird with movement. To add the LOD's simply duplicate the mesh, leave it where it is and rename it all and change the parent to the next LOD. So I would rename this to l_armclaw_1 and parent it to l_arm_1. You don't need to change the G2 properties for LOD just leave it.
Do this for the all meshes you added. After that if you have added all meshes you wanted to you can export the model by going to File, export, JA Ghoul 2 model (.glm). Save it in your base\models\players\*your model* folder as model.glm.
For skinning and compiling go down to Section 5