SpriteKit纹理图集生成器错误2048 x 2048

6
我正在尝试将一张 2045 x 1536 的背景 PNG 图片包含在我的图集文件夹 (myApp.atlas) 中。
我从 TextureAtlas 得到以下错误信息:
sprikekit texture atlas generator error cannot fit input texture into a maximum supported dimensions of 2048 x 2048

有人知道这是为什么吗?

https://developer.apple.com/library/ios/recipes/xcode_help-texture_atlas/AboutTextureAtlases/AboutTextureAtlases.html 显然,在编译级别上,图像的最大尺寸为2000x2000,但它应该会自动分割图像。 - John Riselvato
@JohnRiselvato 那么解决方案是什么? - Apollo
将其缩小至2000x2000以下,看看是否仍会出现错误。 - John Riselvato
14
不要把它放在地图集里,这么大的图片本身就相当于一本地图集,强行将其放进地图集中也不会有任何好处。 - CodeSmile
@LearnCocos2D 好的,明白了。 - Apollo
显示剩余3条评论
1个回答

1

前往构建设置:搜索"纹理集"并将纹理集最大尺寸更改为4096 * 4096


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接