Unity_ Two-dimensional texture Texture 2d_4_ summary Details

Source: Internet
Author: User

supported Formats supported formats
Unity supports the following file formats:PSD, TIFF, JPG, TGA, PNG, GIF, BMP, IFF, PICT。 It should be noted that unity can import multiple layers of PSD and TIFF files, and the layer will automatically collapse when imported, so you don't have to waste time using the source file type directly. This is important, allowing only one texture copy to be imported into unity using a three-dimensional modeling program from Photoshop.
Texture Sizes Texture size
These dimensions are as follows:2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 or 2048 pixels。 Textures do not have to be squares, which can vary in width and height. Other non-two-dimensional texture sizes can be used, and non-two-bit textures are best when used with GUI textures, but, if used in any other way, they will be converted to uncompressed RGBA32 bits format. This means that they will use more memory (compared to PVRT (iOS)/DXT (Desktop) compressed textures), which will make slower loading and slower rendering (in the case of iOS mode). In general, textures that are not two-cubic are used only for the GUI.
A non-two-second-party texture resource can be set in the import setting for intermediate texture types using the non Power of 2 (non-two-party) option to scale. Unity will scale the textures on demand, and in the game they behave like other textures, so they can still be compressed and loaded very quickly.
UV Mapping (UV mapping)
When mapping a 2D texture to a 3D model, set the loop mode (tiling mode). This is the three-dimensional modeling program, known as UV mapping. In unity, you can use materials to scale moving textures. Scaling Normals and terrain detail maps are especially useful.
Mip Maps Multilevel Textures
Multi-level textures are a list of gradually shrinking image versions to optimize the performance of real-time 3D engines. Objects away from the camera use a smaller texture version. Using multi-level textures will use more than 33% of the memory, but not using them will have a huge performance penalty. You should always use multi-level textures for games, except for textures that do not shrink (such as GUI textures).
Normal maps normal maps
Normal maps are used for normal map shaders, so that the low polygon model looks more detailed. The normal map used by unity is encoded as an RGB image, and you can choose to generate a normal map from a grayscale height map.
Detail Maps Detail Map
If you want to create a terrain, you usually use the main texture to show the grass, rock and sand areas, and so on. If the terrain is very large, it will eventually be very blurry. The detail texture hides the actual fade out, with small details as closer to the main texture.
Reflections (Cube Maps) reflection (cubic map )
If you want to use textures for reflection maps (for example, with built-in reflection shaders), you must use cubic map textures.
Anisotropic filtering anisotropic filtration

When viewed from a grazing angle (grazing angle), anisotropic filtering improves texture quality and has some rendering cost (full graphics cost). For ground and floor textures, it is often a good idea to increase the anisotropy level. Anisotropic filtering in the quality settings can be enforced for all textures or completely disabled.


No anisotropy (left)/(right) maximum anisotropy applied to the ground texture.

Unity_ Two-dimensional texture Texture 2d_4_ summary Details

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.