Maya 8.5 Sun/Sky Rendering Bad


#243

I read this whole thread…yes it took me a while…but it was well worth it.

After a lot of confusion, I pretty much understood that if you are to do your gamma in post you should render everything normally except put 0.454 in the gamma value of the framebuffer and output your image in a 32bit float image like EXR.

I did this and my results look like they are correct. All I did was take down the gain to .2 from a value of 1.0 in a color corrector node inside Digital Fusion and the image looks fine.

By the way, the exact parameters in this image are: Batch rendered with No gamma lens Shader and a value of .454 in framebuffer in 32bit EXR format.

Am I doing this correctly?


#244

Turn off Preview Convert Tiles in Render Settings - Preview tab.


#245

There is nothing wrong in your setup. In your case the framebuffer gamma of 0.454 corrects the gamma of 8 and 16 bit textures. It will not have any affect if you don’t have these kind of textures in your scene. Another thing to be aware with this setup is that the color swatches do not mach the output. The colors will render lighter.


#246

No, on theory they should not be the same.


#247

yep, and the displacement/bump maps are linearized too, so they works in the wrong way


#248

So emil3d says the setup if fine, but dragon says that this setup will also linearize my displacement or bump which may work in the wrong way?

Was he referring to the swatches only?

Should I just stick to de-gammaing my color textures and not my value textures with gamma nodes and just keeping my framebuffer at 1?

I just want to have 32bit float control in post in the most color accurate way possible.

…I’m confused again…


#249

leif3d, in other words, your setup is OK if everything in your scene is textured and you don’t have 8 & 16 bit textures that drive values like bump and displacement maps.

As I said, the color swatches will render wrongly. You can fix that, as you already know, by creating gamma nodes with correct color and 0.45 gamma and then plug them into the color input of the materials.

If you have 8 & 16 bit textures that drive values like bump and displacement maps, as Dagon noted, they will render wrongly too, since they don't need to be gamma corrected. In such case you shouldn’t use the Framebuffer gamma. You have to put it back to 1, and as an alternative, you have to attach gamma nodes to all 8 & 16 bit textures ([i]except value textures[/i]) in addition to the color swatches. 

I hope I’m not confusing you more, since I’m not very good at explaining things:)

#250

No, I don’t think this is true.

As far as I know (and experienced it myself), setting the framebuffer gamma only affects color textures, but not parameter/value driving textures like bump or displacement.

Christoph


#251

Christoph, honestly I haven’t tested this exclusively and I haven’t seen the effect of wrong displacement and bump, since all my displacement and bump textures are 32 bit created in Mudbox and this bypasses the problem. However what Dagon noted makes sense unless Mentalray is intelligent enough to see which texture is used for what. Are you sure that in your tests you displacement and bump were 8 bit textures?

Will this thread ever reach some unanimously accepted conclusion?:smiley:


#252

but you can see it by yourself, take a render with bump/displace and a lens shader with gamma 2.2 (so the textures are not linearized at all) and take it with fb gamma .45, you’ll get a different render


#253

Bloody Hell - I was sure I had figured this out. :rolleyes:

I did some testing again - this time with Displacement and Bump (in the past I tested only displacement)

Setup 1: a torus with a 16bit black to white gradient as a bump texture.
Result: there is indeed a big difference between rendering FB 0.45 Lens Gamma 1
and FB 1 Lens Gamma 2.2 - wow.

Setup 2: a torus with a 16bit black to white gradient as a displacement texture.
Result: there is a tiny shading difference between rendering FB 0.45 Lens Gamma 1
and FB 1 Lens Gamma 2.2, but I fail to register any difference in displacement between the two and that was also my conclusion from the past.

Did anybody else test this? Do you really see a difference in displacement between different frambuffer settings?

Cheers and sorry if I added to the confusion!

Christoph


#254

:wink: i’ll investigate a little more on this subject tonight


#255

Thanks for the help everyone.

I’ll try and keep my value textures a 32bit float and my framebuffer at .454, because I don’t really care about my swatches. As long as it renders fine I’m ok.

