Hints, tips and tutorials for 3D modelling & content creation
|
KatsBits
Creating 3D models, meshes &
game content
3D modelling & meshing, level editing and textures makingHints, tips and tutorials for 3D modelling & content creation [back]UVWmapping and 2d art work ('skinning')Adding textures to the meshes ^2D artwork was used on the meshes which ment using UVWmap and and UVWunwrap. As this is a big part of the workload for the scene it's probably a good idea to run through the process so those not familar with it can at least see how it's done. There are a couple of ways to 'skin' meshes depending on what you're going to do withit, but the one I chose was the same used when making modeled objects 'game ready', ie. to put into a game like Quake3. The following is a quick 'walkthru' on skinning an object, in this case the cauldron placed by the door and acting as the main light source for the scene. The basic mesh ^As you can see below the mesh isn't too complex, an object like this doesn't really need to be, the legs for example are shaped triangular 'tubes', only the feet having any fancy work done to them as that's what players ingame would normally be able to see. Doing this keeps the polycount reasonable low and yet still give the model a bit of interesting geometrical detail. ![]() The modeled object we're going to texture. Adding a 'material' ^In this particular instance because the model was already split up into sections (the 'legs', 'body' and 'fire') a 'multi-material' was used and applied so each section had it's own 'sub-material'. The material editor was opened (keyboard 'M') and a new entry created using the 'multi-material' option from the popup dialogue (a choice os 'standard' or 'multi-material' is given). Only 3 'sub-materials' were needed in this case and they were given names appropriate to where they were going to be assigned ('body', 'leggies' & 'topbit') coz I'm forgetful..!, if more were needed they can easily be added by clicking on the 'Add' button, similarly if fewer were needed the 'Delete' button removes the unwanted extra slots. ![]() Materials To save a bit of confusion later on when navigating through the editor the top level of the material was given a name 'cauldron' making it easier to figure out where you are in the hierarchy (it'd be like naming folders in Windows with the same name and then finding something in one of the subfolders). Sub-material properties ^Each 'sub-material' was given it's own properties as shown below. The window indicated by 'A' shows the results of changes made to the materials properties, in this case just a base colour, which is assigned in section 'C'. Clicking on the coloured box to the right of the 'Diffuse' parameter opens up a colour mixer dialogue box where you can make and assign your own custom colour to that sub-material, it's where that rustic-red colour was made for this particular sub-material; clicking the small button far right brings up a texture browser where you can apply a bitmap to the material. The body of the cauldron also needs to be '2-sided' so it's solid regardless of which side you look at the mesh, something that isn't done by default on a mesh when you 1st create it (see the 1st shot above). Placing a 'tick' in that check box ('B') turns on the 2-sided property for the material. ![]() Material assignment At the end of all this the model has a single 'multi-material' which contains 3 'sub-materials'. We can now open the 'material navigator' and apply the sub-materials to the mesh sections. Appling materials ^Opening the 'material navigator' means we can apply each sub-material by LMB hold, select, drag and dropping the sub-material over a mesh section; as the mesh has yet to be UVWmapped either the base colour of the material shows or textures appear squewed and miss-aligned, this can be fixed by UVWmapping the objects. ![]() Material types 'Skinning' the mesh ^We now need to 'skin' the object and set the texture straight so it fits the mesh better by using the UVW Mapping modifier (modifier List > UV coordinate modifiers > UVW Mapping). In this particular case the UVWmap was a 'cylinder' (uncap'ed) applied to the body of the model. The texture won't always be a perfect fit the first time this is done, it's often garbled or doesn't show so it often has to be editied to fit the mesh better. This is done using the UVWmap editor. ![]() Skinning the mesh UVW editor ^Once a UVW Map has been added it then usually needs to be checked and edited with the Unwrap UVW modifier (modifier list > UV coordinate modifiers > unwrap UVW [shown left]). Adding one of these changes the modifier panel and displays a coupl of new buttons, one of which is called 'edit' clicking this opens up the 'Edit UVW' window as shown below. ![]() UVWmapping the mesh Depending on how complex the model is you'll usually get all the vertexes that constitue the individual polygon faces showing up in the editor window which can look quite a mess. If this happens you need to do a bit of optimising UVWmapping sections of the model. In the case of the cauldren just the cylinder UVWmap shows in the editor (as that's all that has been mapped at the moment). All that's needing to be done now is selecting the appropriate vertexes and moving the mesh around untill you match the texture alignment you want in the 3d viewport (the texture will change after each move of the UVW vertexes). Once this is done you end up with something at this stage to the image below. ![]() Final UVWmapped object |