Editing Arcane University:Hiding Texture Seams with Blended Decals

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 4: Line 4:
 
3D models are UV unwrapped into two dimensions in order for textures to be applied to them. At the seams where these models are unwrapped, there will also be seams in the texture that are plainly visible in-game. There is, however, a way to mask these seams by creating a blended transition between the two surrounding textures. This tutorial will show how to do this using decals.
 
3D models are UV unwrapped into two dimensions in order for textures to be applied to them. At the seams where these models are unwrapped, there will also be seams in the texture that are plainly visible in-game. There is, however, a way to mask these seams by creating a blended transition between the two surrounding textures. This tutorial will show how to do this using decals.
  
Once your mesh is UV unwrapped and textured, select the faces comprising the area where a blended transition should happen. Often this will be a "skirt", i.e. a strip of faces running along the seam. The skirt mesh might cover only one of the materials on one side of the seam, or it can cover the seam and thus parts of both materials. In other cases where one of the textures is only on a small amount of geometry (like the end cap of a wooden beam), the blending zone may cover all of this texture's faces.
+
* Have your mesh UV unwrapped and textured. Observe that there are seams.
 
+
* Select the faces comprising the area where a blended transition should happen.
Duplicate these faces (shift+D in blender) and break into a new mesh (P, selection). If the mesh covers only one of the materials (either as a skirt mesh or as fully duplicated geometry), UV it so it is a continuation of the ''other'' material. If it's a skirt mesh that overlaps both materials, then the UV doesn't matter.
+
** Often this will be a "skirt", i.e. a strip of faces running along the seam. The skirt mesh might cover only one of the materials on one side of the seam, or it can cover the seam and thus parts of both materials.
 
+
** In other cases where one of the textures is only on a small amount of geometry (like the end cap of a wooden beam), the blending zone may cover all of this texture's faces.
Make it so that the new mesh has two vertex color layers. In the second layer (which acts as the alpha channel), paint all the outer vertices black. These will become the more transparent vertices. The vertices with high alpha values (i.e. more white) will be more opaque. Note that, in Blender, the "second layer" is the one that is physically listed second, regardless of name.
+
* Duplicate these faces (shift+D in blender) and break into a new mesh (P, selection). If the mesh covers only one of the materials (either as a skirt mesh or as fully duplicated geometry), UV it so it is a continuation of the ''other'' material. If it's a skirt mesh that overlaps both materials, then the UV doesn't matter.
 
+
* Add two vertex color layers on the new mesh.
On a skirt mesh that straddles two materials, this will be the vertices on both outer edges straddling the strip of faces. In this case, be sure there are intermediate vertices that are white, or the whole thing will be invisible. If the mesh covers all the geometry of one of the textures, then only the edge going over the seam needs to be painted black.
+
* In the second vertex color layer that you created, paint all the outer vertices black.
 
+
** On a skirt mesh that covers only one of the materials, this will be all the vertices along the edge that isn't the seam. On a skirt mesh that covers the seam and parts of both materials, this will be the vertices on both outer edges straddling the strip of faces.
Add the following flags to the shader property, in addition to the usual shader flags.
+
** If the mesh covers all the geometry of one of the textures, then there will be only one edge that needs to be painted black, namely the seam.
* Decal
+
* Apply the following properties on the blending mesh (in order of appearance in Blender 2.79)
* Dynamic_Decal
+
** cast shadows
* Vertex_Alpha
+
** decal
* Vertex_Colors
+
** dynamic decal
 
+
** own emit
In Nifskope, add a NiAlphaProperty to the Trishape with vertex alpha. Turn "Enable Blending" on and "Enable Testing" off.
+
** receive shadows
 
+
** remappable textures
{{note|Trishapes with alpha properties can not receive Material Shaders (Directional Shaders).}}
+
** specular
 +
** vertex alpha
 +
** z buffer test
 +
** env map light fade
 +
** vertex colors
 +
** z buffer write
 +
* In nifskope, apply a NiAlphaProperty in your blending node. Set "Enable Blending" and unset "Enable Testing".
 +
* The result will be a semi-blended decal, and no seams.
  
 
== Gallery ==
 
== Gallery ==
 
<gallery mode=traditional>
 
<gallery mode=traditional>
File:Blended decals skirt demonstration.png|Demonstration of a skirt mesh covering only the blue material, UVed with red, and the edge that must be painted black.
+
File:Blended decals skirt demonstration.png|Demonstration of a skirt mesh covering only one of the materials (the blue), and the edge that must be painted black.
 
File:Blended decals skirt demonstration overlapping.png|Demonstration of a skirt mesh (green) covering the seam (red line) and parts of both materials, and the two edges to be painted black.
 
File:Blended decals skirt demonstration overlapping.png|Demonstration of a skirt mesh (green) covering the seam (red line) and parts of both materials, and the two edges to be painted black.
 
File:Blended decals demonstration patch.png|Demonstration of an object continuously textured with blue, with a red texture overlaid on part of it (overlapping area in green), and a skirt mesh used for blending.
 
File:Blended decals demonstration patch.png|Demonstration of an object continuously textured with blue, with a red texture overlaid on part of it (overlapping area in green), and a skirt mesh used for blending.
Line 30: Line 37:
 
File:Blended decals skirt.png|Example of a skirt mesh between two different materials
 
File:Blended decals skirt.png|Example of a skirt mesh between two different materials
 
File:Blended decals destroyed.png|Destroyed variant of an asset with a blended decal between the intact and debris textures
 
File:Blended decals destroyed.png|Destroyed variant of an asset with a blended decal between the intact and debris textures
File:Blended decals patched geometry.png|Example of a continuously textured asset with another texture patched on top, also fully acting as the blended decal
 
File:Blended decals patched skirt.png|Example of a continuously textured asset with another texture patched on top, with skirt meshes for blending
 
 
</gallery>
 
</gallery>

Please note that all contributions to Beyond Skyrim are considered to be released under the Creative Commons Attribution-ShareAlike (see Beyond Skyrim Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: