CMPR_Texture.pdf

(208 KB) Pobierz
Compressed Texture Format
Revolution SDK
Revolution SDK
Compressed Texture Format
Version: 1.01
The content of this document is highly confidential
and should be handled accordingly.
©
2005-2009 Nintendo
CONFIDENTIAL
RVL-06-0180-001-D
Released: March 27, 2009
Compressed Texture Format
Revolution SDK
Confidential
These coded instructions, statements, and computer programs contain proprietary information of Nintendo
and are protected by national and international copyright laws. They may not be disclosed to third parties or
copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo.
RVL-06-0180-001-D
Released: March 27, 2009
2
©
2005-2009 Nintendo
CONFIDENTIAL
Revolution SDK
Compressed Texture Format
Table of Contents
1
2
Introduction ...................................................................................................................................................5
S3TC and the Wii Console ...........................................................................................................................6
2.1
2.2
2.3
2.4
3
Compressed Texture Format ................................................................................................................6
Advantages of Compressed Textures ...................................................................................................7
Disadvantages of Compressed Textures ..............................................................................................9
Comparison with Color Index Textures .................................................................................................9
Creating Compressed Textures ..................................................................................................................11
3.1
3.2
Tools That Can Create Compressed Textures....................................................................................11
Creating Converters............................................................................................................................11
Conversion to Hardware Format .................................................................................................11
3.2.1
4
5
6
The Problem of Completely Transparent Texel Blocks ...............................................................................13
Using Compressed Textures.......................................................................................................................15
Summary.....................................................................................................................................................19
Code
Code 5-1 Example of Realization of Multi-Stage Transparency Using Compressed Texture and I8 Texture ...15
Tables
Table 2-1 Comparison of Saved Data Size by Texture Format
(in bytes:
GX_TF_C8
and
GX_TF_C4
include texture look-up table) ............................................................8
Table 2-2 Comparison of Index Format and Compressed Format in Terms of Data Size
(in bytes;
GX_TF_C8
and
GX_TF_C4
include texture look-up table) ............................................................9
Figures
Figure 2-1 The Principle Behind S3TC .........................................................................................................6
Figure 2-2 Compressed Texture Texel Block Format....................................................................................7
Figure 2-3 Texture Tile Format Using Compressed Texture .........................................................................7
Figure 2-4 Comparison 1 of Images by Texture Format (128 x 128)............................................................8
Figure 2-5 Comparison 2 of Images by Texture Format (32 x 32)................................................................9
Figure 3-1 Structure of the 32-Byte Tile Requested by the Hardware........................................................12
Figure 4-1 The Problem of the Completely Transparent Texel Block .........................................................13
Figure 4-2 Solution......................................................................................................................................14
©
2005-2009 Nintendo
CONFIDENTIAL
3
RVL-06-0180-001-D
Released: March 27, 2009
Compressed Texture Format
Revolution SDK
Revision History
Version
1.0.1
1.0.0
Revision Date
2008/08/28
2008/08/01
Description
Chapter 4: Fixed corrupted characters in Figures 4-1 and 4-2.
Initial version.
RVL-06-0180-001-D
Released: March 27, 2009
4
©
2005-2009 Nintendo
CONFIDENTIAL
Revolution SDK
Compressed Texture Format
1 Introduction
The Wii console supports compressed texture format using S3TC (S3 Texture Compression), which is
developed by S3, Inc.
©
2005-2009 Nintendo
CONFIDENTIAL
5
RVL-06-0180-001-D
Released: March 27, 2009
Zgłoś jeśli naruszono regulamin