首页 > 其他分享 >由Spine出现黑边说起纹理格式问题

由Spine出现黑边说起纹理格式问题

时间:2023-07-03 19:46:31浏览次数:31  
标签:ETC2 Spine ASTC 2048 纹理 格式

项目中的纹理一直使用的ETC2格式,以前主要是考虑到兼容性问题。最近在Spine使用PMA方案的时候出现了部分接缝位置黑边的情况,像下图这样:

 怀疑了spine的导出,怀疑了shader,怀疑了材质的设置,最后发现是ETC2格式导致的问题。

使用RGBA或者ASTC格式,显示正常了。附几张不同ASTC格式下的显示效果:

1. ASTC6X6, 大小1.8M(2048*2048)

 

2. ASTC5X5, 大小2.6M(2048*2048)

 

3. ASTC4X4, 大小4.0M(2048*2048)

 

ASTC格式下4X4效果最好,但纹理大小最大,与ETC2格式大小一样。6X6在放大后还是会有明显的模糊状态,总之ETC2可抛弃矣!

标签:ETC2,Spine,ASTC,2048,纹理,格式
From: https://www.cnblogs.com/hghhe/p/17523807.html

相关文章

  • js格式化货币方法
    ......
  • input 上传图片 Base64 格式的 可预览
      <inputtype="file"@change="aas"name=""id="">   aas(e){//console.log(e.target.files)//leta=newFormData        letfile=e.target.files[0]        letreader=newFileReader......
  • django.db.models.query.QuerySet格式的数据输出
    1、deffindmtm2(request):importserializerimportjson#多对多跨表正向查询#res=softlist.objects.filter(hostlists__ip="10.116.6.177").values("softname")res2=softlist.objects.filter(hostlists__ip="10.116.9.233"......
  • notepad++如何快速格式化代码
     2023-03-25 4505 广东举报简介: notepad++如何快速格式化代码Notepad++可以使用插件来快速格式化代码,以下是一种使用插件进行代码格式化的方法:打开Notepad++编辑器,并打开需要格式化的代码文件。在菜单栏中选择“插件”->“PluginManager”->“ShowPluginManag......
  • 在Windows 11/10/8/7中将U盘快速格式化为FAT32的好方法
    链接:https://www.disktool.cn/content-center/how-to-format-pendrive-in-windows-7-666.html使用磁盘管理工具格式化U盘步骤1. 打开电脑,“Win+R”打开运行框。输入diskmgmt.msc再按Enter键打开磁盘管理工具。步骤2. 右键单击您想要格式化的U盘并选择“格式化”。步骤3. ......
  • JAVA生成xml文件格式
    publicboolean A(参数1,……){Documentdocument=DocumentHelper.createDocument();Namespacena=Namespace.get("");Strings=null;na=new Namespace(xxxxxxxxxxxxxxxxxxxxx);//命名空间Elementroot=document.addElement(newQName(“A......
  • js 数字格式化,只能输入正负整数,小数
     1、只能输入正整数<inputname="columnValue"class="input96required"type="text"size="50"onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replac......
  • 获取系统时间在java中怎么操作,还可以指定格式
    ​ 要在Java中获取当前时间并将其格式化为指定形式,可以使用java.time包中的LocalDateTime和DateTimeFormatter类。下面是一个示例代码,演示如何获取系统时间并将其格式化为指定的字符串格式: importjava.time.LocalDateTime;importjava.time.format.DateTimeFormatter;p......
  • 获取系统时间在java中怎么操作,还可以指定格式
    ​ 要在Java中获取当前时间并将其格式化为指定形式,可以使用java.time包中的LocalDateTime和DateTimeFormatter类。下面是一个示例代码,演示如何获取系统时间并将其格式化为指定的字符串格式: importjava.time.LocalDateTime;importjava.time.format.DateTimeFormatter;p......
  • dayjs 实现秒转时分秒格式。
    参考https://dayjs.fenxianglu.cn/chatgpt回答环境软件/系统版本说明dayjs^1.11.9步骤安装yarnadddayjs引入//vardayjs=require('dayjs')importdayjsfrom'dayjs'//时间插件importdurationfrom'dayjs/plugin/duration'd......