How do I flip Y in my DirectX normal map in Octane?

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

Moderators: ChrisHekman, aoktar

Post Reply
cashley
Licensed Customer
Posts: 24
Joined: Fri Jan 22, 2016 4:41 am

I have a bunch of OpenGL based normal maps that I need to flip the green (Y) channel on in Octane. Anyone know a trick or perhaps has an OSL shader that does this?

Thanks in advance!

Chad
cashley
Licensed Customer
Posts: 24
Joined: Fri Jan 22, 2016 4:41 am

Does anyone have any OSL coding experience? I'd happily pay for an OSL shader that allows me to invert the Green channel of a texture. Though this functionality should be built into Octane. Seeing how everyone else has this function (including Physical).
milanm
Licensed Customer
Posts: 261
Joined: Tue Apr 30, 2013 7:23 pm

Almost done. I don't know how I missed this topic. :?

Cheers
Milan
Colorist / VFX artist / Motion Designer
macOS - Windows 7 - Cinema 4D R19.068 - GTX1070TI - GTX780
cashley
Licensed Customer
Posts: 24
Joined: Fri Jan 22, 2016 4:41 am

Thanks to Albert Omoss for this:

#include <octane-oslintrin.h>
shader Texture(
color col1 = color(0.5, 0.5, 0.5),
output color c = 0)
{
color col2 = _evaluateDelayed(col1, u, v);

c = color(col2[0], 1.0 - col2[1], col2[2]);
}

works perfectly.
milanm
Licensed Customer
Posts: 261
Joined: Tue Apr 30, 2013 7:23 pm

Ah, he was faster, great!

Cheers
Milan
Colorist / VFX artist / Motion Designer
macOS - Windows 7 - Cinema 4D R19.068 - GTX1070TI - GTX780
Studio21
Licensed Customer
Posts: 212
Joined: Wed Nov 16, 2016 11:14 am

Very useful! cheers
Post Reply

Return to “Maxon Cinema 4D”