{"id":566,"date":"2023-10-20T11:23:03","date_gmt":"2023-10-20T15:23:03","guid":{"rendered":"https:\/\/animation.monmouth.edu\/instruct\/?p=566"},"modified":"2023-10-20T11:26:41","modified_gmt":"2023-10-20T15:26:41","slug":"make-3d-texture-stick","status":"publish","type":"post","link":"https:\/\/animation.monmouth.edu\/instruct\/autodesk-maya\/make-3d-texture-stick\/","title":{"rendered":"Making a 3D Texture Stick"},"content":{"rendered":"\n<p>3D or solid textures are a great way to add color (and more) to your object without the need to lay out UVs. When you move the object, it may appear to move through the solid texture but that is easily fixed by parenting the place3dTexture node to the object.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3D textures on deforming object<\/h3>\n\n\n\n<p>But what if the object deforms? Here is a playblast of a bending stick with a 3D texture (modified leather) on it:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"960\" height=\"540\" src=\"https:\/\/animation.monmouth.edu\/instruct\/wp-content\/uploads\/sites\/3\/2023\/10\/StickTextureViewport.gif\" alt=\"\" class=\"wp-image-567\"\/><figcaption>Texture sticks in the viewport<\/figcaption><\/figure>\n\n\n\n<p>That looks like it works, the texture deforms with the object. Here is an Arnold render of the same scene:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"960\" height=\"540\" src=\"https:\/\/animation.monmouth.edu\/instruct\/wp-content\/uploads\/sites\/3\/2023\/10\/TexNotStick.gif\" alt=\"\" class=\"wp-image-568\"\/><figcaption>Texture does not stick in the render<\/figcaption><\/figure>\n\n\n\n<p>D&#8217;oh! The object deforms throught the 3D texture space and does not stick to the surface. We need to tell the renderer to use the point positions of the undeformed object to calculate the color value of the 3D texture. To do this:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Select the object <\/strong>&#8211; it should not be deformed (yet)<\/li><li><strong>Create a Texture Reference Object<\/strong> (Rendering &gt; Texturing &gt; [Projection] Create Texture Reference Object)<\/li><li>An error may pop up  from [mtoa.translator]&nbsp; that reads &#8220;Mesh not exported, it has 0 shading groups.&#8221; which you can ignore. That means the reference object itself will not be rendered.<\/li><\/ul>\n\n\n\n<p>Now it renders like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"960\" height=\"540\" src=\"https:\/\/animation.monmouth.edu\/instruct\/wp-content\/uploads\/sites\/3\/2023\/10\/MakeTexStick.gif\" alt=\"\" class=\"wp-image-569\"\/><figcaption>The texture sticks<\/figcaption><\/figure>\n\n\n\n<p>The texture placement should now NOT be parented to the object &#8211; you may consider parenting it to the reference object.<\/p>\n\n\n\n<p>Maya help page: <a href=\"https:\/\/help.autodesk.com\/view\/MAYAUL\/2024\/ENU\/?guid=GUID-C575BA54-DC55-4AC7-BCBF-FAB2D032D630\" target=\"_blank\" rel=\"noreferrer noopener\">Lock a 3D texture or a projected 2D texture to the surface<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to use a Texture Reference Object to make a solid texture stick<\/p>\n","protected":false},"author":3,"featured_media":572,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91,3,37,15,54],"tags":[45],"class_list":["post-566","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-91","category-autodesk-maya","category-rendering","category-rigging","category-texturing","tag-tips-tricks"],"_links":{"self":[{"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":4,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":574,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/posts\/566\/revisions\/574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/media\/572"}],"wp:attachment":[{"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/animation.monmouth.edu\/instruct\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}