Script rendering with gamma setting

Script rendering with gamma setting

kenc
Advocate Advocate
2,828 Views
3 Replies
Message 1 of 4

Script rendering with gamma setting

kenc
Advocate
Advocate

Hi All

 

I have a script that is rendering unwraps using the following script line

 

bake_map = render rendertype:#bakeSelected outputSize:[1024, 1024]  vfb:off outputfile:(LightBakeMap_png_name) gamma:1.0

 

but the saved image doesn't look any different than using gamma:2.2

 

Thanks in advance

0 Likes
Accepted solutions (1)
2,829 Views
3 Replies
Replies (3)
Message 2 of 4

senorpablo
Advocate
Advocate
Accepted solution

Max gamma settings are all over the place. Perhaps the gamma setting in that code is for the file only, not the rendering. 

 

Try this before your code:

IDisplayGamma.colorCorrectionMode = #gamma
IDisplayGamma.gamma = 1.0

 

0 Likes
Message 3 of 4

kenc
Advocate
Advocate

Thanks senorpablo

 

The gamma in the code is for the saved image. Actually it turned out to be another causing the saved images to be the same.

 

I will look into the two commands you suggested.

 

Thanks

0 Likes
Message 4 of 4

senorpablo
Advocate
Advocate

There is also:

 

fileOutGamma=1.0

 

0 Likes