Blending Dirt and ImageTexture?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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!
gordonrobb
Licensed Customer
Posts: 1247
Joined: Sat Mar 16, 2013 9:08 am

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)
Windows 8 Pro | i7 3770 OC | 32 GB Ram | Single Titan (plus Black Edition on Order) | Octane Lightwave |
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Great, thanks! I will try it when I get home :D
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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!
gordonrobb
Licensed Customer
Posts: 1247
Joined: Sat Mar 16, 2013 9:08 am

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!
Windows 8 Pro | i7 3770 OC | 32 GB Ram | Single Titan (plus Black Edition on Order) | Octane Lightwave |
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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
gordonrobb
Licensed Customer
Posts: 1247
Joined: Sat Mar 16, 2013 9:08 am

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.
Windows 8 Pro | i7 3770 OC | 32 GB Ram | Single Titan (plus Black Edition on Order) | Octane Lightwave |
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

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
Post Reply

Return to “Maxon Cinema 4D”