maxscript 渲染輸出的圖片顏色有問題

在3ds>http://www.cg-blog.com/index.php/2013/06/08/gamma10-max2014.htm

4) 最好的解決方案見下圖代碼:


IDisplayGamma.colorCorrectionMode = #gamma --enable gamma
IDisplayGamma.gamma = 1.8 -- adjusts the gamma to 2.2
fileInGamma = 1.0 -- adjusts the input gamma in "bitmap files"
fileOutGamma = 1.8 --adjusts the output gamma in "bitmap files"
imagePath = outfolder + "\\" + getfilenamefile files[i] + ".png"
b = bitmap 720 480 filename: imagePath gamma:0.55 pixelAspect:1.0 --創建位圖並調整gamma值
render camera:$camera001 to:b vfb:off  --渲染到上述創建的位圖中
save b --保存所創建的位圖
close b
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章