Radial anisotopy

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

Moderators: ChrisHekman, aoktar

Post Reply
boxfx
Licensed Customer
Posts: 276
Joined: Fri Apr 27, 2012 9:13 am

In the attached scene I have a swirled, radial, anisotropic reflection on a round label. It works 99% perfectly, but where my rotation texture flips back from black to white at the 6 o'clock position, you can always see a line in the reflection. Does anyone have a suggestion on how to avoid this?
aniso.png
Attachments
swirl.zip
(5.69 MiB) Downloaded 126 times
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

How about using a procedural version of this angular gradient? This way whatever location is sampled it should always resolve to one side or the other, instead of interpolating between the two as it's doing here.
boxfx
Licensed Customer
Posts: 276
Joined: Fri Apr 27, 2012 9:13 am

That should be the solution in theory, but in practice it doesnt work due to the srgb/linear interpolation of c4d's gradient. Left is the pixel based texture, right is the c4d gradient shader. The incorrect gamma input skews the anisotropy off into a curve. Gamma adjustments on a colour correction node cant fix it. Octane doesnt support the different c4d gradient interpolation modes (smooth, linear, cubic etc) so you can't fix it that way either.
swirlcurve.png
Attachments
swirl2.zip
(5.75 MiB) Downloaded 76 times
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

How about blur a little gradient image on this skew or bake C4D nodde gradient ?
Architectural Visualizations http://www.archviz-4d.studio
boxfx
Licensed Customer
Posts: 276
Joined: Fri Apr 27, 2012 9:13 am

If I bake the c4d gradient... then A, I still have the gamma problem with it bending the reflections, and B, that turns it into pixels internally, so Im back at my original problem of there being a seam at the start/end because the black to white transition will blend via sampling.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

boxfx wrote:That should be the solution in theory, but in practice it doesnt work due to the srgb/linear interpolation of c4d's gradient. Left is the pixel based texture, right is the c4d gradient shader. The incorrect gamma input skews the anisotropy off into a curve. Gamma adjustments on a colour correction node cant fix it. Octane doesnt support the different c4d gradient interpolation modes (smooth, linear, cubic etc) so you can't fix it that way either.
The attachment swirlcurve.png is no longer available
There's not any sRGB interpolation. Because it's not baking the gradient to images. It's using some OSL script to simulate the gradient and you can see the exported node in this picture.
Attachments
a1.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

The OSL translation is setting the gradient interpolation to Cubic, so you need to export the material in .orbx from Node Editor, open it in Standalone to change the interpolation to Linear, save the material in LocalDB, and import it back in c4d:
0A0B9A1E-BB90-49DB-A34B-07110460E5BC.jpeg
In this way the interpolation is correct, and the gradient stays procedural.

Here is the .orbx mat:
RadialAnisotropyLinear.zip
(87.33 KiB) Downloaded 81 times
ciao,
Beppe
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

Does it need to go through the Gradient map? Can the gradient OSL be exposed as a separate texture, similar to the "Gradient generator" texture in standalone?
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

jobigoud wrote:Does it need to go through the Gradient map? Can the gradient OSL be exposed as a separate texture, similar to the "Gradient generator" texture in standalone?
Yes of course it can be used
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Maxon Cinema 4D”