经常进行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 RGB ETC2格式:对支持es2的 进行压缩 需要进行一张aphla通道图的生成。 如果使用etc4 在只支持es2.0的android手机上 还是会拷贝申请新的内存进行解压  然后读取解压后的

RGBA ETC4格式  针对支持es2以上的硬件

转载于:https://www.cnblogs.com/sun-shadow/p/6181001.html

u3d中texture2D的Advanced设置解析相关推荐

  1. Spring中property-placeholder的使用与解析

    Spring中property-placeholder的使用与解析 我们在基于spring开发应用的时候,一般都会将数据库的配置放置在properties文件中. 代码分析的时候,涉及的知识点概要: ...

  2. U3D中物体的渲染顺序

    U3D中物体的渲染顺序 1,由SHADER中渲染队列及队列中的值决定 2,在同一队列中,若材质相同 2.1 对于UI,按其在场景层级中的先后顺序绘制 2.2 对于3D不透明物体,按其离相机的距离,由近 ...

  3. Java开发中Netty线程模型原理解析!

    Java开发中Netty线程模型原理解析,Netty是Java领域有名的开源网络库具有高性能和高扩展性的特点,很多流行的框架都是基于它来构建.Netty 线程模型不是一成不变的,取决于用户的启动参数配 ...

  4. cJSON_译(C中的超轻量级JSON解析器)

    cJSON ANSI C中的超轻量级JSON解析器. 通行证 执照 版权所有(c)2009-2017 Dave Gamble和cJSON贡献者 特此免费授予获得此软件和相关文档文件("软件& ...

  5. win2000服务器 网站设置,服务器_Win2000中DNS服务器的设置,一、DNS概述 计算机在网 - phpStudy...

    Win2000中DNS服务器的设置 一.DNS概述 计算机在网络上通讯时只能识别如"192.168.0.48"之类的数字地址,那为什么当我们打开浏览器,在地址栏中输入如" ...

  6. spring多个视图解析器_在Spring中配置多个View解析器

    spring多个视图解析器 1.简介 在Spring中,提供了View Resolver来使用模型中可用的数据来解析视图,而无需与JSP,Velocity或Thymeleaf等View技术紧密绑定. ...

  7. 在Spring中配置多个View解析器

    1.简介 在Spring中,提供了View Resolver来使用模型中可用的数据来解析视图,而无需与JSP,Velocity或Thymeleaf等View技术紧密绑定. Spring可以根据需要轻松 ...

  8. iOS中WebKit框架应用与解析

    一.引言 在iOS8之前,在应用中嵌入网页通常需要使用UIWebView这样一个类,这个类通过URL或者HTML文件来加载网页视图,功能十分有限,只能作为辅助嵌入原生应用程序中.虽然UIWebView ...

  9. oracle orapath,SQLNET.ORA中的NAMES.DIRECTORY_PATH设置

    sqlnet.ora中的NAMES.DIRECTORY_PATH设置[@more@] sqlplus 假如我的sqlnet.ora是下面这个样子 D:oracleproduct10.2.0db_1NE ...

最新文章

  1. python一般用什么编译器-Python必学之编译器用哪个好?你用错了吧!
  2. logon oracle 密码 用户名_oracle用户名密码及用户被锁等问题
  3. javascript中的变量如果没有定义就使用的话
  4. 我是如何一步步拿下 Google Offer 的?
  5. CSS布局:三栏布局,中间栏固定宽度,左右两边自适应
  6. 处理24人!又一批科研不端案例被通报批评
  7. 英特尔处理器全部系列
  8. java 标准偏差_Java Streams-标准偏差
  9. 聊一聊Dubbo的一些特性和原理
  10. supervisor前端-cesi的安装
  11. 使用DPDK优化VirtIO和OVS网络
  12. eeglab下载和配置
  13. 取消超时订单及延迟处理方案
  14. 医院信息化成功的关键=本质+方法+工具
  15. 2016如果你想改变命运,请花几分钟读一下:(网上创业赚钱项目)
  16. android电视识别多区u盘,【当贝市场】电视无法识别U盘APK文件终极方法
  17. 解决Spark窗口统计函数rank()、row_number()、percent_rank()的OOM问题
  18. 《Django By Example》读书笔记 03
  19. fastadmin创蓝短信插件第二版
  20. ZK的currentElapsedTime

热门文章

  1. 《Ext JS 高级程序设计》的目录与样张
  2. 车辆姿态相关的一些传感器
  3. gitlab 邮件配置(smtp)
  4. 《Neural networks and deep learning》概览
  5. View - RemoteViews
  6. 代码:android崩溃日志收集和处理
  7. LoadRunner对不同协议的选择
  8. 升级openssh带来的问题
  9. SQLOS 简单任务调度
  10. linux 3.0 kernel