Page 1 of 4

Blending Dirt and ImageTexture?

Posted: Fri Jun 27, 2014 4:03 pm
by blastframe
Is there a way to multiply a Dirt Map and Image Texture? I'd like to create noise at the edges of a model. I tried using the Multiply node and it didn't work as expected. Thanks!

Re: Blending Dirt and ImageTexture?

Posted: Fri Jun 27, 2014 4:10 pm
by gordonrobb
Best to use Mix. Use the Dirt node as the amount, and mix between your texture and whatever you want the noise to be (RGB, or Texture)

Re: Blending Dirt and ImageTexture?

Posted: Fri Jun 27, 2014 5:28 pm
by blastframe
Great, thanks! I will try it when I get home :D

Re: Blending Dirt and ImageTexture?

Posted: Sat Jun 28, 2014 8:03 pm
by blastframe
Hi,
I've tried the method you described and it resulted in the following output. Is there a way to multiply the noise? It seems to be in Normal blend mode. Thank you!
Dirt Settings
Dirt Settings
Dirt Render
Dirt Render

Re: Blending Dirt and ImageTexture?

Posted: Sat Jun 28, 2014 9:35 pm
by blastframe
I came up with a solution that I wanted to share.

I created a Multiply node that contained my ImageTexture and a MixTexture node. Inside of the MixTexture is:
  • Amount : Dirt
  • Texture1 : Noise
  • Texture2 : RgbSpectrum set to white
By tweaking the parameters of the Noise and Dirt nodes, I was able to create grunge effects in the corners of my models. Thanks gordonrobb for the help!

Re: Blending Dirt and ImageTexture?

Posted: Sun Jun 29, 2014 8:57 am
by gordonrobb
Ok I'm confused but interested.

What is wrong with the image you show as the result? Is it that the dark parts of the noise or not darkening the original texture, but the noise image is replacing the original texture? Also, not sure I understand your solution. Can you show the node setup and the result?
Ta!

Re: Blending Dirt and ImageTexture?

Posted: Sun Jun 29, 2014 10:56 pm
by blastframe
gordonrobb wrote:Ok I'm confused but interested.

What is wrong with the image you show as the result? Is it that the dark parts of the noise or not darkening the original texture, but the noise image is replacing the original texture? Also, not sure I understand your solution. Can you show the node setup and the result?
Ta!
Hi gordonrobb,
The problem with the image I showed was that the noise was not being multiplied in its blending with the ImageTexture.

Here's my setup for Custom Dirt:
Multiply node within the Diffuse Channel
Multiply node within the Diffuse Channel
Multiply & MixTexture nodes within the Multiply node
Multiply & MixTexture nodes within the Multiply node
Two Grungy Images within the Multiply node
Two Grungy Images within the Multiply node
Custom Dirt Map Within the MixTexture node
Custom Dirt Map Within the MixTexture node

Re: Blending Dirt and ImageTexture?

Posted: Sun Jun 29, 2014 11:02 pm
by blastframe
This is the result (there is some ambient occlusion, but the streaking in the corners is created by this custom dirt material.
Custom Dirt Material Result
Custom Dirt Material Result

Re: Blending Dirt and ImageTexture?

Posted: Sun Jun 29, 2014 11:28 pm
by gordonrobb
Looks great, but your images make no sense to me. Doesn't C4D use Nodes? Not being familiar with it, I can't translate it, in my head, to a node tree.

Re: Blending Dirt and ImageTexture?

Posted: Mon Jun 30, 2014 1:15 am
by blastframe
gordonrobb wrote:Looks great, but your images make no sense to me. Doesn't C4D use Nodes? Not being familiar with it, I can't translate it, in my head, to a node tree.
Node Tree
Node Tree