{"id":1868,"date":"2024-04-04T15:42:39","date_gmt":"2024-04-04T14:42:39","guid":{"rendered":"https:\/\/www.katsbits.com\/site\/?p=1868"},"modified":"2024-04-04T15:42:39","modified_gmt":"2024-04-04T14:42:39","slug":"gmax-unwrapping","status":"publish","type":"post","link":"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/","title":{"rendered":"UVW Mapping (Unwrapping) &#038; &#8216;Skinning&#8217; Models in Gmax"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#The_Basic_Mesh\" >The Basic Mesh<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#Adding_a_%E2%80%98Material\" >Adding a &#8216;Material&#8217;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#Sub-Material_Properties\" >Sub-Material Properties<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#Applying_Materials\" >Applying Materials<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#%E2%80%98Skinning_the_Mesh\" >&#8216;Skinning&#8217; the Mesh<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/#UVW_Editor\" >UVW Editor<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>2D artwork was used on the meshes which meant using <b>UVW map<\/b> and and <b>UVW unwrap.<\/b> As this is a big part of the workload for the scene it&#8217;s probably a good idea to run through the process so those not familiar with it can at least see how it&#8217;s done.    <\/p>\n<p>There are a couple of ways to &#8216;skin&#8217; meshes depending on what you&#8217;re going to do with it, but the one I chose was the same used when making modeled objects &#8216;game ready&#8217;, i.e. to put into a game like Quake3.<\/p>\n<p>The following is a quick &#8216;walk thru&#8217; on skinning an object, in this case the cauldron placed by the door and acting as the main light source for the scene.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"The_Basic_Mesh\"><\/span>The Basic Mesh<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As you can see below the mesh isn&#8217;t too complex, an object like this doesn&#8217;t really need to be, the legs for example are shaped triangular &#8216;tubes&#8217;, only the feet having any fancy work done to them as that&#8217;s what players in game would normally be able to see. Doing this keeps the poly count reasonable low and yet still give the model a bit of interesting geometrical detail. cauldron<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/cauldron_basic.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/cauldron_basic_sml.jpg\" alt=\"The modeled object we're going to texture\" title=\"The modeled object we're going to texture\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>The modeled object we&#8217;re going to texture.<\/p>\n<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Adding_a_%E2%80%98Material\"><\/span>Adding a &#8216;Material&#8217;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In this particular instance because the model was already split up into sections (the &#8216;legs&#8217;, &#8216;body&#8217; and &#8216;fire&#8217;) a &#8216;<b>multi-material<\/b>&#8216; was used and applied so each section had it&#8217;s own &#8216;<b>sub-material<\/b>&#8216;.<\/p>\n<p>The material editor was opened (keyboard &#8216;<b>M<\/b>&#8216;) and a new entry created using the &#8216;<b>multi-material<\/b>&#8216; option from the popup dialogue (a choice os &#8216;<i>standard<\/i>&#8216; or &#8216;<i>multi-material<\/i>&#8216; is given). Only 3 &#8216;<b>sub-materials<\/b>&#8216; were needed in this case and they were given names appropriate to where they were going to be assigned (&#8216;body&#8217;, &#8216;leggies&#8217; &amp; &#8216;topbit&#8217;) because I&#8217;m forgetful..!, if more were needed they can easily be added by clicking on the &#8216;<i>Add<\/i>&#8216; button, similarly  if fewer were needed the &#8216;<i>Delete<\/i>&#8216; button removes the unwanted extra slots.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-multimaterials.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-multimaterials_sml.jpg\" alt=\"Multi-material displaying individual sub-materials\" title=\"Multi-material displaying individual sub-materials\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>Materials<\/p>\n<\/p><\/div>\n<p>To save a bit of confusion later on when navigating through the editor the top level of the material was given a name &#8216;cauldron&#8217; making it easier to figure out where you are in the hierarchy (it&#8217;d be like naming folders in Windows with the same name and then finding something in one of the sub folders).<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Sub-Material_Properties\"><\/span>Sub-Material Properties<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Each &#8216;<b>sub-material&#8217;<\/b> was given it&#8217;s own properties as shown below. The window indicated by &quot;<b>1<\/b>&quot; shows the results of changes made to the materials properties, in this case just a base colour, which is assigned in section &quot;<b>3<\/b>&quot;. Clicking on the coloured box to the right of the &#8216;<b>Diffuse<\/b>&#8216; parameter opens up a <b>colour mixer<\/b> dialogue box where you can make and assign your own custom colour to that sub-material, it&#8217;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.<\/p>\n<p>The body of the cauldron also needs to be &#8216;<b>2-sided<\/b>&#8216; so it&#8217;s solid regardless of which side you look at the mesh, something that isn&#8217;t done by default on a mesh when you 1st create it (see the 1st shot above). Placing a &#8216;tick&#8217; in that check box (&quot;<b>2<\/b>&quot;) turns on the <b>2-sided<\/b> property for the material.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-material-editor.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-material-editor_sml.jpg\" alt=\"Individual properties assigned per material slot\" title=\"Individual properties assigned per material slot\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>Material assignment<\/p>\n<\/p><\/div>\n<p>At the end of all this the model has a single &#8216;<b>multi-material<\/b>&#8216; which contains 3 &#8216;<b>sub-materials<\/b>&#8216;. We can now open the &#8216;<b>material navigator<\/b>&#8216; and apply the sub-materials to the mesh sections.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Applying_Materials\"><\/span>Applying Materials<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Opening the &#8216;<b>material navigator<\/b>&#8216; 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 UVW mapped either the base colour of the material shows or textures appear skewed and miss-aligned, this can be fixed by UVW mapping the objects.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-material-navigator.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-material-navigator_sml.jpg\" alt=\"Using the Material NAvigator to assign instances to the mesh\" title=\"Using the Material NAvigator to assign instances to the mesh\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>Material types<\/p>\n<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%98Skinning_the_Mesh\"><\/span>&#8216;Skinning&#8217; the Mesh<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>We now need to &#8216;skin&#8217; the object and set the texture straight so it fits the mesh better by using the <b>UVW Mapping<\/b> modifier (<i>modifier List &gt; UV coordinate modifiers &gt; UVW Mapping<\/i>). In this particular case the UVW map was a &#8216;cylinder&#8217; (uncapped) applied to the body of the model. The texture won&#8217;t always be a perfect fit the first time this is done, it&#8217;s often garbled or doesn&#8217;t show so it often has to be edited to fit the mesh better. This is done using the UVW map editor.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-applied.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-applied_sml.jpg\" alt=\"Adding a UVW Mapping modifier to 'skin' the mesh\" title=\"Adding a UVW Mapping modifier to 'skin' the mesh\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>Skinning the mesh<\/p>\n<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"UVW_Editor\"><\/span>UVW Editor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once a UVW Map has been added it then usually needs to be checked and edited with the <b>Unwrap UVW<\/b> modifier (<i>modifier list &gt; UV coordinate modifiers &gt; unwrap UVW<\/i> [shown left]). Adding one of these changes the modifier panel and displays a couple of new buttons, one of which is called &#8216;edit&#8217; clicking this opens up the &#8216;Edit UVW&#8217; window as shown below.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-edit-uvws.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uv-unwrapping-edit-uvws_sml.jpg\" alt=\"Using the Edit UVWs editor to edit the objects UV's\" title=\"Using the Edit UVWs editor to edit the objects UV's\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>UVW mapping the mesh<\/p>\n<\/p><\/div>\n<p>Depending on how complex the model is you&#8217;ll usually get all the vertexes that constitute 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 UVW mapping sections of the model. In the case of the cauldron just the cylinder UVW map shows in the editor (as that&#8217;s all that has been mapped at the moment). All that&#8217;s needing to be done now is selecting the appropriate vertexes and moving the mesh around until 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.<\/p>\n<div class=\"content_images\"><a href=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uvunwrappeding-final.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/gmax\/uvunwrappeding-final_sml.jpg\" alt=\"Final UVWmapped object\" width=\"640\" height=\"360\" border=\"0\" \/><\/a><\/p>\n<p>Final UVW mapped object<\/p>\n<\/p><\/div>\n<div class=\"subNav\">\n<p>[1: <a href=\"https:\/\/www.katsbits.com\/site\/gmax-unwrapping\/\" title=\"UVW mapping (skinning) with gmax\" target=\"_self\" rel=\"noopener\">Intro &amp; How to<\/a> | 2: <a href=\"https:\/\/www.katsbits.com\/site\/gmax-materials\/\" title=\"Advanced options UVW mapping with gmax\" target=\"_self\" rel=\"noopener\">Advanced Options<\/a>]<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1887,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[312,20,25,478,481,238,452,237],"class_list":["post-1868","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-3ds-max","tag-gmax","tag-materials","tag-skinning","tag-sub-materials","tag-uv-mapping","tag-uv-maps","tag-uv-unwrapping"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/1868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/comments?post=1868"}],"version-history":[{"count":4,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/1868\/revisions"}],"predecessor-version":[{"id":1888,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/1868\/revisions\/1888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/media\/1887"}],"wp:attachment":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/media?parent=1868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/categories?post=1868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/tags?post=1868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}