Jump to content


Linear mantra?


  • Please log in to reply
6 replies to this topic

#1 Just_Asking

Just_Asking

    Peon

  • Members
  • Pip
  • 5 posts
  • Joined: 31-July 12
  • Name:Pierrre Courrier

Posted 09 August 2012 - 11:49 AM

Hello,

I am used to render everything in 1.8 gamma for my display device. I hoped that mantra renders everything in linear space [there's such information on sidefx.com] - even colors in materials, lights etc.
After my few tests I see every color is rendered in gamma corrected space [2.2]. Maybe I am something missing... anyone knows what's going on?

Edited by Just_Asking, 09 August 2012 - 11:54 AM.


#2 CeeGee

CeeGee

    Illusionist

  • Members
  • PipPipPip
  • 309 posts
  • Joined: 15-July 07
  • Location:Belgrade - Srbija
  • Name:Igor Zanic

Posted 09 August 2012 - 12:34 PM

Chk this tutorial

https://vimeo.com/42486306

#3 symek

symek

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,535 posts
  • Joined: 02-November 04
  • Location:Waw/Pol
  • Name:Szymon Kapeniak

Posted 09 August 2012 - 01:40 PM

View PostJust_Asking, on 09 August 2012 - 11:49 AM, said:

Hello,

I am used to render everything in 1.8 gamma for my display device. I hoped that mantra renders everything in linear space [there's such information on sidefx.com] - even colors in materials, lights etc.
After my few tests I see every color is rendered in gamma corrected space [2.2]. Maybe I am something missing... anyone knows what's going on?

Mantra definitely renders in linear space.
Mantra doesn't linearize textures automatically. sRGB textures have to be converted or corrected by a shader.
Mplay/IPR display renders linearly unless instructed differently (via gamma or lut menu).

You could provide a test scene with i you have any doubts.
(...) It was late, late in the evening, the lovers they were gone;
The clocks had ceased their chiming, and the deep river ran on.

#4 Just_Asking

Just_Asking

    Peon

  • Members
  • Pip
  • 5 posts
  • Joined: 31-July 12
  • Name:Pierrre Courrier

Posted 09 August 2012 - 01:58 PM

View PostSYmek, on 09 August 2012 - 01:40 PM, said:

Mantra definitely renders in linear space.
Mantra doesn't linearize textures automatically. sRGB textures have to be converted or corrected by a shader.
Mplay/IPR display renders linearly unless instructed differently (via gamma or lut menu).

You could provide a test scene with i you have any doubts.


I really know that most textures are in SRGB space and you have to remove the correction by your own.

The problem is color swatch - it's not texture, it's just an input and it seems to be in 2.2 gamma space. If you do not believe me just go ahead and create scene with grid and constant shader on it. Then render - it will be the same color for render and for shader. When you will correct it in mplay or whatever to 2.2 gamma you will have 2 diffrent colors - desaturated for render and correct one for shader.


I am sure that Houdini works in full linear space, I just want to know why color swatches are desaturated after gamma correction, and the textures [those in linear space] are correct.



By the way, 3ds max, maya and XSI have also the same issue, but mray and vray have option which stand for "color swatches to linear". Before that "feature" you had to use some scripts or just do it by your own using gamma tool/node on every single constant color.

Edited by Just_Asking, 09 August 2012 - 02:17 PM.


#5 edward

edward

    Grand Master

  • Members
  • PipPipPipPipPip
  • 3,325 posts
  • Joined: 10-September 02
  • Name:e.d.w.a.r.d. .

Posted 09 August 2012 - 10:58 PM

By default, there is no color correction in the color swatches. You can change this (eg. set it to gamma 2.2 to match your monitor) in the color preferences.
don't panic!

#6 symek

symek

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,535 posts
  • Joined: 02-November 04
  • Location:Waw/Pol
  • Name:Szymon Kapeniak

Posted 09 August 2012 - 11:05 PM

View PostJust_Asking, on 09 August 2012 - 01:58 PM, said:

The problem is color swatch - it's not texture, it's just an input and it seems to be in 2.2 gamma space. If you do not believe me just go ahead and create scene with grid and constant shader on it. Then render - it will be the same color for render and for shader. When you will correct it in mplay or whatever to 2.2 gamma you will have 2 diffrent colors - desaturated for render and correct one for shader.

Checkout Color Correction section then:
http://www.sidefx.co...f/windows/color
(...) It was late, late in the evening, the lovers they were gone;
The clocks had ceased their chiming, and the deep river ran on.

#7 Just_Asking

Just_Asking

    Peon

  • Members
  • Pip
  • 5 posts
  • Joined: 31-July 12
  • Name:Pierrre Courrier

Posted 10 August 2012 - 09:20 AM

Thank for help!

Houdini amazes me every single day :)

Edited by Just_Asking, 10 August 2012 - 09:21 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users