Get rid of the Dirt node "feathering"?

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
User avatar
ChrisH
Licensed Customer
Posts: 103
Joined: Sun Mar 06, 2011 12:13 am
Location: Lidköping, Sweden
Contact:

Is there any way to get a sharp result of the Dirt node?

I've been a bit annoyed by how "feathered" the output of the Dirt node (which I otherwise like).
No matter what I've tried (like Gradient with Constant interpolation) I can't get a sharp result.

Today I wrote a OSL script that limits output to two possible values (0 or 1):

Code: Select all

    if (Value < Limit) {
        return 0;
    } else {
        return 1;
    }
(Applied to each channel)

This works fine for any texture (procedural or image, including Vertex Color) I've tried, except for the Dirt node, where the result still has "feathering".
This is not logical (like Boolean logic..): The result can't/shouldn't have any other values than 0 or 1!

Then I thought that maybe the output of the Dirt node is a "low res" and gets scaled up. But when I tried with a 16x16 image texture (a gradient) I could still get a sharp edge.
(It might still be true, it could be scaled after the processing...)

Is there any other way around this?
(Other than using a baked texture)

Why is this an issue?
Because:
1. It's not consistent with other textures.
2. It limits the choices for the artists.
3. Dirt (and rust) does have sharp edges.
Attachments
(This is just a mesh with random extrusion to test with different angles etc)
(This is just a mesh with random extrusion to test with different angles etc)
Windows 10 Pro - AMD Ryzen 7 2100X 8 core 3.70GHz - 32GB RAM - GeForce GTX 1080 8GB
Octane Prime - Blender Plugin user

Metal IOR values for Octane (with .blend library): https://chris.hindefjord.se/resources/rgb-ior-metals/
User avatar
Phantom107
Licensed Customer
Posts: 686
Joined: Tue Jul 24, 2012 11:31 am
Location: The Netherlands

Did some tests and although it's not perfect, I guess it's pretty close....

Basically I hooked the dirt node into a comparison node, see pics
octaneforum3.JPG
octaneforum.png
octaneforum2.png
Post Reply

Return to “General Discussion”