Author Topic: Gamma and linear workflow  (Read 12356 times)

2013-01-20, 13:57:59

Animator89

  • Active Users
  • **
  • Posts: 29
    • View Profile
Hello!
I recently discovered the Corona. After some tests, I decided to try it for one small commercial project, but faced with the problem of scale. The bottom line is that I need to color, which I assign the material editor was the same in render buffer, where color is specified in the linear RGB.
For example, in V-Ray for this is special linear workflow button, i can select color linearly but render is in the range of gamma 2.2. Similarly, the works in Maxwell Render. The question is this. I usually use Maya and 3d max'm not a great expert,How I need to setup gamma in 3ds max + corona render
Thank you!
Sorry for bad English, I used a translator from Google to translate text from Russian.

P.S.In Russian corona(корона) makes sense as a crown, headdress for kings :)

2013-01-20, 17:27:28
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I am not sure what exactly are you trying to accomplish, but you should check the "affect color selectors" checkbox in 3dsmax Gamma&Lut settings, it is probably it.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-01-20, 18:02:55
Reply #2

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Yes, make sure your LWF is set up correctly in 3ds Max preferences.



Then you can simply use color picker in Max color window to pick the exact color you need :)

You can open the image with desired color for example in Max's RAM player and pick it from there ;)

2013-01-20, 19:24:37
Reply #3

Animator89

  • Active Users
  • **
  • Posts: 29
    • View Profile
I'm sorry that I can not clearly explain the situation.
For example, you follow the link http://www.ralcolor.com/ to the site and want to use the color in the RAL 1000, you write your specialist 3D graphics that such walls in the room should be in RAL 1000 or RGB 190-189-127. But in the range of 2.2 to 3d max enter these values ​​you will not RAL 1000 and lighter and do not give a true option.
In other words I want without tweaking set color RGB 190-189-127 3d max and render it to get it in a linear sense, but he was going to render so that gamma 2.2
Sorry for my bad English

2013-01-20, 22:12:35
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I doubt anyone will understand you. Maybe try posting some images of your problem. Generally, the output diffuse colour is dependant on stuff like lighting, I don't get it.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2013-01-20, 23:22:13
Reply #5

loocas

  • Active Users
  • **
  • Posts: 93
    • View Profile
I think I know what he means.

If I understand correctly, he wants to see the RAL 1000 rendered AFTER the gamma correction, which means that in order for him to get there, he need to first linearize the RGB values that represent RAL 1000, apply to the shader and then have it rendered out + gamma correct so that the output looks correctly like RAL 1000.

There are color pickers that support RAL and will give you correct gamma corrected results.

In the mean time. You can try saving a constant color from Photoshop of the RAL 1000 in sRGB or 2.2, load it up in Max gamma corrected and then use that value in your shader.

Or you can try this tool, for example: http://www.color-converter.com/ (I have no experience with it, I just googled it).

Or, if you're savvy with MAXScript, you can write this little formula for converting RGB to sRGB values and vice versa.

Code: [Select]
if (inputColor <= 0.00304) then
(
outputColor = inputColor*12.92
)
else
(
outputColor = (1.055 * (pow inputColor (1.0/2.4)) - 0.055)
)

This converts input RGB values to output, sRGB, values. Inverse the function to get the opposite result. Of course you'll have to apply this to all the R G and B channels individually.
« Last Edit: 2013-01-20, 23:25:52 by loocas »

2013-01-21, 00:21:45
Reply #6

Animator89

  • Active Users
  • **
  • Posts: 29
    • View Profile
Yes loocas you're right.
Many thanks to all who answered! You've been very helpful.
I will lay out the project to the gallery when it is completed. :)