Hi everyone, I’m new here, I need help with this:
I did a simple scene with physical sun and sky. Each object with its own shader (mia_material), one white and the other orange. Using the mia_exposure_photographic tone mapper (with “sunny 16” settings) and gamma 2.2, and adjusting rgb unit conversion on mia_physicalsky node to 0.318000-
My question is why the orange material looks so different. I tried subexpose, down the gamma, burn highlights, crush blacks, etc… but it didnt work, never get that orange color.
If I use the camera tone mapper “mia_exposure_simple”, with this settings:
Pedestal=0
Gain=0.1
Knee=0.75
Compression=3
Gamma=0
… I get the correct colors. So, I want to do this with the mia_photographic_exposure node too!
Really thanx for your help, here are both images
Conde
Image with mia_photographic_exposure
http://imageshack.us
http://g.imageshack.us/g.php?h=372&i=miaexposurephotographicgk0.jpg
Image with mia_exposure_simple
http://imageshack.us
http://g.imageshack.us/g.php?h=55&i=miaexposuresimple1jj4.jpg
The problem is the gamma of your color/texture. When you use a tonamapper with a gamma of 2.2 you need to counter-gamma your texture and color.
What you need to do is use a gamma node and put 0.4545 (1 divided by 2.2) in the gamma value and put your color in the input color of the gamma node (or connect you file texture there)
This way you color or texture is transformed from sRGB space (very close to a 2.2 gamma) to linear space, so when it get’s tonemaped it is not double gamma-ed
for more information you can read Zap’s post (Zap is the guy who wrote the physical sky and mia_material)
http://mentalraytips.blogspot.com/
or read this post by Zap
http://forums.cgsociety.org/showthread.php?f=2&t=610790
Thanx Kobayashy!! I’m reading the posts and trying what you told me…
Kobayashy, theres an option on render settings, mentalray tab - primary render buffer. There I can change Gamma from 1 to 2.2, and its for the entire scene, is it right?
Thanx again.
Yes i know it’s there, but this is mentalray only flag and I think that the problem is Maya sending mental ray sRGB space color and texture. I am not sure if the flag you speak about will convert the color/texture in linear space.
it should. But it may be acting on a too late stage f. Anyway it does not matter if its mr only flag as the tonemappers atre maya only.