Chaos Corona for Cinema 4D > [C4D] General Discussion

Displacement Min / Max Value

(1/1)

CreoAtive:
Hi,
I noticed it was not possible to set negative Min values for displacement in the coronoa material.
Negative values are much needed when working with displacementmaps from zbrush since you need to displace the geometry in both ways.
Dark values should displace the geometry inwards and bright values should displace the geometry outwards while grey means no displacement.
With the current minimum value of 0 for the Min input field you cannot achieve this so I went ahead and modified "mcoronamaterial.res" in plugins/corona/res/description
in line 207 to allow negativ values:


--- Code: ---GROUP ID_CORONA_DISPLACEMENT
    {
        REAL CORONA_DISPLACEMENT_MIN_LEVEL { MIN -100; MAX 100; STEP 0.1; UNIT METER; }
        REAL CORONA_DISPLACEMENT_MAX_LEVEL { MIN 0; MAX 100; STEP 0.1; UNIT METER; }
        SHADERLINK CORONA_DISPLACEMENT_TEXTURE { }
    }
--- End code ---

Now I get the desired behaviour. Maybe this helps someone else :-)

Regards,
CreoAtive

borisquezadaa:
Interesting.
At least in daily build it is possible to do it.

CreoAtive:
I think it's a problem limited to cinema 4d :-) and it's just the material dialog that prevents you from inserting negative values, the rendering core renders all as expected.

Nejc Kilar:
This actually comes in handy, thank you for sharing! :)

Shawn Astrom:

Yes! This is just what I need with a landscape I was working on.

This should be fixed in the C4D plugin. The displacement should not have a clamped min/max.

- Shawn

Navigation

[0] Message Index

Go to full version