{"id":1866,"date":"2020-02-15T19:20:14","date_gmt":"2020-02-15T22:20:14","guid":{"rendered":"http:\/\/cgepic.com\/?p=1866"},"modified":"2020-02-17T23:58:20","modified_gmt":"2020-02-18T02:58:20","slug":"animate-uvmap-shape-blender","status":"publish","type":"post","link":"https:\/\/cgepic.com\/en\/animate-uvmap-shape-blender\/","title":{"rendered":"How to Animate a Shape Tween for UV Map"},"content":{"rendered":"You probably have known some ways to animate a UV Map, either through modifiers like UV Warp, with shader nodes or even with add-ons.<\/p>\n<p>In this guide, you&#8217;ll learn how to make a kind of \u201cShape Key\u201d to UV Map, it means, make a shape tween and animate.<\/p>\n<p>The formula we&#8217;ll have is very simple to animate a UV Map. This will work both in <strong>EEVEE<\/strong> and in <strong>Cycles<\/strong>.<br \/>\n\n<p><a href=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_1.webp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1871\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_1.webp\" alt=\"\" \/><\/a><\/p>\nThis guide requires basic knowledge of Blender, textures, Shading Nodes and UV Maps.\n<h2>Let&#8217;s pratice!<\/h2>\nTo begin, we&#8217;ll use a simple curved mesh, with a pupil&#8217;s subdivision and texture modifier. The mesh is already with UV Map applied.<\/p>\n<p>You should already know that the eye pupil contracts and dilates according to the ambient lighting. But instead of trying to make Shape Keys from the mesh, we&#8217;ll do it by UV Map!<br \/>\n\n<p><a href=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_2.webp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1872\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_2.webp\" alt=\"\" \/><\/a><\/p>\n<h3>Step 1: Add two UV Maps to the mesh.<\/h3>\nThe first thing we&#8217;ll need is to add <strong>two UV maps<\/strong> to the mesh that will be special for the deformation.<\/p>\n<ul>\n<li>With the Plane mesh selected, click the <strong>Object Data<\/strong> tab in the <strong>Properties<\/strong> area.<\/li>\n<li>In the list of the UV Maps field, add two new UV Maps. They are added as copies of the active UV Map.<\/li>\n<li>For better project clarity, we write the names of each UV Map.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1873\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_3.gif\" alt=\"\" width=\"900\" height=\"600\" \/><\/p>\nWith a UV Map for dilated pupil and another for contracted, we&#8217;ll deform the UV Maps in the UV Editor.\n<h3>Step 2: Deform the two UV Maps.<\/h3>\nWe&#8217;ll edit the \u201cDilated Pupil\u201d to live up to the UV Map name.<\/p>\n<ul>\n<li>Click on the <strong>icon that chooses the Active Render<\/strong> of the \u201cDilated Pupil\u201d to view the UV Map that will be edited.<\/li>\n<li>Go to the UV Editor and enable Proportional Editing and choose Inverse-Square.<\/li>\n<li>Select all vertices in the viewport.<\/li>\n<li>Choose the &#8220;Dilated Pupil&#8221; in the <strong>Active UV<\/strong> field, located at the end of the top bar of the UV Editor.<\/li>\n<li>Select the central point of the UV and decrease the scale by pressing S, and you see the enlarged eye.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1874\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_4.gif\" alt=\"\" width=\"900\" height=\"600\" \/><\/p>\nNow we are going to do the same with the next UV Map \u201cContracted Pupil\u201d.<\/p>\n<ul>\n<li>Choose the Active Render of the \u201cContracted Pupil\u201d.<\/li>\n<li>Go to the UV Editor and choose the \u201cContracted Pupil\u201d in the Active UV field.<\/li>\n<li>Change the type of Proportional Editing to Sharp.<\/li>\n<li>Select all vertices in the viewport.<\/li>\n<li>Select the central point of the UV and decrease the scale by pressing S.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1875\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_5.gif\" alt=\"\" width=\"900\" height=\"600\" \/><\/p>\n<h3>Step 3: Edit the Shade Node.<\/h3>\nHere is the main and simple step to understand. All you&#8217;ll need is just two UV Map nodes and one RGB Mix node in the Shader Editor. That already kills the charade!<\/p>\n<p>In this project the mesh is already with the texture node connected to the inputs of the <strong>Principled BSDF<\/strong>.<\/p>\n<p>Now let&#8217;s edit the nodes.<\/p>\n<ul>\n<li>Pressing <strong>Shift + A<\/strong>, add the <strong>Mix RGB<\/strong> node located in Color.<\/li>\n<li>Connect the <strong>Color<\/strong> of the <strong>Mix RGB<\/strong> node to the Vector of the Texture node.<\/li>\n<li>Add the <strong>UV Map<\/strong> node located in Input.<\/li>\n<li>Duplicate this node.<\/li>\n<li>Choose &#8220;Contracted Pupil&#8221; for one UV Map node and &#8220;Dilated Pupil&#8221; for the other.<\/li>\n<li>Connect the UV of each node to <strong>Color 1<\/strong> and<strong> Color 2<\/strong> of the <strong>RGB Mix<\/strong>.<\/li>\n<\/ul>\n<p>It is only then to adjust the Fac values of the Mix RGB to fade between the created UV Maps and see the result in the viewport.<\/p>\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1876\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_6.gif\" alt=\"\" width=\"900\" height=\"600\" \/><\/p>\n<h3>Extra step: Insert keyframes.<\/h3>\nLet&#8217;s add keyframes to the Mix RGB&#8217;s Fac property.<\/p>\n<ul>\n<li>Right-click the <strong>Fac<\/strong> property.<\/li>\n<li>Click <strong>Insert Keyframe<\/strong>.<\/li>\n<\/ul>\n<p>Or\u2026<\/p>\n<ul>\n<li>Point your mouse at the <strong>Fac<\/strong> and press <strong>I<\/strong> once immediately adds a keyframe.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1878\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_7.gif\" alt=\"\" width=\"900\" height=\"600\" \/><\/p>\nCheck the full node!\n<p><a href=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_8.webp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1881\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_img_8.webp\" alt=\"\" \/><\/a><\/p>\n<h2>Finishing<\/h2>\nWith this tip, you can use Mix RGB in UV Maps for different applications, use them with Blender Drivers and even complement your Shader node structure.<\/p>\n<p>We are not going to rush in and consider this guide as the definitive solution for any UV Map animation. This is actually a new option that can meet your needs in Blender.<\/p>\n<p>And finally, check the guide result:<\/p>\n\n<div style=\"width: 1080px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-1866-1\" width=\"1080\" height=\"608\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/webm\" src=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_vid.webm?_=1\" \/><a href=\"http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_vid.webm\">http:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/b3d_anim_uv_vid.webm<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\nWhat did you think of this guide? Post your opinion in the comments and share to help your friends with this tip!<\/p>\n<p>Thanks for reading! Till next time!<\/p>\n\n<p>\ud83d\ude04<\/p>","protected":false},"excerpt":{"rendered":"<p>You probably have known some ways to animate a UV Map, either through modifiers like UV Warp, with shader nodes or even with add-ons. In this guide, you&#8217;ll learn how to make a kind of \u201cShape Key\u201d to UV Map, it means, make a shape tween and animate. The formula we&#8217;ll have is very simple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1890,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[51,23,50],"tags":[28,31,159,157,158],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Animate a Shape Tween for UV Map - CG Epic<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Animate a Shape Tween for UV Map - CG Epic\" \/>\n<meta property=\"og:description\" content=\"You probably have known some ways to animate a UV Map, either through modifiers like UV Warp, with shader nodes or even with add-ons. In this guide, you&#8217;ll learn how to make a kind of \u201cShape Key\u201d to UV Map, it means, make a shape tween and animate. The formula we&#8217;ll have is very simple [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/\" \/>\n<meta property=\"og:site_name\" content=\"CG Epic\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-15T22:20:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-18T02:58:20+00:00\" \/>\n<meta name=\"author\" content=\"Smess\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/thumb_uv_map_animation.webp\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Smess\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/\",\"url\":\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/\",\"name\":\"How to Animate a Shape Tween for UV Map - CG Epic\",\"isPartOf\":{\"@id\":\"https:\/\/cgepic.com\/en\/#website\"},\"datePublished\":\"2020-02-15T22:20:14+00:00\",\"dateModified\":\"2020-02-18T02:58:20+00:00\",\"author\":{\"@id\":\"https:\/\/cgepic.com\/en\/#\/schema\/person\/aa2327611a785e24e99e138ad3466491\"},\"breadcrumb\":{\"@id\":\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cgepic.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como Animar uma Interpola\u00e7\u00e3o de Shape para UV Map\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cgepic.com\/en\/#website\",\"url\":\"https:\/\/cgepic.com\/en\/\",\"name\":\"CG Epic\",\"description\":\"The epic Computer Graphics blog!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cgepic.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cgepic.com\/en\/#\/schema\/person\/aa2327611a785e24e99e138ad3466491\",\"name\":\"Smess\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cgepic.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c354ccdfda58d8916937685d6277654c?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c354ccdfda58d8916937685d6277654c?s=96&d=wavatar&r=g\",\"caption\":\"Smess\"},\"description\":\"My passion and enthusiasm for computer graphics (CG), games and animation mix technology with art, which are things that I admire a lot and I want to seek it as my main career.\",\"sameAs\":[\"http:\/\/cgepic.com\",\"https:\/\/www.linkedin.com\/in\/smess\/\"],\"url\":\"https:\/\/cgepic.com\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Animate a Shape Tween for UV Map - CG Epic","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/","og_locale":"en_US","og_type":"article","og_title":"How to Animate a Shape Tween for UV Map - CG Epic","og_description":"You probably have known some ways to animate a UV Map, either through modifiers like UV Warp, with shader nodes or even with add-ons. In this guide, you&#8217;ll learn how to make a kind of \u201cShape Key\u201d to UV Map, it means, make a shape tween and animate. The formula we&#8217;ll have is very simple [&hellip;]","og_url":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/","og_site_name":"CG Epic","article_published_time":"2020-02-15T22:20:14+00:00","article_modified_time":"2020-02-18T02:58:20+00:00","author":"Smess","twitter_card":"summary_large_image","twitter_image":"https:\/\/cgepic.com\/wp-content\/uploads\/2020\/02\/thumb_uv_map_animation.webp","twitter_misc":{"Written by":"Smess","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/","url":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/","name":"How to Animate a Shape Tween for UV Map - CG Epic","isPartOf":{"@id":"https:\/\/cgepic.com\/en\/#website"},"datePublished":"2020-02-15T22:20:14+00:00","dateModified":"2020-02-18T02:58:20+00:00","author":{"@id":"https:\/\/cgepic.com\/en\/#\/schema\/person\/aa2327611a785e24e99e138ad3466491"},"breadcrumb":{"@id":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cgepic.com\/pt\/animate-uvmap-shape-blender\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cgepic.com\/en\/"},{"@type":"ListItem","position":2,"name":"Como Animar uma Interpola\u00e7\u00e3o de Shape para UV Map"}]},{"@type":"WebSite","@id":"https:\/\/cgepic.com\/en\/#website","url":"https:\/\/cgepic.com\/en\/","name":"CG Epic","description":"The epic Computer Graphics blog!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cgepic.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cgepic.com\/en\/#\/schema\/person\/aa2327611a785e24e99e138ad3466491","name":"Smess","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cgepic.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c354ccdfda58d8916937685d6277654c?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c354ccdfda58d8916937685d6277654c?s=96&d=wavatar&r=g","caption":"Smess"},"description":"My passion and enthusiasm for computer graphics (CG), games and animation mix technology with art, which are things that I admire a lot and I want to seek it as my main career.","sameAs":["http:\/\/cgepic.com","https:\/\/www.linkedin.com\/in\/smess\/"],"url":"https:\/\/cgepic.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/posts\/1866"}],"collection":[{"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/comments?post=1866"}],"version-history":[{"count":24,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/posts\/1866\/revisions"}],"predecessor-version":[{"id":1907,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/posts\/1866\/revisions\/1907"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/media\/1890"}],"wp:attachment":[{"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/media?parent=1866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/categories?post=1866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cgepic.com\/en\/wp-json\/wp\/v2\/tags?post=1866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}