Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CreoAtive

Pages: [1]
1
[C4D] General Discussion / Re: Displacement Min / Max Value
« on: 2015-01-22, 14:15:22 »
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.

2
[C4D] General Discussion / Displacement Min / Max Value
« on: 2015-01-22, 11:11:24 »
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: [Select]
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 { }
    }

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

Regards,
CreoAtive

Pages: [1]