{"id":1810,"date":"2017-03-27T21:47:08","date_gmt":"2017-03-27T21:47:08","guid":{"rendered":"http:\/\/avastar.online\/?page_id=1810"},"modified":"2017-03-27T21:47:08","modified_gmt":"2017-03-27T21:47:08","slug":"fitting_verts","status":"publish","type":"page","link":"https:\/\/avalab.org\/avastar\/300\/help\/n-panel\/avastar\/the-fitting-panel\/fitting_verts\/","title":{"rendered":"Edit Mode"},"content":{"rendered":"<h1><image src=\"\/wp-content\/uploads\/2018\/08\/approve_logo.png\" style=\"width:60px;vertical-align:middle;margin-left:0px;\"><\/image> Fitting Vertices<\/h1>\n<p>Sometimes (actually almost always) it is not possible to use the Fitting Sliders on an entire Object with the weights given from the mBones, mostly because the original weighting for the mBones was simply not made for the fitted mesh application.<\/p>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>For this case we support the partial fitting of single vertices or groups of vertices. This document explains how to work with this feature. We use the Sleeveless T-Shirt shown in the image. This shirt uses the weight maps of the SL Default Avatar with a few optimizations. We start with it having no Fitted Mesh weight maps.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1289.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7233\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1289.png\" alt=\"\" width=\"419\" height=\"438\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1289.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1289-287x300.png 287w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Preparing for fitting<\/h3>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Make sure that the armature is in Pose mode and the Mesh is in weight Paint mode. The mesh is the active object. Now we setup the sliders as follows:<\/p>\n<ul>\n<li>Shape Editor &#8211; Belly Shape Slider: 100 (max)<\/li>\n<li>Fitted Mesh Editor &#8211; Belly Slider: 1.0 (max)<\/li>\n<li>Fitted Mesh Editor &#8211; Pelvis Slider: 1.0 (max)<\/li>\n<\/ul>\n<p><span style=\"color: #3366ff;\"><strong>Note:<\/strong> <\/span>The Weights partially move the T-Shirt completely out of shape, see the red zone on the belly.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1281.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7223\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1281.png\" alt=\"\" width=\"419\" height=\"320\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1281.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1281-300x229.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Now lets take a closer look at the Fitting sliders. We see two bone pairs:<\/p>\n<ul>\n<li>mTorso and BELLY<\/li>\n<li>mPelvis and PELVIS<\/li>\n<\/ul>\n<p>Important: Weight is distributed between the bones of each pair. In other words: there is no weight added or removed from a Bone pair.<\/p>\n<p>Also all bones which we do not need within this document are hidden.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1282.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7224\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1282.png\" alt=\"\" width=\"419\" height=\"427\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1282.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1282-294x300.png 294w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Prepare for Fitting vertices<\/h3>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Make sure the Orange bone is shown in the Belly Slider (see image above). Click the check mark once or twice to toggle between the blue and orange bone.<\/p>\n<ul>\n<li>Enable vertex Mask Select mode<\/li>\n<li>Select the center front vertex of the T-Shirt, (see image)<\/li>\n<\/ul>\n<p><strong><span style=\"color: #3366ff;\">Remember:<\/span> <\/strong>Selecting a single vertex is done with CTRL &#8211; LMB (Left Mouse Button)<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1283.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7226\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1283.png\" alt=\"\" width=\"419\" height=\"427\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1283.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1283-294x300.png 294w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Now move the Belly slider down until the vertex touches the underlying Avastar upper body then move the slider a bit up again so that the Avastar mesh is still not visible. The Belly Slider value is about o.68 for me.<\/p>\n<p>The white arrow in the image shows the path that the vertex has followed while the slider was moved.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1284.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7227\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1284.png\" alt=\"\" width=\"419\" height=\"427\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1284.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1284-294x300.png 294w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>We could continue this procedure by selecting one vertex at a time then adjusting the Fitted Mesh sliders as necessary until we have our mesh perfectly weighted. But we have two more options.<\/p>\n<p>First we can select multiple vertices and apply weight to them all together. Here i have selected 9 vertices on the T-Shirt front and moved the Belly Slider down to about 0.75<\/p>\n<p>Remember: Select multiple vertices with the rubber band selector (B &#8230;) ro right clicking each vertex while holding down CTRL and SHIFT<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1285.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7228\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1285.png\" alt=\"\" width=\"419\" height=\"427\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1285.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1285-294x300.png 294w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Smooth By weights<\/h3>\n<p>The second option is to use the function Smooth by Weight.<\/p>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>You find this function at the bottom of the Fitting Slider section. Use it as follows:<\/p>\n<ul>\n<li>Select a part of the mesh that shows a rough surface<\/li>\n<li>Click Smooth Weights one or a few times and watch how the selected vertices move around.<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span5\"><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1286.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7229\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1286.png\" alt=\"\" width=\"419\" height=\"270\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1286.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1286-300x193.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p><strong>Hint:<\/strong> In this example you will need to not only modify the Belly Slider but also the Pelvis slider. And some vertices might not at all want to move into good places.<\/p>\n<p><strong>Important: <\/strong>This function does not touch the mesh itself. It only operates on the weights by trying to smooth the mesh surface very similar to what Blender&#8217;s vertex smooth tool does!<\/p>\n<\/div>\n<div class=\"rhcol span5\"><a class=\"row-fluid\" href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1287.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7230\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1287.png\" alt=\"\" width=\"419\" height=\"270\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1287.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1287-300x193.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<div class=\"rhcol span8\">\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>After some fiddling with the tools we end up with something like in the image aside. This is not perfect but clearly an improvement over the initial situation.<\/p>\n<p>But we are not yet at the end of our options.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1288.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7231\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1288.png\" alt=\"\" width=\"419\" height=\"270\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1288.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1288-300x193.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3 class=\"row-fluid\">Bending and breaking the rules<\/h3>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Sometimes it is inevitable to break the rules or bend them to some extend. And our rule so far is to not add extra weight but only move the weight between the bones of the fitted mesh bone pairs to avoid any form of distortions on the mesh.<\/p>\n<p>However, in the marked areas (see image) you probably are curious to experiment with additional weights. I will show you how you can do this in the following.<\/p>\n<p>But beware, when you manually place weight on such an area, the weight is automatically taken away from all other bones that control this area.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1291-1.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7240\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1291-1.png\" alt=\"\" width=\"419\" height=\"459\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1291-1.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1291-1-274x300.png 274w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<p>Further down i will show you another technique that might be the better option, but in any case you have to carefully examine if your additional weights eventually destroy your shape. And to be honest, we can not at all tell what will happen. You must do your experiments and work out what works and what not for your case!<\/p>\n<h3>The waist<\/h3>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>To understand why the waist does not work nicely we need to take a look at the affected vertices. Lets select one of the vertices on the waist and then inspect the Vertex Weights for this vertex (see image).<\/p>\n<p>Tip: In order to find the vertex i switched temporary to wireframe mode ( &#8216;Z&#8217; -&gt; Wireframe)<\/p>\n<p>We see the vertex is only weighted to the mChest bone!<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1294.png\"><img decoding=\"async\" class=\"alignleft wp-image-7242 size-full\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1294.png\" alt=\"\" width=\"419\" height=\"390\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1294.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1294-300x279.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Now lets see which bones the Belly Slider actually influences. we can find this in the Avatar Shape editor by locating the Belly Slider (in Torso section) and click on the orange bone on the left side.<\/p>\n<p>Aha! This slider only affects BELLY and PELVIS. so no wonder that this region just stays where it is when you move the Belly Slider upwards. So, since this area does not move with the slider, it eventually gets covered by the System mesh, hence the grey spot there.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p>\u00a0<a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1295.png\"><img decoding=\"async\" class=\"alignleft wp-image-7246 size-full\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1295.png\" alt=\"\" width=\"419\" height=\"390\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1295.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1295-300x279.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Now lets very carefully add a tiny bit of Belly weight to this vertex and its neighbors.<\/p>\n<p>i used a weight Paint brush with following settings:<\/p>\n<ul>\n<li>Brush type: Add<\/li>\n<li>Weight: 0.1<\/li>\n<li>Radius: 50px<\/li>\n<li>Strength: 0.2<\/li>\n<\/ul>\n<p>i needed 6 strokes to get the mesh into shape. for checking the effect of each stroke please use ALT-Q as explained below.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1296.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7249\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1296.png\" alt=\"\" width=\"419\" height=\"390\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1296.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1296-300x279.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Using ALT-Q<\/h3>\n<p>Important: When you add weight to the weight maps then the anticipated changes in the mesh do not show up immediately. Instead Avastar keeps the meshes as they are until it needs to do a full rebind. This is an ugly detail that you ought to know! However, Avastar has defined a keyboard shortcut for you, that is:<\/p>\n<p><span style=\"color: #ff6600;\"><strong>ALT-Q<\/strong><\/span><\/p>\n<p>As soon as you type this shortcut on the keyboard, Avastar does the necessary shape adjustments for you. And so you can immediately see how your additional weight influences the shape.<\/p>\n<h3>Check the results<\/h3>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Lets again examine the weight maps of the vertex from further above. Please click the Normalize button so that we can see the true weight distribution.<\/p>\n<p>in this case the addition of weight worked nicely because we actually bury only very little weight (0.048) from mChest which has plenty of weight on it. So most probably the shape of our model will not be distorted, at least not visibly.<\/p>\n<p>But beware! its not always like this.\u00a0 In any case please be very careful when you add weight!<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1297.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7250\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1297.png\" alt=\"\" width=\"419\" height=\"300\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1297.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1297-300x215.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>We can proceed with the remaining bad parts on the stomach. However when we get to the belly region (the remaining 2 spots close to the lower edge of the Tank-Top, we no longer can get away with only adding weight to the BELLY.<\/p>\n<p>We have to also add some weight to the PELVIS now to get the final result.<\/p>\n<p>At the end we could fix the front part of the mesh with very little extra weight on the Belly weight map.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1298.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-7251\" src=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1298.png\" alt=\"\" width=\"419\" height=\"477\" srcset=\"https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1298.png 419w, https:\/\/avalab.org\/avastar\/300\/wp-content\/uploads\/2021\/01\/Image1298-264x300.png 264w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fitting Vertices Sometimes (actually almost always) it is not possible to use the Fitting Sliders on an entire Object with the weights given from the mBones, mostly because the original weighting for the mBones was simply not made for the fitted mesh application. For this case we support the partial fitting of single vertices or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7233,"parent":7262,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-1810","page","type-page","status-publish","has-post-thumbnail","hentry","category-help","category-reference"],"_links":{"self":[{"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/pages\/1810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/comments?post=1810"}],"version-history":[{"count":0,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/pages\/1810\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/pages\/7262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/media\/7233"}],"wp:attachment":[{"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/media?parent=1810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/categories?post=1810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/300\/wp-json\/wp\/v2\/tags?post=1810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}