Mask only tops of a geometry

Started by Paulo_Kick, November 13, 2017, 06:23:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paulo_Kick

Is there any way to mask only the tops of a geometry? As for example, add a deposited dust effect, just like this set of nodes from Redshift to Cinema 4D in this video: https://www.youtube.com/watch?v=FksQhRr1iYg&t=145s


The closest I found was to use a color gradient node as mask, but is still not the result I want to achieve


evilmaul

you could use the occlusion node as a mask to darken things up or as a label plugged in a different material (to emulate dust) if thats what you want.
you have to set the bias in Y to -1  and the normal to   >1 (you can play with values way over 1 and see how you like it best)

cheers,
Marco


mattjgerard

I did this exact effect to get some worn edges on thumbscrews on a model I was working on. The settings are really finicky and took me a while to dial it in, but it worked perfectly in the end. In the matgraph, select the occlusion node and hit 'c' on the keyboard to directly view what the node is doing.

INNEO_MWo

#3
Here's a quick solution:

I used a free model from http://threedscans.com/.


First I  rendered the default material (orthographic camera |front view) with the normal pass. Then I attached the normal (exr) as a texure and used the color key mask to filter the green (top normals) and used this as alpha in the composite note. And that's all.

For details download the packed KSP from my OneDrive: https://onedrive.live.com/embed?cid=E6906FD5F0397B5F&resid=E6906FD5F0397B5F%2116040&authkey=AIXH1CZkPXHAm1c


Hope that helps

Cheers
Marco

INNEO_MWo

I also tried a solution with a strong light spot above the model pointing to the bottom. That can be easily done with the HDRI editor.
And I used this render as a texture to define the alpha of dust (noise).
(same technique as the previous post.


Sorry Albert Einstein!

Will Gibbons

Great solutions Marco! I sure could have used this a few weeks ago :P