The only crappy thing with that workflow is that I can’t use procedutal textures, because I would have to de-gamma everything and keep the framebuffer at 1…which is what I’m trying to avoid with really heavy textured scenes.

But oh well…you can’t have everything you want…


#256

Hi,
how can I improve my renderings with regard to the contrast? Is the mia_exposure_simple node the thing to play with? With area lights I get good results but I need the physical sun in this still.

Thanks for your advices.


#257

The mia_exposure_simple lens shader will give you necessary control for contrast and brightness to produce a nice render.

There is very detailed information on the docs regarding each option and functionality.


#258

first,if i say wrong,please correct me.

i think you havenot anser his question at all~,you just solve it in other way,i think the pivot is not here,his box colour is set=1,the gamma corecction is not do anything to col=0 and 1,just take effects in (0-1,not include 0 and 1),if his box col =0.5,i think the node"gamma correct"will take effects. he will see different between use node"gamma correct"to box’s col and not use

this is 2009’,i have just seen the all of this ,thank for all you have done!
and i think he has know the anser in 2007,my anser is too late~


#259

THANK YOU THANK YOU THANK YOU
for this thread. It took me an hour and a half to read just half of it, but I wouldn’t have figured this stuff out in a million years.
For anyone else who finds their way here, here are the minimum settings (in the MR Render Settings Tab) to gamma correct your renders and preview them correctly when liting and texturing.

Once rendered the linear gamma must be accounted for in other apps.
To change the gamma to 2.2 in PShop, Image/Adjustments/Exposure/Set Gamma to 2.2
and in After Effects, Interpret Footage/Main/Color Management Tab/Interpret as Linear Light set to On.


#260

Should I just stick to de-gammaing my color textures and not my value textures with gamma nodes and just keeping my framebuffer at 1?

This is really a key thing that I am trying to get my head around. From what I have read on LAMRUG and on 3Dlight blog and other sources I am fairly certain that changing the Framebuffer gamma is not the right way to work.

I really wish mental images and Autodesk would come out and do some sort of official tutorial or documentation on this. Rather than leaving it for the user base to stumble through their confusing controls proceedures and naming.

Anyway. I did a bit of an email with Zap Anderson mentioned I was using framebuffer gamma set to 1 and mia_simple_exposure gamma set to 1 and was told that this was correct.

My question is to people like Dragon and Floze who seem to have a really good handle on this.

I am guessing that framebuffer gamma .454 is just a convenient way to remove gamma from textures globally rather than an ideal workflow?

How does framebuffer gamma .454 effect non-colour channel textures such as specularity, bump/displace and prebaked occlusion ?

I don’t work as a 3d lighting TD so I am still trying to come to grips with all this !


#261

Okay, now you have really confused me!

Personally I just use this method:

Framebuffer gamma: .454
Lens gamma (mia_photographic): 1

This way there is no gamma correction nodes involved with textures which dramatically cuts down on workload and also gets rid of those annoying error messages when rendering. I only have to add gamma correct nodes with swatches which is no big deal compared to the amount of textures in a scene. Also…David Johnson discovered that textures blend differently when using different methods and that framebuffer does work the best.

http://www.djx.com.au/blog/2008/10/06/linear-workflow-and-gamma-update/

This is my take on it and it works for me, however the best way is to not use any sort of gamma correction until post and render to 32bit. That’s the “true” way I guess.


#262

hey,

I have been reading his blog, really great work. Have learnt a lot from it. Looked at the comparison he did between colour blending at 2.2, 1 and .454. I think its a great comparison but personally I think the light banding effect you get at .454 is undesirable. Similarly wouldn’t putting framebuffer .454 effect all bump/displacement/spec shaders as well ?

If the ideal workflow is .454 in mental ray I am prepared to be wrong and work accordingly !

I am just trying to bring out a ‘true’ linear workflow. Am used to working this way with renderman and as I am a film compositor have been dealing with this stuff in Shake and Nuke for many many years ! It just seems Autodesk is being very lax in their implementation and that there is a real lack of official information about this stuff !

PS I see he is from Melbourne as well ! Represent :thumbsup: