u3d中texture2D的Advanced设置解析

经常进行Texture2D的信息设置,以下记录每个属性的意义:
参考手册: file:///D:/Program%20Files%20(x86)/Unity4.7/Editor/Data/Documentation/html/en/Manual/class-TextureImporter.html
一:Non power of 2
| Non Power of 2 | If texture has non-power-of-two size, this will define a scaling behavior at import time. See the Details section at the end of the page. |
| None | Texture size will be kept as-is. |
| To nearest | Texture will be scaled to the nearest power-of-two size at import time. For instance 257x511 texture will become 256x512. Note that PVRTC formats require textures to be square (width equal to height), therefore final size will be upscaled to 512x512. |
| To larger | Texture will be scaled to the next larger power-of-two size at import time. For instance 257x511 texture will become 512x512. |
| To smaller | Texture will be scaled to the next smaller power-of-two size at import time. For instance 257x511 texture will become 256x256. |
对texture进行2次幂的扩展。
二:Generate Cubemap
| Generate Cube Map | Generates a cubemap from the texture using different generation methods. |
三:Read/Write Enabled
| Read/Write Enabled | Select this to enable access to the texture data from scripts (GetPixels, SetPixels and other Texture2D functions). Note however that a copy of the texture data will be made, doubling the amount of memory required for texture asset. Use only if absolutely necessary. This is only valid for uncompressed and DTX compressed textures, other types of compressed textures cannot be read from. Disabled by default. |
一般不勾选,注意:1.会新建拷贝增加内存, 2.只对指定的非压缩和DTX压缩格式有效
四:Alpha from grayscale
| Alpha from grayscale | (Default mode only) Generates the alpha channel from the luminance information in the image |
从texture的灰度图中来设置Alpha值。。
http://blog.163.com/unity_fyc/blog/static/215288100201211270470165/
做视差贴图时,可能会勾选
五:Alpha Is Transparency
Alpha影响透明效果
六:ByPass sRGB Sampling
忽略sRGB采样效果(待更新)
1.伽马校正是啥:
主要参考下面冯乐乐的博客,数据从输入到显示经过了两次校正:data-->1--->pixelValue --->CRT显示器-->2-->show
在 1 :场景的亮度值和pixelValue的关系(伽马校正)
2:pixelValue和显示亮度值的关系
通过1和2的处理,尽量保持还原场景的亮度值。
2.sRGB是啥:
sRGB算是一个标准的色彩空间吧。。就像世界坐标系一样。。
项目中此选项都没打勾,也就是说 由于一般texutre都是非线性的,所以进行了sRGB空间下的校正。。
参考:
http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380146d96864968d4e414c4224610143ab5f076715607d8ce7c7a52ef0f07bbae616f615466e4c096c957dbbf9228258d22376459db0144dc49e48915648037902ba8ef4cb7adf043d2fd8d91810f0f9f&p=823bdf19ba9112a05abd9b7d0c179c&newp=9933d715d9c040ae12acdd2d021485231610db2151d7d6156b82c825d7331b001c3bbfb42323170fd4c37a6105a94f5aecf03677300927a3dda5c91d9fb4c57479c2667d&user=baidu&fm=sc&query=Bypass+sRGB+sampling&qid=8e1c7f91000039e8&p1=13
七:Sprite Mode
| Sprite mode | Selects how the the sprite graphic will be extracted from the image. |
| Single | The sprite image will be used in isolation. |
| Multiple | Multiple related sprites (eg, animation frames or separate sprite elements that belong to a single game character) will be kept together in the same image. |
图片是否是一系列的,
八:Generate Mip Maps
勾选会增大内存,生成小图,
九: Wrap Mode
面片中texture坐标>1时texture的copy模式,就是以前的 copy啊 反响copy啊 读取边缘像素值啊。。
十:Filter Mode
由于 texture的纹理数据和屏幕像素点大小不可能恰好匹配,需要设置纹素数据到像素点的映射方式。
linear mode 如果理解没错的话,应该是四个像素点的 x y权重比例。。
十一:Aniso Level
反锯齿。。
十二:ios PVRTC4格式:
| RGBA Compressed PVRTC 4 bits | Compressed RGBA texture. This is the main format used for diffuse & specular control textures or diffuse textures with transparency. 4 bits per pixel (32 KB for a 256x256 texture) |
4bit一个像素点,RGBA 32bit的话,1/8 比如256x256的texture就是 0.5*256*256/1024 = 32KB
十三:android ETC4格式:
两张图 即压缩1/4
u3d中texture2D的Advanced设置解析的更多相关文章
- 前端开发:Javascript中的数组,常用方法解析
前端开发:Javascript中的数组,常用方法解析 前言 Array是Javascript构成的一个重要的部分,它可以用来存储字符串.对象.函数.Number,它是非常强大的.因此深入了解Array ...
- Android中的三种XML解析方式
在Android中提供了三种解析XML的方式:SAX(Simple API XML),DOM(Document Objrect Model),以及Android推荐的Pull解析方式.下面就对三种解析 ...
- 转 web项目中的web.xml元素解析
转 web项目中的web.xml元素解析 发表于1年前(2014-11-26 15:45) 阅读(497) | 评论(0) 16人收藏此文章, 我要收藏 赞0 上海源创会5月15日与你相约[玫瑰里 ...
- 【原创】Matlab中plot函数全功能解析
[原创]Matlab中plot函数全功能解析 该帖由Matlab技术论(http://www.matlabsky.com)坛原创,更多精彩内容参见http://www.matlabsky.com 功能 ...
- Matlab中plot函数全功能解析
Matlab中plot函数全功能解析 功能 二维曲线绘图 语法 plot(Y)plot(X1,Y1,...)plot(X1,Y1,LineSpec,...)plot(...,'PropertyName ...
- u3d中的INput
属性 属性: 功能: 轴 (Axes) 包含当前工程的所有定义的输入轴:数目 (Size) 该工程中不同输入轴的数量,元素 0.1.... 是要修改的特定的轴. 名称 (Name) 在游戏启动器中以及 ...
- Spring中property-placeholder的使用与解析
Spring中property-placeholder的使用与解析 我们在基于spring开发应用的时候,一般都会将数据库的配置放置在properties文件中. 代码分析的时候,涉及的知识点概要: ...
- iOS中WebKit框架应用与解析
WebKit是iOS8之后引入的专门负责处理网页视图的框架,其比UIWebView更加强大,性能也更优. 引言 在iOS8之前,在应用中嵌入网页通常需要使用UIWebView这样一个类,这个类通过UR ...
- 03_2_JAVA中的面向对象与内存解析
03_2_JAVA中的面向对象与内存解析 1. 成员变量 成员变量可以是Java语言中任何一种数据类型(包括基本数据类型和引用数据类型) 在定义成员变量时可以对其初始化,如果不对其初始化,Java使用 ...
随机推荐
- WebStrom与Github连接
刚开始接触GitHub,之前都是用git命令来提交代码,很是麻烦~~~,现在通过WebStrom将项目提交到GitHub网站上(简单容易了很多). 第一:webstrom创建项目然后上传到githu ...
- 【CSS进阶】CSS 颜色体系详解
说到 CSS 颜色,相比大家都不会陌生,本文是我个人对 CSS 颜色体系的一个系统总结与学习,分享给大家. 先用一张图直观的感受一下与 CSS 颜色相关大概覆盖了哪些内容. 接下来的行文内容大概会按照 ...
- oracle的特殊权限s bit丢失
在SUN Cluster搭建过程中,主机工程师在配置集群资源组时报一个oracle的文件权限错误: 协助排查,发现报错很明确,直接指出说oracle的s bit 权限未设置. 直接去查看$ORACLE ...
- 求解第N个素数
任务 求解第 10,0000.100,0000.1000,0000 ... 个素数(要求精确解). 想法 Sieve of Eratosthenes 学习初等数论的时候曾经学过埃拉托斯特尼筛法(Sie ...
- CentOS下安装hadoop
CentOS下安装hadoop 用户配置 添加用户 adduser hadoop passwd hadoop 权限配置 chmod u+w /etc/sudoers vi /etc/sudoers 在 ...
- 关于Linux下转换oracle字符集
前阵子给以同事导oracle数据库,但是发现导入后数据都是乱码,下面是自己解决这个问题的一些小整理. 比如: #su oralce $export ORACLE_SID=orcl $export OR ...
- AlloyRenderingEngine之Shape
写在前面 不读文章,只对代码感兴趣可以直接跳转到这里 https://github.com/AlloyTeam/AlloyGameEngine 然后star一下,多谢支持:). 游戏或者应用中,不是所 ...
- 利用私有的库MobileCoreServices检测正在安装的应用
利用的私有库检测正在安装的app 分为两步:第一,通过placeholderApplications获得所有的正在安装的app的信息 第二,遍历正在安装的app的信息,根据名称获得你想检测的app是否 ...
- Titanium.UI.createAlertDialog
学习TI 记录一下 1.确认对话框 Js代码 var a = Titanium.UI.createAlertDialog({ title:'添加人员信息', message:"人员添加成功& ...
- Android中点击隐藏软键盘最佳方法——Android开发之路4
Android中点击隐藏软键盘最佳方法 实现功能:点击EditText,软键盘出现并且不会隐藏,点击或者触摸EditText以外的其他任何区域,软键盘被隐藏: 1.重写dispatchTouchEve ...