{"id":2191,"date":"2012-06-12T22:15:54","date_gmt":"2012-06-12T22:15:54","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=2191"},"modified":"2012-06-12T22:15:54","modified_gmt":"2012-06-12T22:15:54","slug":"megashapes-clone-rules","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=2191","title":{"rendered":"MegaShapes Clone Rules"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2-1024x455.jpg\" alt=\"\" title=\"The fencing, number posts and jumps were all done with the clone rules layer\" width=\"640\" height=\"284\" class=\"aligncenter size-large wp-image-2171 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2-1024x455.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2-300x133.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2-680x302.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/moo-shapes2.jpg 1800w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThis is the most advanced and most powerful layer currently in the layer system, it allows you complete control over the generated layer mesh by defining any number of rules saying what kind of objects are added to the layer and how they are added. Each rule has its own params and also has a weighting value so if more than one rule of the same type is found on the layer then how many of each used in the layer can be controlled through the weight value. All the objects in the layer are combined into a single mesh to reduce the draw calls. More rules will be added as the system evolves currently the rules supported are:<\/p>\n<ul>Start &#8211; Object to use at the start of the layer<\/ul>\n<ul>End &#8211; Object to use at the end of the layer<\/ul>\n<ul>Filler &#8211; Object to be used to fill in between the start and end objects<\/ul>\n<ul>Regular &#8211; An object that is to appear every Nth object in the layer.<\/ul>\n<ul>Placed &#8211; Object to appear at a set position in the layer<\/ul>\n<h3>Clone Rule Params<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/clonerules.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/clonerules.jpg\" alt=\"\" title=\"clonerules\" width=\"289\" height=\"547\" class=\"alignright size-full wp-image-2192 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/clonerules.jpg 289w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/clonerules-158x300.jpg 158w\" sizes=\"(max-width: 289px) 100vw, 289px\" \/><\/a><br \/>\nThe general options for the clone rules layer, such as the layer to build on, and the normal rotation, scaling, twist curves etc.<\/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>Surface<\/strong><\/h4>\n<p>The Mega Loft Object this layer will build onto.<\/p>\n<h4><strong>Layer<\/strong><\/h4>\n<p>When you select a Loft object as the surface this drop down will be filled with the layers from that object that you can use as the surface for the clone layer to build on.<\/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>Cross Alpha<\/strong><\/h4>\n<p>The position across the surface where the clone layer will be built.<\/p>\n<h4><strong>Calc Up<\/strong><\/h4>\n<p>If this is set then the mesh will be built perpendicular to the mesh underneath it.<\/p>\n<h4><strong>Up Amount<\/strong><\/h4>\n<p>How much the mesh aligns to the calculated up value.<\/p>\n<h4><strong>Seed<\/strong><\/h4>\n<p>The seed for the random number that picks the rules.<\/p>\n<h4><strong>TMRotate<\/strong><\/h4>\n<p>This rotation will be applied to the objects to be cloned before being used to build the layer so this can be used to adjust objects that are in the wrong orientation or whose up axis is wrong etc.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Apply a scaling to the rule objects before they are used.<\/p>\n<h4><strong>Tangent<\/strong><\/h4>\n<p>This value controls how far the system will look ahead when computing directions or tangents for such things as slopes and directions.<\/p>\n<h4><strong>Axis<\/strong><\/h4>\n<p>The axis to use as the width of the clone objects when computing sizes and spacing.<\/p>\n<h4><strong>Use Twist<\/strong><\/h4>\n<p>Check this option to allow the use of a twist curve along the length of the layer.<\/p>\n<h4><strong>Twist<\/strong><\/h4>\n<p>How much to multiply the twist curve by to get the final twist amount to apply to the clone layer.<\/p>\n<h4><strong>Twist Crv<\/strong><\/h4>\n<p>The curve to use to define the twisting along the length of the layer.<\/p>\n<h4><strong>UpRight<\/strong><\/h4>\n<p>This value controls how upright the mesh is on slopes.<\/p>\n<h4><strong>Global Scale<\/strong><\/h4>\n<p>Global scaling value for the entire layer, this allows you to easily adjust the size of the entire layer.<\/p>\n<h4><strong>Use Cross Crv<\/strong><\/h4>\n<p>Sometimes you want the clone layer to wander across the surface and not just be in one place, so you can turn on the option to control the position across the surface from a curve.<\/p>\n<h4><strong>Cross Crv<\/strong><\/h4>\n<p>The curve that controls the position across the surface.<\/p>\n<h4><strong>Add Rule<\/strong><\/h4>\n<p>This will add a new blank rule to the list.<\/p>\n<h3>Start Rule<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/rulestart.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/rulestart.jpg\" alt=\"\" title=\"Start Rule options\" width=\"288\" height=\"241\" class=\"alignright size-full wp-image-2193 fancy\" \/><\/a><br \/>\nOptions for the Start Rule.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name for the rule, makes it easier to track down for editing.<\/p>\n<h4><strong>Obj<\/strong><\/h4>\n<p>The object to ad to the layer mesh for this rule.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Rules can be turned on\/off.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>An offset to apply when this rule is used, useful for adjusting the positioning of objects.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Scaling to apply when this rule is used.<\/p>\n<h4><strong>Gap In<\/strong><\/h4>\n<p>Gap to be added to the layer before this rule is used.<\/p>\n<h4><strong>Gap Out<\/strong><\/h4>\n<p>Gap to be added to the layer after this rule is used.<\/p>\n<h4><strong>Type<\/strong><\/h4>\n<p>The type of rule.<\/p>\n<h4><strong>Weight<\/strong><\/h4>\n<p>The weight value of the rule, when more than one of the same type is found the system will use each rule depending on its weight compared to others in the layer, so a rule with a weight of 1 will appear twice as often as a rule with a weight of 0.5.<\/p>\n<h3>End Rule<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleend.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleend.jpg\" alt=\"\" title=\"End Rule option\" width=\"286\" height=\"240\" class=\"alignright size-full wp-image-2194 fancy\" \/><\/a><br \/>\nOptions for the End Rule.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name for the rule, makes it easier to track down for editing.<\/p>\n<h4><strong>Obj<\/strong><\/h4>\n<p>The object to ad to the layer mesh for this rule.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Rules can be turned on\/off.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>An offset to apply when this rule is used, useful for adjusting the positioning of objects.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Scaling to apply when this rule is used.<\/p>\n<h4><strong>Gap In<\/strong><\/h4>\n<p>Gap to be added to the layer before this rule is used.<\/p>\n<h4><strong>Gap Out<\/strong><\/h4>\n<p>Gap to be added to the layer after this rule is used.<\/p>\n<h4><strong>Type<\/strong><\/h4>\n<p>The type of rule.<\/p>\n<h4><strong>Weight<\/strong><\/h4>\n<p>The weight value of the rule, when more than one of the same type is found the system will use each rule depending on its weight compared to others in the layer, so a rule with a weight of 1 will appear twice as often as a rule with a weight of 0.5.<\/p>\n<h3>Filler Rule<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/rulefiller.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/rulefiller.jpg\" alt=\"\" title=\"Filler Rule options\" width=\"288\" height=\"239\" class=\"alignright size-full wp-image-2195 fancy\" \/><\/a><br \/>\nOptions for the Filler Rule.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name for the rule, makes it easier to track down for editing.<\/p>\n<h4><strong>Obj<\/strong><\/h4>\n<p>The object to ad to the layer mesh for this rule.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Rules can be turned on\/off.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>An offset to apply when this rule is used, useful for adjusting the positioning of objects.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Scaling to apply when this rule is used.<\/p>\n<h4><strong>Gap In<\/strong><\/h4>\n<p>Gap to be added to the layer before this rule is used.<\/p>\n<h4><strong>Gap Out<\/strong><\/h4>\n<p>Gap to be added to the layer after this rule is used.<\/p>\n<h4><strong>Type<\/strong><\/h4>\n<p>The type of rule.<\/p>\n<h4><strong>Weight<\/strong><\/h4>\n<p>The weight value of the rule, when more than one of the same type is found the system will use each rule depending on its weight compared to others in the layer, so a rule with a weight of 1 will appear twice as often as a rule with a weight of 0.5.<\/p>\n<h3>Regular Rule<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleregular.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleregular.jpg\" alt=\"\" title=\"Regular Rule options\" width=\"288\" height=\"263\" class=\"alignright size-full wp-image-2196 fancy\" \/><\/a><br \/>\nOptions for the Start Rule.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name for the rule, makes it easier to track down for editing.<\/p>\n<h4><strong>Obj<\/strong><\/h4>\n<p>The object to ad to the layer mesh for this rule.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Rules can be turned on\/off.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>An offset to apply when this rule is used, useful for adjusting the positioning of objects.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Scaling to apply when this rule is used.<\/p>\n<h4><strong>Gap In<\/strong><\/h4>\n<p>Gap to be added to the layer before this rule is used.<\/p>\n<h4><strong>Gap Out<\/strong><\/h4>\n<p>Gap to be added to the layer after this rule is used.<\/p>\n<h4><strong>Type<\/strong><\/h4>\n<p>The type of rule.<\/p>\n<h4><strong>Weight<\/strong><\/h4>\n<p>The weight value of the rule, when more than one of the same type is found the system will use each rule depending on its weight compared to others in the layer, so a rule with a weight of 1 will appear twice as often as a rule with a weight of 0.5.<\/p>\n<h4><strong>Count<\/strong><\/h4>\n<p>The number of rules before the object is added in again, so if you had two regular rules on a layer one for a lamp post with a count of 8 and one for a fence post with a count of 2, then you would get a fence post every 2nd object but on the forth time the lamp post would be used instead.<\/p>\n<h3>Placed Rule<\/h3>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleplaced.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/06\/ruleplaced.jpg\" alt=\"\" title=\"Placed Rule options\" width=\"286\" height=\"258\" class=\"alignright size-full wp-image-2197 fancy\" \/><\/a><br \/>\nOptions for the Placed Rule.<\/p>\n<h4><strong>Name<\/strong><\/h4>\n<p>Name for the rule, makes it easier to track down for editing.<\/p>\n<h4><strong>Obj<\/strong><\/h4>\n<p>The object to ad to the layer mesh for this rule.<\/p>\n<h4><strong>Enabled<\/strong><\/h4>\n<p>Rules can be turned on\/off.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>An offset to apply when this rule is used, useful for adjusting the positioning of objects.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Scaling to apply when this rule is used.<\/p>\n<h4><strong>Gap In<\/strong><\/h4>\n<p>Gap to be added to the layer before this rule is used.<\/p>\n<h4><strong>Gap Out<\/strong><\/h4>\n<p>Gap to be added to the layer after this rule is used.<\/p>\n<h4><strong>Type<\/strong><\/h4>\n<p>The type of rule.<\/p>\n<h4><strong>Weight<\/strong><\/h4>\n<p>The weight value of the rule, when more than one of the same type is found the system will use each rule depending on its weight compared to others in the layer, so a rule with a weight of 1 will appear twice as often as a rule with a weight of 0.5.<\/p>\n<h4><strong>Alpha<\/strong><\/h4>\n<p>The position along the layer that the object will be placed, so an alpha of 0.25 will cause the object to be placed as near as possible to a quarter of the way along the layer.<\/p>\n<h3>Clone Layer Rules Video<\/h3>\n<p>Small video guide to the Clone Rules layer.<br \/>\n<a href=\"http:\/\/www.youtube.com\/watch?v=gGOvFFOlqKU&#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\/ytcomrule.jpg\" alt=\"\" title=\"ytcomrule\" width=\"680\" height=\"406\" class=\"aligncenter size-full wp-image-2011 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/05\/ytcomrule.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/05\/ytcomrule-300x179.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the most advanced and most powerful layer currently in the layer system, it allows you complete control over the generated layer mesh by defining any number of rules [&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\/2191"}],"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=2191"}],"version-history":[{"count":6,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2191\/revisions"}],"predecessor-version":[{"id":2203,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2191\/revisions\/2203"}],"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=2191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}