Filling in an area created by a Bump Map

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

Moderators: ChrisHekman, aoktar

Post Reply
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Hey there -

I've got an interesting problem and I'm certain there is an Octane solution. The image attached is a metal material with some roughness and a diamond hatch pattern created by using a 4k bump map. Nothing crazy going on with the material. This effect is perfect looking. But the actual real life product has a paint fill inside the lines created by the diamond pattern.

If this was done with polys I would simply make these a selection. But since these are created with a bump map, is there any way to manipulate the inside? Apply a "paint fill" so to speak? Doing this with actual geo would add a tremendous amount of polys and size, so I really don't want to have to go that way.

Thanks again for all your support! I'm using C4D 21



Kane
Attachments
FillGrooves.PNG
User avatar
bepeg4d
Octane Guru
Posts: 10328
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Kane,
have you tried to use the bump map in the amount of a Mix texture node, to add some color in the diffuse channel?
ciao Beppe
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Hey Beppe! Thanks for the quick reply. Let me give that a go, I haven't tried that. I was trying to leave diffuse along as much as possible. But let me give that a go and see if it works!

Thanks!

Kane
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Hey Beppe -

Sadly this doesn't seem to have any impact at all. I even tried it on a new material just in case something was weird. I might be misunderstanding your suggestion. Here is a very simple node editor... did I miss it completely?

Thanks!
Kane
Attachments
NoDarkPaintInHatch.PNG
jayroth2020
OctaneRender Team
Posts: 487
Joined: Mon May 04, 2020 7:30 pm

you can try something similar with a layered material setup:
  • 1. Right click on your original material and choose "Convert to sub material." Pipe that into the Base Material port of the Layered Material
    2. Create an RGB spectrum node with the color you want in the recesses.
    3. Create a Material Layer. Pipe in the RGBSpectrum node into the Diffuse port of the Material Layer.
    4. Make sure you have a map that represents the area where you want color. That map should be grayscale. You are going to use this map to limit the color to the indented slot areas (my interpretation of what you want to do).
    5. Pipe this map into Layer Opacity port of the Material Layer
In the included illustration, I am using a Checks node to create the mask. You would put your bump map mask into the Layer opacity port on the Material Layer node. You should then see the color you want limited to just the recessed areas of your bump.

Make sense?
Bump_Map_Area_Fill.png
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Bingo jayroth2020! This works perfectly! And the technique has so many possibilities. Very cool, thank you so much for your help!

Kane
User avatar
bepeg4d
Octane Guru
Posts: 10328
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Kane,
yes, the Layered material is a great solution, thanks Jay for thinking at it, but for the record, it should work also in your first attempt, if you also use a color-correction node connected to the bump map, and piped in the Specular-Map pin, in order to control the metallicity of the material, and reveal the diffuse channel.
ciao Beppe
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Hey Beppe - I'll give it a go again and see if I can make your method work. I do like the control you mention. Either way, I've got a solid solution so I really appreciate you guys jumping in to help me!

Kane
jayroth2020
OctaneRender Team
Posts: 487
Joined: Mon May 04, 2020 7:30 pm

Hi Kane,

in looking at your screenshot, have you tried piping the image texture node into the texture 2 slot of the mix node?
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
berwickredan
Licensed Customer
Posts: 15
Joined: Wed Oct 23, 2019 7:09 pm

Hey Jay - Yeah good eye. I did try that and it had no impact. I also tried Beppe's idea but I think my image is actually the culprit. Maybe! I'm going to keep working on it so I have more options. But your original method worked great so I'll go that direction for now.

I appreciate the follow up as well!

Kane
Post Reply

Return to “Maxon Cinema 4D”