{"id":4902,"date":"2024-08-03T00:29:00","date_gmt":"2024-08-03T00:29:00","guid":{"rendered":"https:\/\/cgelementary.com\/?post_type=knowledgebase&#038;p=4902"},"modified":"2024-08-23T18:09:42","modified_gmt":"2024-08-23T18:09:42","slug":"lightmap-uv-resolution","status":"publish","type":"knowledgebase","link":"https:\/\/cgelementary.com\/?knowledgebase=lightmap-uv-resolution","title":{"rendered":"Lightmap UV &amp; Resolution"},"content":{"rendered":"\n<div class=\"wp-block-divi-layout\">[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h5>Light map UV<\/h5>\n<p>Lightmap UVs are essential for Light Baking.<br \/>If you have used game engines, you are probably familiar with the concept of light map UV.<br \/>In X-Ray, you need to have a second UV set with the name &#8220;LightmapUV&#8221; to bake light map.<br \/>If your mesh doesn&#8217;t have one, X-Ray will create one for you using Maya&#8217;s Auto UV tool.<br \/>The naming is the same as Unreal Engine, so if you export your scene from unreal and import it to Maya, your light map UV can be used by X-Ray.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/UvOverlap.jpg&#8221; title_text=&#8221;UvOverlap&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||2px|||&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>Non-overlapping UV\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0 Overlapping UV<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/AutoUv.jpg&#8221; title_text=&#8221;AutoUv&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>For objects with sharp edges the AutoUV may work just fine, but if you have objects with round and soft look it might be best to manually UV your object.<\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>if you have Maya X, Rail UV can be a good tool for creating clean Uvs, you can later layout UVs and create non-overlapping UVs. It is also wise to always hide your UV seams somewhere not too visible, like under or behind the mesh, or over the hard edges.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/UVSettings.png&#8221; title_text=&#8221;UVSettings&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||5px|||&#8221; custom_padding=&#8221;||0px|||&#8221; global_colors_info=&#8221;{}&#8221;]<h5>Light map UV in X-Ray Window<\/h5>\n<p>There are 3 UV buttons on x-ray baking window.<\/p>\n<p><strong>Auto UV:<\/strong> Create LightMapUV for selected Meshes using Maya&#8217;s AutoUV command.<\/p>\n<p><strong>Copy UV:<\/strong> if your mesh already has unwrapped UVs you can use that as your lightmap UV, Left-Click for more options<\/p>\n<ul>\n<li><strong>Copy Current:<\/strong> Copy current UV set for Lightmap UV.<\/li>\n<li><strong>Copy Layout:<\/strong> Copy Current UV set and apply UV Layout, this is good if your object already have unfolded UV but they are overlapping.<\/li>\n<\/ul>\n<p><strong>Specify UV Set:<\/strong> Sometimes during UV creation or when you import models from external apps, UV sets will get all mixed up and X-Ray fails to assign the right UV set to the lightmaps, while in latest versions of X-Ray this may never happen but still if it ever happened you can use this button to help it find the right UV set, Left-Click for more options.<\/p>\n<ul>\n<li><strong>\u00a0Auto Find UV Index:<\/strong> Automatically search for lightmap UV and assign it to all X-Ray maps.<\/li>\n<li><strong>\u00a0Use Specific Index:<\/strong> You can enter the lightmap index and X-Ray will use that.<\/li>\n<\/ul>\n<p>Remember that you may see only 2 UV sets on your model and thinking that UV index is 0 and 1 while in Maya there was many removed UV sets in the middle, for example in this image you can see that we have 2 UV sets in the model but the index of lightmap UV is actually 4, the other 3 were UV sets that I created before but later removed them from the model.<\/p>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/uvsets.png&#8221; title_text=&#8221;uvsets&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||21px|||&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||3px|||&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<p>Remember to always consider your light map resolution when making light map UVs:<\/p>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/LightmapResAndUv.jpg&#8221; title_text=&#8221;LightmapResAndUv&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-13px|||||&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;5px|||||&#8221; global_colors_info=&#8221;{}&#8221;]<p>Lightmap resolution 64 vs Lightmap resolution 512<\/p>\n<p>The lower the resolution, the more empty spaces you need between each UV shell and vice versa.<br \/>This will help prevent shadow and light bleeding. Maya UV Layout Tool have an option for adding this space between shells. It is also recommended to avoid putting UV&#8217;s too close to the borders of 0-1 UV Area.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_padding=&#8221;||6px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h5>Lightmap Resolution<\/h5>\n<p>Each object has a lightmap resolution.<br>you can manually add Lightmap resolution attribute to your objects using the baking window or you can set a global value in the baking window and as soon as you start baking, the attribute will be added to all objects. You can find lightmap resolution in Channel Box.<br>Usually you don&#8217;t need to set a very high resolution for lightmaps but here are some cases where you want to increase lightmap resolution: To achieve cleaner lighting quality: Specially in case of interior scenes, you may want to use a higher resolution to achieve cleaner GI and lighting.<\/p>\n<p>if you get light leak or dark spots in corners of the room you might be able to fix it by increasing lightmap resolution. Note that this won&#8217;t affect the quality of lighting, only the resolution of the lightmap.<\/p>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/LightmapRes.jpg&#8221; title_text=&#8221;LightmapRes&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>In the above image, the floor is covering both dark areas of the interior and the sunny outside, because of the low lightmap resolution you can see that some lights from outside are visible inside the room.<br \/>when we speak of increasing resolution you don&#8217;t always need to go to a very high resolution as you can see in the above example just increasing it from 64 to 128 has solved the problem without increasing bake time that much.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_padding=&#8221;10px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h5>To fix UV seam errors<\/h5>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/ToFixUvSeams.jpg&#8221; title_text=&#8221;ToFixUvSeams&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>There are times when you just can&#8217;t hide UV Seams, increasing lightmap resolution will always help.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h5>Lots of small tiles in UV<\/h5>\n<p>You need to use higher lightmap res if your mesh has lots of small parts. look at the UV map on the right, not only a 64&#215;64 map would not give you any shadow detail, there will also be a lot of dark spots on wrong areas of the mesh.<\/p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/SmallUv.jpg&#8221; title_text=&#8221;SmallUv&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h5>Your surface covers a large area<\/h5>\n<p>for example, floor or walls of your room, specially if there are many objects on them which cast shadows.<\/p>\n<p>Note that higher Lightmap Resolution also means sharper shadow edges, so if you want to get a very sharp shadows from something like a sunlight, you need to increase lightmap resolution.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":491,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[132],"class_list":["post-4902","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-basics"],"_links":{"self":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/4902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/users\/491"}],"replies":[{"embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4902"}],"version-history":[{"count":9,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/4902\/revisions"}],"predecessor-version":[{"id":5397,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/4902\/revisions\/5397"}],"wp:attachment":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4902"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fknowledgebase_cat&post=4902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}