将DDS文件批量转换为没有mipmap的DDS [英] Batch convert DDS file to DDS without mipmaps

查看:344
本文介绍了将DDS文件批量转换为没有mipmap的DDS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Mount&刀锋:战争乐队mod称为1257 AD. mod本身很棒,但是必须重新保存所有纹理以从dds文件中删除mipmap,以消除GNU/Linux上的故障.当然,我可以手动执行此操作,但是这会花费大量时间(超过2000个纹理),并且gimp有任何方法可以打开并保存文件而不使用mipmap. 另外,上次我想执行此操作时,我在Imagemagicks convert中使用了循环,但它保留了mipmap.那么我该如何进行转换呢?

I have a Mount & Blade: Warband mod called 1257 AD. The mod itself is great, but all the textures have to be resaved to remove mipmaps from dds files, to remove glitches on GNU/Linux. And of course, I could do this manually, but it will took a lot of time(over 2000 textures), and is there any way for gimp to just open and save the file without mipmaps. Also, last time I wanted to do this I used loop with Imagemagicks convert, but it kept mipmaps. So how do I do this kind of convert?

推荐答案

如果不想保留mipmap,则应使用'define'dds:mipmaps.将其设置为零将禁用mipmap的编写.

You should use the 'define' dds:mipmaps if you don't want to keep the mipmaps. Setting it to zero will disable the writing of mipmaps.

convert input.dds -define dds:mipmaps=0 output.dds

您可以在此处找到所有dds定义的列表: http://www.imagemagick.org/script/formats.php .

You can find a list of all dds defines here: http://www.imagemagick.org/script/formats.php.

这篇关于将DDS文件批量转换为没有mipmap的DDS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