New Gamma Correction Tool!


#41

The most up to date version is the one on the first page of this post. I haven’t had time to fix the little issue volderette pointed out yet. I promise I will fix it as soon as I get time. The issue he had should only occur pretty rarely though. So the vast majority of the time you should be good.


#42

Just downloaded it, since I got tired of trying to figure out color management in 2011. Thanks a lot, definetely a time saver. Only bug I have found so far is the same as volderette mentioned.
If I undo shaders it sometimes changes my textures around. For example I had a record with Schubert suddenly having a wood texture on it.


#43

I’ll be fixing this one as soon as I get a free moment. Thanks for the feedback.

-Justin


#44

Many many thanks Justin! your tool is wonderful…one more must have maya tool. Keep up the great work :slight_smile:


#45

very good tool Justin, very appreciated, thanks!
I recently switched to linux x64, and when running this script the UI doesn’t display correctly, just a menu saying “Gamma Correction” and nothing else. I’m using maya 2009, fedora 14.


#46

Wow…that’s unfortunate! I’ve read in the documentation that there can be some differences between how MEL UI commands function between different operating systems. Unfortunately I have never run this script on Linux or a Mac OS. I’ve wanted to learn Linux for some time now…but just haven’t wanted to take the time away from actually creating things to learn a new OS, so unfortunately I can’t be of much help here.

I can say that the UI was written using regular old MEL UI commands…nothing fancy at all…unless you consider a form layout fancy. So I’m not totally sure what the hang-up could be. Maybe someone with more experience using MEL UI commands on Linux could shed some light.

Thanks for the heads up, though. Since quite a few people have posting here in this thread I may have to take some time and fix the 'lil bug I’ve been slacking on…maybe even optimize some stuff since I’ve learned quite a bit since I wrote this.

-Justin


#47

Great tool works a treat in 2010. I would be great if it could attach the mia exposure node to the camera also saving me from forgeting. :slight_smile:


#48

Any news on the swapping textures problem? I also just saw, that the Linear Workflow Toolkit is not updating textures that are connected to a mib_color_mix shader. I guess the node is used quite often, so maybe this could be part of a future update?

For the GUI problem: Im on OS X and there there are no display problems with the user interface.

Thanks,

Andi


#49

A useful tool.

Thanks for sharing, Justin. Much appreciated.


#50

This script saved me renderings and a lot of time. Thank you for making so easy to use! :beer:

Autodesk really needs to get their act together with this stuff. Sometimes I feel like Max is easier to use because of little issues like this.


#51

I just updated the tool to v1.2.2.

This release fixes the texture swapping error a number of you guys pointed out to me.

@volderette: I’ve tested this on your problem scene a number of times now and it works perfectly. Thanks for sending that to me as a test scene.

Sorry I’ve been slacking on getting this 'lil issue fixed…MEL Studio not working in 2011 kind of discouraged me from scripting in Maya a little bit. Since Digimation don’t plan on ever making that tool work in 2011, I guess I’ll just have to get over it. :slight_smile:

I’ll work on getting the mib_color_mix integrated into the tool as well. If anyone has any other suggestions or feature requests I’m all ears.

Just to be safe make sure and save a couple scenes that used to break the script as test scenes and run the script before you use it. If it works (which it should now) then you’re good to go.

You can download the latest version from the front page of this thread. I deleted the old one and replaced it with the new one.

Let me know how it works out!

-Justin


#52

Just tried this out after the new update. Very cool, and very helpful. Should a gamma node be applied to the color swatch in mia_light_surface when it’s piped into the additional color of an mia_material? I’ve just tried this on a scene where I have a couple light surfaces linked this way, and notice gamma nodes are applied to the mia_material swatches, but none to the actual mia_light_surface. Is this the correct way, or should it be corrected, and could it be applied in a future update (I would assume so, if it should be). Thanks again! Great work!


#53

Thanks for the feedback. Really appreciate that. As far as gamma correcting a mia_light_surface shader, I specifically designed the tool to avoid gamma correcting those. Reason being I am pretty sure the calculations in that shader are already in linear space, so applying a gamma correct node would be incorrect. Same thing goes for the blackblody shader, those calculations are already in linear space, so this tool is designed to avoid those as well. I know for a fact that is the case with the blackbody, and since Master Zap wrote the mia_light_surface I’m pretty darn sure those calcuations are already linear as well. But I guess you are picking the value in a color swatch based on what looks good to your eye, so maybe I’m wrong here. I’ll ask Zap and see what he had to say.

Thanks,

Justin


#54

HI JUSTIN:

I LIKE THE IDEA OF YOUR SCRIPT BUT EVERY TIME I TRY AND HIT UPDATE ALL SHADERS I GET THIS ERROR: // Error: Unknown object type: mia_physicalsky //

IS THIS ONLY A MAYA 2011 THING OR AM I MISSING SOMETHING HERE? I GET THE GUI TO LAUNCH, BUT IT DOESN’T WORK

HELP???

ACC


#55

Ha Ha,

Justin, It Works Fine. Turns Out Mental Turned Itself Off. Whoops. Silly Plug-in Manager…

All Is Copacetic


#56

Not a problem at all. Thanks for letting me know all is working well in the end. Maya can act in strange ways on occasion. :slight_smile:

Perhaps I’ll put a catch in there for this and have the script give you a warning if mental ray isn’t loaded instead of having it throw an error when you go to run it. Never thought about that but it’s not a bad idea.

If you happen to notice anything let me know.

Thanks,

Justin


#57

heelo there, im kinda new here… how to use this script? am i have to copy the mel into somewhere?

btw, thx Redsand

Keep up the good work! =)


#58

Not a problem. You just copy that script to your local scripts directory.

A path example is as follows:

C:\Documents and Settings\yourname\My Documents\maya\2008\scripts

After that simply type the name of the file into the command line in maya: jjj_gammaTools;

You can middle mouse drag jjj_gammaTools; from the command line to your shelf to make a shortcut.

Hope that helps!

-Justin


#59

ok, thx justin =)


#60

Updated to v1.2.3

This update adds support for the mib_color_mix node.

The cool thing is the script will not gamma correct any shaders you plug into the mib_color_mix node. It’s smart enough to leave those connections alone and only gamma correct color swatches, file textures, 2d or 3d procedurals, etc. So things that should get gamma corrected do, while things that shouldn’t get gamma corrected (other shaders you are layering) do not. The shaders that you are layering with the mib_color_mix node will be gamma corrected themselves as usual.

Hope that helps everyone out there who likes to use this node. I know I use it quite often, but I’m always layering other shaders with it so I never thought to include it in the script. But I guess it can be pretty useful to layer textures as well.

You can download the latest version from the same place.

-Justin