{"id":2098,"date":"2012-06-12T13:57:50","date_gmt":"2012-06-12T13:57:50","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=2098"},"modified":"2018-02-27T16:14:46","modified_gmt":"2018-02-27T16:14:46","slug":"megashapes-simple-loft","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=2098","title":{"rendered":"MegaShapes Simple Loft"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national-1024x455.jpg\" alt=\"\" title=\"Example of a simple loft used to create the grass and soil meshes\" width=\"640\" height=\"284\" class=\"aligncenter size-large wp-image-2115 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national-1024x455.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national-300x133.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national-680x302.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/cow-national.jpg 1800w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThis is the simple version of the mesh lofter in the system, it uses a single shape to define the path along which the cross section path will be &#8216;lofted&#8217;. This layer and its brother the complex loft form the core of the MegaShapes system as these will be the most often used layers and will usually form the base upon which other layers will be built. In the picture above of the Mega Moo National demo scene the grass and soil mesh underneath were built using the simple loft layer. Both the path and cross sections can be open or closed shapes, and if the chosen shape has more than one spline you can pick the curve to use. The options for this layer allow you to easily define where along the path the mesh is to start and how far along the build from that point. There are values to control the smoothness of the generated mesh along and across the surface as well as options to cap the ends on open splines, and full uv mapping options.<\/p>\n<p>The inspector of this layer is made up of five sections, first controls the basic mesh generation settings, then a foldout for the cross section params, some advanced params, uv mapping and finally capping.<\/p>\n<h3>Simple Loft General Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimple.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimple.jpg\" alt=\"\" title=\"Simple Loft Layer General Params\" width=\"272\" height=\"430\" class=\"alignright size-full wp-image-2101 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimple.jpg 272w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimple-189x300.jpg 189w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/a><br \/>\nThe general params for the simple loft, these control the path to use, the start and length of the layer as well as options to scale, rotate and offset the layer.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name of the layer.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Un checking this will remove this layer from the loft object and hide most of the inspector for it.<\/p>\n<h4><strong>Col<\/strong><\/h4>\n<p>Color to tint the inspector for this layer, makes finding the layer you want easier on complex loft objects.<\/p>\n<h4><strong>Lock<\/strong><\/h4>\n<p>Sometimes you will want to have the loft object update in realtime but maybe not all the layers actually change, if you check the Lock option then during a rebuild the layer will not recalculate its contribution to the mesh but will just use the last lot of vertices it built so greatly speeding up the mesh creation for entire object. So useful if you have a complex race track loft object and just want to deform a crash barrier layer from it, so you would lock all the layers except for the one to change, update that then lock it again.<\/p>\n<h4><strong>Material<\/strong><\/h4>\n<p>The material to use to render the faces built by this layer.<\/p>\n<h4><strong>Path<\/strong><\/h4>\n<p>The path along which to loft the cross section shape. <\/p>\n<h4><strong>Curve<\/h4>\n<p><\/strong><br \/>\nIf the selected path contains more than one curve a slider will appear allowing you to select which curve to use.<\/p>\n<h4><strong>Start<\/strong><\/h4>\n<p>The start position along the path shape to start building the layer, 0 is the start 1 is the end, values outside this range will either loop for closed shapes or extrapolate past the ends on open shapes.<\/p>\n<h4><strong>Length<\/strong><\/h4>\n<p>The length of the loft along the path, 1 is a full length of the path loft, the length value is added to the start value to find the actual end value, so if this is outside the rang 0 to 1 then the layer will either loop or extrapolate past the ends of the path.<\/p>\n<h4><strong>Dist<\/strong><\/h4>\n<p>This is how far to step along the path before building a new line of vertices, the smaller this value is the more vertices are produced and the smoother the end result.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>The loft can be offset from the path by changing these values. Also there is an option to control the offset along the length of the loft from curves for the X, Y and Z directions.<\/p>\n<h4><strong>Use X Offset<\/strong><\/h4>\n<p>Check to use a curve to define the amount of x offset from the path along the length of the path shape.<\/p>\n<h4><strong>Offset X<\/strong><\/h4>\n<p>The curve to describe the amount of x offset.<\/p>\n<h4><strong>Use Y Offset<\/strong><\/h4>\n<p>Check to use a curve to define the amount of y offset from the path along the length of the path shape.<\/p>\n<h4><strong>Offset Y<\/strong><\/h4>\n<p>The curve to describe the amount of y offset.<\/p>\n<h4><strong>Use Z Offset<\/strong><\/h4>\n<p>Check to use a curve to define the amount of z offset from the path along the length of the path shape.<\/p>\n<h4><strong>Offset Z<\/strong><\/h4>\n<p>The curve to describe the amount of z offset.<\/p>\n<h3>Cross Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecross.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecross.jpg\" alt=\"\" title=\"Simple Loft Cross Params\" width=\"271\" height=\"377\" class=\"alignright size-full wp-image-2105 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecross.jpg 271w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecross-215x300.jpg 215w\" sizes=\"(max-width: 271px) 100vw, 271px\" \/><\/a><br \/>\nThe params that control the cross section of the loft, such as the shape to use, and scaling options.<\/p>\n<h4><strong>Section<\/strong><\/h4>\n<p>The shape to use as the cross section.<\/p>\n<h4><strong>Curve<\/h4>\n<p><\/strong><br \/>\nIf the selected path contains more than one curve a slider will appear allowing you to select which curve to use.<\/p>\n<h4><strong>Snap<\/h4>\n<p><\/strong><br \/>\nSometimes the curves in a shape are not aligned nicely, so you can check this to automatically snap all the curves in shape so that the first knot of each curve is in the same position before being used in the layer.<\/p>\n<h4><strong>Cross Start<\/strong><\/h4>\n<p>The start position along the section to shape to start the loft from, 0 is the start of the shape 1 is the end, values outside 0 to 1 will either loop or extrapolate the shape.<\/p>\n<h4><strong>Cross Len<\/strong><\/h4>\n<p>How far along from the start to build the layer to.<\/p>\n<h4><strong>Cross Dist<\/strong><\/h4>\n<p>The distance to use to make the next vertex at along the cross section, lower values will result in a smoother mesh and more vertices.<\/p>\n<h4><strong>Cross Rot<\/strong><\/h4>\n<p>You may want to rotate the cross section before it is used in the layer creation, you can define any rotation you want here.<\/p>\n<h4><strong>Cross Scale<\/strong><\/h4>\n<p>You can also scale the cross section before it is used.<\/p>\n<h4><strong>Pivot<\/strong><\/h4>\n<p>The local offsets of the knots can also be changed before the shape is used in a layer, useful to line up sub curves in a shape.<\/p>\n<h4><strong>Include Knots<\/strong><\/h4>\n<p>If the Cross Dist value is quite large you can lose some of the detail in a cross section, if you check this option then the cross section will include all knots on the shape in the cross section regardless of cross dist, this is also handy to make sharp edges for say a wall.<\/p>\n<h4><strong>Use Scale Curve<\/strong><\/h4>\n<p>The amount of scaling of the cross section can also be curve driven for the length of the layer, check this to allow use of a curve to drive the scaling.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>The curve to define the scale along the length of the loft layer.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>The scale curve can be quickly offset along the path by adjusting this value, useful for simulating say a ball being squeezed along a bulging pipe.<\/p>\n<h4><strong>Separate Scale<\/strong><\/h4>\n<p>You may want to have a separate scale curve driving the X and Y scaling, check this to enable a separate scaling curve for the Y axis.<\/p>\n<h4><strong>Use Scale Curve Y<\/strong><\/h4>\n<p>Turn on the use of the second scale curve for the Y Axis.<\/p>\n<h4><strong>Scale Y<\/strong><\/h4>\n<p>The curve for scaling the Y Axis<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>The offset along the layer path for this Y Axis scale curve.<\/p>\n<h3>Advanced Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimpleadv.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimpleadv.jpg\" alt=\"\" title=\"Simple Loft layer advanced params\" width=\"273\" height=\"207\" class=\"alignright size-full wp-image-2109 fancy\" \/><\/a><br \/>\nThese options can have a dramatic effect on the end shape of the loft, it allows you to extend the loft up or down so either the top or bottom of the loft line up which is useful for doing say rolling hills or tree lines. And there are options to clip the loft so that you can define a flat top or bottom region of the loft, best way to see what these do is to have a play with them.<\/p>\n<h4><strong>Flip<\/strong><\/h4>\n<p>For some reason you may not get a mesh that you expected out of the loft, or you may want to produce a tunnel type loft, if so then checking this will reverse the face order of the mesh effectively turning it inside out.<\/p>\n<h4><strong>Snap Top<\/strong><\/h4>\n<p>This will adjust the loft so it is stretched so that the top of the loft will lay be of the Top Value.<\/p>\n<h4><strong>Top<\/strong><\/h4>\n<p>The value the top of the loft will use.<\/p>\n<h4><strong>Snap Bottom<\/strong><\/h4>\n<p>This will adjust the loft is stretched so that the bottom of the loft will lay be of the Bottom Value.<\/p>\n<h4><strong>Bottom<\/strong><\/h4>\n<p>The value the bottom of the loft will use.<\/p>\n<h4><strong>Clip Top<\/strong><\/h4>\n<p>This will clip any points above the Clip Top Val to that value so causing the top of the loft to be flattened.<\/p>\n<h4><strong>Clip Top Val<\/strong><\/h4>\n<p>The value above which any vertex will be clip to.<\/p>\n<h4><strong>Clip Bottom<\/strong><\/h4>\n<p>This will clip any points below the Clip Bottom Val to that value so causing the bottom of the loft to be flattened.<\/p>\n<h4><strong>Clip Bot Val<\/strong><\/h4>\n<p>The value below which any vertex will be clip to.<\/p>\n<h3>UV Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimpleuv.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimpleuv.jpg\" alt=\"\" title=\"Simple Loft layer UV options\" width=\"271\" height=\"141\" class=\"alignright size-full wp-image-2111 fancy\" \/><\/a><br \/>\nThe options that control the UV mapping of the layer for textures.<\/p>\n<h4><strong>UV Off<\/strong><\/h4>\n<p>The Offset into the texture map to start the mapping from.<\/p>\n<h4><strong>UV Scl<\/strong><\/h4>\n<p>The Scaling of the UV coords, smaller values will zoom in on the texture map, values greater than 1 will start to tile the texture, negative values will flip the texture.<\/p>\n<h4><strong>Swap UV<\/strong><\/h4>\n<p>Will swap the u and v parts of the mapping.<\/p>\n<h4><strong>Physical UV<\/strong><\/h4>\n<p>If this is on then the actual vertex values will be used for the mapping, this can make it easier for some mapping cases it will also mean that the uv mapping will keep the scale of the texture map constant, so if you expand a loft the texel size will remain constant.<\/p>\n<h3>Cap Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecap.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/loftsimplecap.jpg\" alt=\"\" title=\"Simple Loft layer Capping options\" width=\"274\" height=\"296\" class=\"alignright size-full wp-image-2113 fancy\" \/><\/a><br \/>\nIf the path you loft along is not a closed shape or you are only using a portion of a shape then you may want to cap the ends of the loft, and these options allow you to do so and define the material and uv mapping for each end cap.<\/p>\n<h4><strong>Cap Start<\/strong><\/h4>\n<p>Allows a mesh cap for the start of the loft mesh to be generated.<\/p>\n<h4><strong>Material<\/strong><\/h4>\n<p>Material to use for the start mesh cap.<\/p>\n<h4><strong>UV Offset<\/strong><\/h4>\n<p>Offset value to use on the caps UV&#8217;s<\/p>\n<h4><strong>UV Scale<\/strong><\/h4>\n<p>Scaling value to use on the caps UV&#8217;s.<\/p>\n<h4><strong>Rot<\/strong><\/h4>\n<p>Angle to rotate the start cap UV&#8217;s by.<\/p>\n<h4><strong>Cap End<\/strong><\/h4>\n<p>Allows a mesh cap for the end of the loft mesh to be generated. The params are the same for the start cap.<\/p>\n<h3>Tutorial 1: Create Simple Loft<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=7lkE_RZ6_lo&#038;hd=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytmstut11.jpg\" alt=\"\" title=\"MegaShapes Tutorial 1: Create Loft layer\" width=\"680\" height=\"406\" class=\"aligncenter size-full wp-image-2332 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytmstut11.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytmstut11-300x179.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<h3>Tutorial 2: Advanced Params<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=0abSCnPDSso&#038;hd=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytshapestut2.jpg\" alt=\"\" title=\"MegaShapes Tutorial 2\" width=\"680\" height=\"405\" class=\"aligncenter size-full wp-image-2339 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytshapestut2.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ytshapestut2-300x178.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<h3>Simple Loft Layer Features Video<\/h3>\n<p>A little video guide to the simple loft layer and what some of the params do.<br \/>\n<a href=\"http:\/\/www.youtube.com\/watch?v=ZPl0gNazGMA&#038;hd=1&#038;fs=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/05\/ytmsintro.jpg\" alt=\"\" title=\"Click to Play\" width=\"680\" height=\"405\" class=\"aligncenter size-full wp-image-1986 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/05\/ytmsintro.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/05\/ytmsintro-300x178.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the simple version of the mesh lofter in the system, it uses a single shape to define the path along which the cross section path will be &#8216;lofted&#8217;. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":390,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2098"}],"collection":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2098"}],"version-history":[{"count":21,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2098\/revisions"}],"predecessor-version":[{"id":6713,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2098\/revisions\/6713"}],"up":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/390"}],"wp:attachment":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}