Unity3D高级手册0700:减少文件大小

2014-09-04 18:58:22|?次阅读|上传:huigezrx【已有?条评论】发表评论

关键词:游戏, 虚拟现实, Unity3D|来源:唯设编程网

Optimizing texture size 优化纹理大小

Often textures take up most space in the build. The first to do is to use compressed texture formats (DXT or PVRTC) where you can.

通常纹理携带许多空间在创建里。第一个做的是你可以在那里使用压缩纹理格式(DXT或PVRTC)。

If that doesn't get the size down, try to reduce the size of the textures. The trick here is that you don't need to modfiy the actual source content. Simply select the texture in the Project view and set Max Texture Size in Import Settings. It is a good idea to zoom in on an object that uses the texture, then adjust the Max Texture Size until it starts looking worse in the Scene View.

如果没有得到减少的大小,尝试减少纹理的大小。这里的技巧是,你不必修改实际来源的内容。简单地选择在项目视图的纹理和在导入设置里设置最大纹理尺寸。这是一个好主意放大在一个使用纹理的对象上,然后调整最大纹理尺寸直到它开始看起来不好看在场景视图里。

Unity3D高级手册0700:较少文件大小
Changing the Maximum Texture Size will not affect your texture asset, just its resolution in the game

更改纹理大小的最大值将不影响你的纹理资产,仅是它自己的分辨率在游戏里。

How much memory does my texture take up? 我的纹理占去多少内存

Compression 压缩

Memory consumption 内存消耗

RGB Compressed DXT1

0.5 bpp (bytes/pixel)

RGBA Compressed DXT5

1 bpp

RGB 16bit

2 bpp

RGB 24bit

3 bpp

Alpha 8bit

1 bpp

RGBA 16bit

2 bpp

RGBA 32bit

4 bpp

To figure out total texture size: width * height * bpp. Add 33% if you have Mipmaps.

发表评论0条 】
网友评论(共?条评论)..
Unity3D高级手册0700:减少文件大小
  • Asp.net专题ASP.NET