maxscript 渲染输出的图片颜色有问题

在使用MaxScript进行3ds Max渲染时遇到图片颜色显示不正确的问题,可能与gamma设置有关。通过访问http://www.cg-blog.com/index.php/2013/06/08/gamma10-max2014.htm,可以找到解决此问题的最佳方案,涉及到调整渲染过程中的gamma设置以确保正确输出颜色。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值