MatrixWorkz opened this issue on May 05, 2008 ยท 61 posts
bagginsbill posted Tue, 06 May 2008 at 5:53 AM
Postwork only? Incorrect.
Gamma correction can be done entirely in the material room, without Poser Pro.
I have been doing Gamma correction in my AMUCFS shaders for a long time.
I am doing it now in my VSS shaders.
After reading all the references about it I've come to understand the need for symmetrical correction. Meaning you have to convert your incoming images to linear space.
You can do that in the material room, too.
Connect a Color_Math Value_1 to your image. Set function to Pow. Set Value_2 to white and connect to a Math_Function node. We're using that to make a number - no math here. Set it to 2.2.
Your incoming image is now converted to linear space.
Plug that into Diffuse node.
Color_Math Add Diffuse + Specular.
Connect to another Color_Math:Pow node with a Math_Function node, but this time use 1/2.2. That is your outgoing gamma correction.
Plug that into Alternate_Diffuse. Shut off all other root node built-in diffuse and specular.
A script could be written to transform all materials this way.
It would have to be a little more complicated to handle other cases, such as reflection and refraction or shaders that are already complicated.
I'm not saying this is easy, I'm just saying it can be done without Poser Pro and without post work.
Even if you perform final gamma in post, you really should convert incoming colors to linear space in the mat room.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)