Jump to content

.rat files, linear and color spaces


Recommended Posts

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

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...