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?
Radial anisotopy
Moderators: ChrisHekman, aoktar
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.
- Attachments
-
- swirl2.zip
- (5.75 MiB) Downloaded 77 times
How about blur a little gradient image on this skew or bake C4D nodde gradient ?
Architectural Visualizations http://www.archviz-4d.studio
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.
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.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.
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
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:
Here is the .orbx mat: ciao,
Beppe
In this way the interpolation is correct, and the gradient stays procedural.
Here is the .orbx mat: ciao,
Beppe
Yes of course it can be usedjobigoud 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?
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw