{"id":2827,"date":"2017-12-27T21:56:39","date_gmt":"2017-12-27T21:56:39","guid":{"rendered":"http:\/\/avastar.online\/?page_id=2827"},"modified":"2017-12-27T21:56:39","modified_gmt":"2017-12-27T21:56:39","slug":"attach","status":"publish","type":"page","link":"https:\/\/avalab.org\/avastar\/279\/avastar-2\/reference\/advanced\/devkits\/users\/attach\/","title":{"rendered":"Attach Meshes"},"content":{"rendered":"<h2><image src=\"\/avastar\/279\/wp-content\/uploads\/2019\/07\/approve_logo_250.png\" style=\"width:120px;vertical-align:middle;margin-left:0px;margin-right:10px;\"><\/image> Attach Meshes<\/h2>\n<div style=\"min-height:200px;\"><iframe id=\"ytplayer\" type=\"text\/html\" width=\"100%\" src=\"https:\/\/www.youtube.com\/embed\/6B-HIiB6_hE?autoplay=1&t=29\" frameborder=\"0\"><\/iframe><\/div>\n<h3>Prepare Attachment for Binding<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>I assume you got some simple dress , skirt or whatever in your blender scene. The item does not need to be weighted!<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2828\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_001.png\" alt=\"\" width=\"202\" height=\"354\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_001.png 202w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_001-171x300.png 171w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>I further assume you have configured your developer kit by using the Developer kit Manager. In this tutorial i add a <span style=\"color: #ff6600;\">Belleza Venus <\/span>character to the scene.<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_002.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_002.png\" alt=\"\" width=\"186\" height=\"262\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Now your scene should contain:<\/p>\n<ul>\n<li>Your Mesh item.<\/li>\n<li>A copy of the Belleza Venus mesh using the Avastar Rig.<\/li>\n<\/ul>\n<div class='et-box et-warning'>\n\t\t\t\t\t<div class='et-box-content'>The rig uses an A Posed Skeleton. Keep this in mind when you later export your Mesh to SL! We will mention it then.<\/div><\/div>\n<p>Also note that your Mesh item is not yet bound to the Rig! This episode is all about how to make this mesh ready to work with the Rig.<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_019.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2854 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_019.png\" alt=\"\" width=\"270\" height=\"432\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_019.png 270w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_019-188x300.png 188w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Add geometry<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>I add some more faces to the dress where it covers the nipples:<\/p>\n<ul>\n<li>Enable face select mode.<\/li>\n<li>Select the faces around the nipples.<\/li>\n<li>&#8220;i&#8221; (for inset) then adjust the inset size.<\/li>\n<\/ul>\n<p>Please do not yet adjust the faces. We will do this in a moment (see below)<\/p>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_003.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2830 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_003.png\" alt=\"\" width=\"250\" height=\"199\" \/><\/a><\/p>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_004.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2831 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_004.png\" alt=\"\" width=\"250\" height=\"199\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"row-fluid\">\n<div class=\"rhcol span12\">\n<p>Make the upper part of the dress symmetric. This helps us later to save some editing time:<\/p>\n<ul>\n<li>Enable vertex select mode.<\/li>\n<li>Select the upper symmetric part of the dress (See first image below).<\/li>\n<li>open the AvastarTools box (in the tool shelf).<\/li>\n<li>Snap selected vertex pairs to their mirrored locations as shown in 2nd image below.<span style=\"color: #ff6600;\"><sup>(1)<\/sup><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #ff6600;\">(1)<\/span> This is a blender function! You can also call it from the 3D View&#8217;s footer menu:<\/p>\n<pre>Mesh - Snap to Symmetry<\/pre>\n<p>Note: The symmetrize function does neither remove nor add vertices to the mesh. It also has an Operator redo panel where you can adjust the settings.<\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<div id=\"attachment_2832\" style=\"width: 230px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_005.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2832\" class=\"wp-image-2832 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_005.png\" alt=\"\" width=\"220\" height=\"354\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_005.png 220w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_005-186x300.png 186w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/a><p id=\"caption-attachment-2832\" class=\"wp-caption-text\">Select verts for symmetrize<\/p><\/div>\n<\/div>\n<div class=\"span6 rhcol\">\n<div id=\"attachment_2850\" style=\"width: 205px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_018.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2850\" class=\"wp-image-2850 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_018.png\" alt=\"\" width=\"195\" height=\"282\" \/><\/a><p id=\"caption-attachment-2850\" class=\"wp-caption-text\">Symmetrize selection<\/p><\/div>\n<\/div>\n<\/div>\n<h3>Adjustments<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Adjust the dress to the character shape. Now you only need to adjust one side. The other side of the upper part of the dress follows automatically.<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_006.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2833\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_006.png\" alt=\"\" width=\"220\" height=\"354\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_006.png 220w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_006-186x300.png 186w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Binding<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Bind the Mesh to the Armature<\/p>\n<ul>\n<li>Use the <em><span style=\"color: #ff6600;\">Weight from Meshes<\/span><\/em> option to get the weights from the developer kit.<\/li>\n<\/ul>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_007.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2834\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_007.png\" alt=\"\" width=\"387\" height=\"222\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_007.png 387w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_007-300x172.png 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Check<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Check if mesh is fit for animation<\/p>\n<ul>\n<li>Make sure you have the mesh selected.<\/li>\n<li>Make sure your timeline is on frame 0.<\/li>\n<li>Open the Avastar Settings panel.<\/li>\n<li>Select the Skin&amp;Weight workflow preset.<\/li>\n<li>Select the armature.<\/li>\n<li>select all bones.<\/li>\n<li>&#8220;i&#8221; &#8211; Rotation (on frame 0).<\/li>\n<li>move timeline to frame 80.<\/li>\n<li>rotate the hips by +- 40 degree.<\/li>\n<li>select all bones.<\/li>\n<li>&#8220;i&#8221; rotation on frame 80.<\/li>\n<\/ul>\n<p>Now you can modify the pose also in mesh edit mode by scrubbing the timeline!<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_008.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2835\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_008.png\" alt=\"\" width=\"188\" height=\"260\" \/><\/a>We see the dress gets stretched a lot when the legs are rotated. This is also true when the character makes a big step forward instead of spreading the legs sidewards as shown in the image.<\/p>\n<p>We have to fix this by adding extra loops and adjust the weight maps!<\/p>\n<\/div>\n<\/div>\n<h3>Fix stretching<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Add extra topology to fix the over stretch<\/p>\n<ul>\n<li>Set timeline to frame 0.<\/li>\n<li>select the dress in edit mode.<\/li>\n<li>select 2 center edges on the stomach.<\/li>\n<li>select the related edges on the back as well.<\/li>\n<li>Hide the selected edges (press &#8216;h&#8217;).<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span3\">\n<div id=\"attachment_2838\" style=\"width: 136px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_009.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2838\" class=\"wp-image-2838 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_009.png\" alt=\"\" width=\"126\" height=\"210\" \/><\/a><p id=\"caption-attachment-2838\" class=\"wp-caption-text\">on the stomach side<\/p><\/div>\n<\/div>\n<div class=\"rhcol span3\">\n<div id=\"attachment_2839\" style=\"width: 136px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_010.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2839\" class=\"wp-image-2839 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_010.png\" alt=\"\" width=\"126\" height=\"210\" \/><\/a><p id=\"caption-attachment-2839\" class=\"wp-caption-text\">on the back side<\/p><\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Add edge loops<\/p>\n<ul>\n<li>Use CTRL-R to add 4 edge loops like shown in the image.<\/li>\n<li>Unhide the hidden edges (press ALT-h).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_011.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2840\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_011.png\" alt=\"\" width=\"164\" height=\"258\" \/><\/a><\/p>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_012.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2841\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_012.png\" alt=\"\" width=\"164\" height=\"258\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<ul>\n<li>Use &#8220;k&#8221; and cut edge loops as shown in first image.<\/li>\n<li>optional: Dissolve the vertical edges in the center see 2nd image.<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_013.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2842\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_013.png\" alt=\"\" width=\"164\" height=\"218\" \/><\/a><\/p>\n<\/div>\n<div class=\"rhcol span3\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_014.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2843\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_014.png\" alt=\"\" width=\"164\" height=\"218\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<ul>\n<li>Select the front and back part in mesh edit mode.<\/li>\n<li>Move on the timeline to Frame 80 to see the stretched mesh.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_015.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2844\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_015.png\" alt=\"\" width=\"301\" height=\"182\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Smooth Weights<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<ul>\n<li>open the Blender vertical Tools bar.<\/li>\n<li>Open the Blender Weight tools panel.<\/li>\n<li>Select the Smooth tool.<\/li>\n<li>then adjust the settings in the operator redo panel.<\/li>\n<\/ul>\n<p>The final result will look similar to this:<\/p>\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_017.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2846\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_017.png\" alt=\"\" width=\"353\" height=\"305\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_017.png 353w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_017-300x259.png 300w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/a><\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_016.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2845\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_016.png\" alt=\"\" width=\"196\" height=\"464\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_016.png 196w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2017\/12\/attachments_016-127x300.png 127w\" sizes=\"auto, (max-width: 196px) 100vw, 196px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h3>Export &amp; Enjoy<\/h3>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>Export your mesh from Blender\/Avastar<\/p>\n<ul>\n<li>Select the dress in Object mode.<\/li>\n<li>File &#8211; Export &#8211; Collada (Avastar).<\/li>\n<li>Select your export file name.<\/li>\n<li>Export.<\/li>\n<\/ul>\n<p>Take care that the advanced option <span style=\"color: #ff6600;\">use bind pose<\/span> is enabled. You need to export with this option because the Belleza kit comes in an A pose and it shoul dbe used with the bind pose option enabled (See the Developer kit manager documentation for further explanations)<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p>Import your Mesh to SL:<\/p>\n<ul>\n<li>Take care that you import with Weights.<\/li>\n<li>Important: <span style=\"color: #800000;\"><strong>Do <span style=\"color: #ff00ff;\">not<\/span> import with joints!<\/strong><\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>Wear your dress together with the Belleza Body. It should fit well and work nicely with standard SL animations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attach Meshes Prepare Attachment for Binding I assume you got some simple dress , skirt or whatever in your blender scene. The item does not need to be weighted! I further assume you have configured your developer kit by using the Developer kit Manager. In this tutorial i add a Belleza Venus character to the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2828,"parent":5193,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2827","page","type-page","status-publish","has-post-thumbnail","hentry","category-reference"],"_links":{"self":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/2827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/comments?post=2827"}],"version-history":[{"count":0,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/2827\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/5193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/media\/2828"}],"wp:attachment":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/media?parent=2827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/categories?post=2827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/tags?post=2827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}