Wout Posted March 17, 2020 Share Posted March 17, 2020 Hey guys, so what I want to do is render to a .rat file with several image planes. I'd like to process those planes and then save them to a sRgb color space format, png. The thing is I can't find how to do that. When I import the .rat file, colors look weird , like looking at a linear file with no correction, and that's how the ROP saves them as well. What do I need to know/do to render out, for example, normal maps so that it has the correct, (sRgb) color space ? Checking the ' Convert to Image Format's Colorspace' box doesn't work. Thank You ! Wout Quote Link to comment Share on other sites More sharing options...
marcosimonvfx Posted March 23, 2020 Share Posted March 23, 2020 Hey, can you help us with a bit more information. What is exactly your workflow, where do you import the rats (houdini or mplay), where/how were those rats generated would be helpful. Quote Link to comment Share on other sites More sharing options...
malexander Posted March 23, 2020 Share Posted March 23, 2020 The RAT file format specifies that all color values stored in it are in linear space, so rendering to them will write the values as-is (no sRGB conversion). Rendering to a PNG, on the other hand, will convert the rendered linear color values to sRGB because it's a sRGB format. If you're writing a normal map to PNG, you do not want any colorspace conversion to take place on export or import - the value should be stored linearly (otherwise normal values are unevenly distributed across[-1,1]). So if you are reading the RAT into COPs, extracting the normals into a separate plane and writing them to PNG, disable the "Convert to Image Format's Colorspace" toggle in the Composite tab of the Composite ROP. This will write the linear values into the PNG as-is, without sRGB encoding. 1 Quote Link to comment Share on other sites More sharing options...
Wout Posted March 23, 2020 Author Share Posted March 23, 2020 Thank you for your replies; , I'll check it later maybe, bit crazy at work right now.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.