Procedural UV Mapping + Decals

   4527   7   1
User Avatar
Member
67 posts
Joined: April 2017
Offline
I need help.
I correct maped a wall using procedural UV nodes.

Now, I want to apply a dirt-texture on top part of the wall… but the texture is tiled because the procedural UV mapping.

What would be the easy way to get it. (No complicated networks or wet maps)

Suggestions, tutorials links or example file , appreciated.

Attachments:
houdini_decal.png (187.4 KB)

User Avatar
Member
192 posts
Joined: Nov. 2008
Offline
in the material bulder, you can set the ‘wrap’ mode on the texture vop to ‘decal’.
Edited by brianBurke - Sept. 11, 2017 13:46:08

Attachments:
texturewrap.jpg (147.1 KB)

User Avatar
Member
67 posts
Joined: April 2017
Offline
Thanks Brian, but I cannot reproduce your solution.

I always use Principled_Shader to output maps to UE4 game engine.
I modified the Principled_shader to wrap the base_color texture as “decal”,.. but nothing changes in viewport. ¿?

If anyone could upload a modified principled shader with the decal texture over base_color… would be very appreciated.
Edited by bhb - Sept. 11, 2017 20:58:08

Attachments:
houdini_decal_error.jpg (242.9 KB)

User Avatar
Member
7755 posts
Joined: Sept. 2011
Offline
The texture wrap modes in the viewport are either broken, or not supported by the principled shader. However, the resulting mantra/bake texture render should respect the value.
User Avatar
Member
67 posts
Joined: April 2017
Offline
I rendered both ipr and final render .exr… All images are completely black, no color info.
Also tried emmision channel with “decal” texture and is all black.
Only works with Wrap:Repeat

Attachments:
houdini_texture_decal_ipr_black_.jpg (95.5 KB)

User Avatar
Member
67 posts
Joined: April 2017
Offline
https://www.sidefx.com/forum/topic/49487/ [www.sidefx.com]
Another way in that post to generate true decals using the ray node.
But is not what I want.
-creates aditional polygons.
-dificult to place over.
Edited by bhb - Sept. 12, 2017 02:45:05

Attachments:
houdini_true_decals_method.jpg (88.5 KB)

User Avatar
Member
323 posts
Joined: Jan. 2015
Offline
Hi there,
you might want to use more UVs, one for the base texture and one for the decal.
Or you need non overlapping UVs.

Olaf
User Avatar
Member
67 posts
Joined: April 2017
Offline
Hi Olaf,
My idea was to bake all decal textures in only-one-texture, and then multiply it by the lightmapUV tile U1-V1 in UE4 (with TextureCoord index=1).
Use more Uvs as you said should be a perfect solution.
UV index0: difuse colors
UV index1: UE4 lightmap
UV index2: decals


The original post comes from here:
https://www.sidefx.com/forum/topic/50502/ [www.sidefx.com]
In that post, got to mix color+decal in mantra network.. but that didnt work for UE4, because the game engine doesnt reproduce the houdini networks.

I will continue investigating a way or tricky for the decal not be applied as procedural.

Here`s another thing I was working yesterday.
Using the bool node to cut primitives, and then , use 2 identical materials in UE4(+1 draw calls).
+1 Material for diffuse colors.(bottom)
+1 Same instanced material+decal included (top)

Better than ray node but the primitives are also divided.

Attachments:
UvTexture_Bool_Decals.jpg (69.7 KB)

  • Quick Links