Page 1 of 1
How do I flip Y in my DirectX normal map in Octane?
Posted: Fri Sep 21, 2018 5:46 pm
by cashley
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
Re: How do I flip Y in my DirectX normal map in Octane?
Posted: Fri Sep 21, 2018 7:06 pm
by cashley
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).
Re: How do I flip Y in my DirectX normal map in Octane?
Posted: Fri Sep 21, 2018 7:20 pm
by milanm
Almost done. I don't know how I missed this topic.
Cheers
Milan
Re: How do I flip Y in my DirectX normal map in Octane?
Posted: Fri Sep 21, 2018 8:57 pm
by cashley
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.
Re: How do I flip Y in my DirectX normal map in Octane?
Posted: Fri Sep 21, 2018 9:00 pm
by milanm
Ah, he was faster, great!
Cheers
Milan
Re: How do I flip Y in my DirectX normal map in Octane?
Posted: Sat Sep 22, 2018 12:34 pm
by Studio21
Very useful! cheers