1 ������ ���� ���� �� ���� #�� ����; http://blog.naver.com/crazygats/70012917110���� : http://www.gamasutra.com/features/20051228/sherrod_01.shtml
[������ �� : ���������� �������� ������ ���� ������ ���� ������ ���� �� ������ �������� �������� DXT ������ ���� ������ �������� Riccard Linde �� ���� ����(http://www.gamasutra.com/features/20051123/linde_01.shtml)�� ���� ���� ������.]
( ���� : �������� ������ �� �� ���������� ���������� ALSEE ���� ������������ �������� ������ ������ ������ �� �������� )
������ ���� �� ���������� ������ �� ���� �������� ���� �� ���������� ���������� ������ ������ ���� ����. ������ �������� ���� ���� ���� �������� ��������, ������ �������� �������� �������� �������� �� ���� ���� ������ ������ ���� ����. ���� �������� ���� ������ ������ ������ ���� ���� ����, ������ �������� ������ ������������ ���� ���� ���� �������� �������� ���� �������� ����. �������� ������ ���� �������� �������� ������ ������ �������� �������� ������ �� ������ ������ �������� ��������.
�� �������� ������ �������� ������ �� ���� �� ���� ���� ���� ������ ���� ������ ���� �� ������. ���� ���� ������ �������� ������ ������ ������ ������, ������ �������� ������ ������ �������� �� ������ ���� ������ �������� ���� ������ ������ �������� �������� ���� ��������. ���� ������ ���� ���� ���� ������ ���� �������� ����, ���� ������ ������ ���� �� �� ���� ���� �������� ��������. �� ������ ������ ���� �������� ������ �������� ���� ������ �������� ������ ��, (�� �������� ������ ��������) ���� ���� ���� �� ���� ������ �������� ������.
1.1 ������ ������ ���� ���� #���� ������ ���������� ������ ���� ������ ������ ������ �� ��������. ������, ����, ������ ���� ������ �� ����, ����, ���� ������ �������� ����. ���� ������ �������������� ������ ������, �������� ���� �������� ������ ��������, we still don't have enough space to the point where we can load images without the concern and issues that arise with running out of memory.
���� ����, ���� ���� ���� ���� �������� ������ �� �������� ������.
�������� 1) ���� �������� �������� ���� ���� �� ������ ������ 2) ���� ���� ������������ ������ ���� ���� �������� ���� ������ ������ ���� ���� ���������� ������ �������� ������ ������ ���� ��������.
������ ������ �� ���� �������� ���� ������ ������ ���� �������� ������ ���� ���������������� ������ ������ ���������� ����. ������ �������� ������������ ������ �� �������� �������� ������ �������� �������� ������ �������� �� ������, ���� �������� ���� ������ ������ ���� �� �������� ���� ������ �������� �� ����. ���� �������� �������� ���� ������������ �������� ���� ������ ����. �������� ������������ ���� ���� �������� ���� ������ ��������.
�� ������ ������ ������ ���� ���������������� �������� �������� ������ ���������� �� ������ �� ���� �� ���� ���� ���� ������ ���� ������ ������ ���� ���� ������. ������ ���� A8L8, DXT, 3Dc ���� ������ ������ ���� �� ������, �� ������ ���� �������� ���� �� �������� ���� �������� ���� �� �������� ������ �������� ���� ���� �������� ������ ������.(���� : as well as how each format stacks up against the others when dealing with decal textures and normal map images)
�� �������� ������ �� ������ ���� ������ Direct3D(Windows OS ������ 3D Graphics �� �������� ������ ���� DirectX core �� API) �� OpenGL(������ ���� Graphics ����������) ������ ������ �� ������, �� �������� API ���� ������ �������� ���� ���� �������� ������ �� ���� ������ ������ ����. ���������� ������ OpenGL�� �������� ���������� ������ �������� ���� ������ �������� ������, API �� ������ ���������� ������ �������� ������ �������� �������� ������. ������ ���� ������ �������� ���� ������ ������ �������� ������ ������ �� ����(���� ���� ������ �������� ������ �� ������, ������ �������������� ������ ������ ������ ���� ���������� ������ ������ ������ ���� ����.).
1.2 ������ ���� �������� #������ ������ �� ���� ���� ������ ���� ���������� ��������. ������ ���������� �� ������ DXT (S3TC) �� 3Dc ������ ���� ������ A8L8 ������ ���� ������ ������. �� ������ �������� �������� ������ ����.
���� ���� 3Dc ���� ������ ���� ���� �������� ������, DXT ���� ������ non-decal �������� ������ ���� ���� ����. DXT1 ���� ������ 6 : 1 �������� �������� ���� DXT2/3/4/5 �� 3Dc ������ 4 : 1 �������� ��������. A8L8 �� ������������ ������ �������� ������ 3���� ������ 2���� ���������� ������ �������� ������ �� ������ �� ����. �������� ���� ������ �������� ������ z ������ �������� ������ ������ �������� ������ �� ���� ������ ������ �� ������ ���� ��������. �������� ������ DXT (S3TC) ���� �������� ������ ������ �� ������ ������ ������ ������.
�� �������� ������ �� ���� ������ ���� ���� �� ���� ������ �������� ���� ���� Z ���� �������� ������ ������ ������ ������.
������ ���� ������ X �� Y(�������� ����) ������ �������� ���������� �� ���� ������, ���� ������ ���� ������ ������ �� ������ ���������� ����.(���� : Not only does this allow us to only need the X and Y (red and green) axes values of the normal texel but it also means that we can be sure that all of out normals are unit-length.) ���� ���� ������ 1�� ������ �������� �������� ����. 1.3 DXT ���� ���� #DXT ���� ������ ������ ������ 4 : 1 ���� 6 : 1�� �������� �� ���� ������ ���� ������ ��������.DXT ������ Direct3D API �� ���� ���� ARB_texture_compression �� GL_EXT_texture_compression_s3tc ������ ���� OpenGL API ������ ������ �� ����.
DXT ���� ������ DXT1, DXT2, DXT3, DXT4, DXT5 �� �������� ����.
DXT1 �� ������ 4������ ������ ������ �������� ���������� ���� ������ �������� ������(���� ������ 1��������). DXT2/3 �� DXT1 �� ������ ���������� ���� �������� 4������ ������ ����. ���� ������ ������ 2������. DXT2 �������� �������� ���������� ���� ����������, DXT3 ������ ������ ����. DXT4/5 ������ DXT2/3 ������ ��������, �������� ������ �� ���� �������� ���������� ������ ������. DXT2/ 3/ 4/ 5�� 4 : 1 �� �������� ��������, DXT1 �� 8 : 1 ���� 6 : 1 �� �������� ��������(������ �������� ������ 8 : 1 ����).
DXT ������ ���� ���������� ���� ���� ������ �������� ������ �� ����. DXT ������ �������� �� ������ ������ ���� ���� �������� �������� �������� ������, �������� ������ ������ �������� ������ ������ �� ������ ������ ���� �� ������ ������. ������ ���� �������� ���� ���� �������� ������ Figure 1 �� ���� ����. Figure 1 �� �� ���� Figure 2 ���� ������ ���� ���� ���� ���� ���� ������ ���� ����.
![]() Figure 1 - (����) ������ ������ (������) ���� ������ ![]() Figure 2 - (����) ������ ���� �� (������) ���� ���� ��
Figure 1 �� Figure 2 ���� �� �� ������ DXT ������ ���� ������ ������ ������ �������� ��������, ���� �� �������� ���������� �� ���� ������ ����. ������ DXT ������ �������� �������� ������ ������ �������� ������ �������� ��������(���� ������ �� �� ������, ������ ���� ���� ���� ������). ������ ������ 16 ���� ���� ���� ���� ������ ������, ���� ������ ���� ������ ������������ �������� ����. DXT ������ ������ ������ ���� ���� ���� specular ������ �������� ���� ������ �������� ����(power) ���� ������ ������(artifacts)�� �������� �� ����(���� ������ �������� ��������).
1.4 3Dc ���� ���� #3Dc ���� ������ ������ �������� ���������� �������� ������ ATI �� ���� �������� 2 �������� ��������. 3Dc�� ���� �� �������� ���������� ���� �������� ������ �������� ���������� ���������� ��������. DXT ���� ������ ������ DXT �� ���� �� ���������� ���� �������� ������ ������ ������. �������� ������ (���� ���� ���������� ���� �������� ����) ���� ������ detail�� ���������� ������ �� ���� ��������. ���� ���� ������ �������� �������� ���������� ���� ������, ������ ���������� �� ������ �� �� �������� �������� �� ����. ������ ���������� ���� �� ���� �� ������, ���������� ���� ���� ������ ������ �������� ���� �� ����.1.5 A8L8 �� V8U8 ���� #A8L8 ������ Direct3D ���� �������� �� ���� 8���� �������� ������ ����(A8L8 �� �������� ������ V8U8 ����)����. A8L8 �� OpenGL ������ GL_HILO8_NV �� ���� ����������, ���� NV_texture_shader3 ������ ��������. ���� �� ���� ������������ ������������ ������ �� ������ ���� �������� ������ ������ �� ����. �������� �������� �� ���� ��������(������ ��������)�� ������������ ������ ������ ���� ��������.1.6 ���� ���� ���� z �� ���� #0.4 + X = 1 X = 1 + (-0.4) X = 0.6 1.7 ���� #������ ������ �������� �������� ������ ���� ����. 3Dc ���� �������� ������ ��, ������ �������� �������� ���������� �������� ���������� ���� ���� �� �������� 4���� ���������� ���� �� ����. DXT ���� ������ ���� ������ �������� ���� �� ������, ���� �� �������� �������� �������� ������ ������. ���� ���� DXT ������ �������� ���� �������� ������������ ���� �������� �������� �� ������, ���� ������ �������� ������ �� ������. ������ �� ������ ������ ���� ���� ����(scheme) ��������, ���� ���� ���� ������ �������� ���� ���� ������.
• A8L8�� ������ ��, ������ ������ �������� ������ �� ����. �������� ������ ���������� �������� ������ ������ ���� ��������.
• ���� ���� ���� �������� �� �� ������ ������ ���������� ������ ���� ���� ������ ���� ������. ���� ������ ���� ��������, ������ ������ ������ ������ ������������ ������ �������������� �� ������. • ������(Artifacts)�� �������� DXT ���� ������ ���������� ������ �� ��������, ���� �������� �������������� ���� ������. • Z �������� ������ ������ ������ �������� �� ����. • ���� ���� �������� 3Dc ���� ������ DXT ���� �������� �� ����. • DXT1 �� ���� ���� �������� ��������. • ���� ������ ������ �������� �������� �������� �� ����. �������� �������������� ���� ���� �������� �������� ��������. • �� �������� ������ �� ������ OpenGL ���� Direct3D, �������� ������ �� ����. 1.8 ������ #������ ������ ���� ������ �� �������� ������ ���������� ���� Bump Map Compression ������ ������ NVIDIA ���� �������� �������� : http://developer.nvidia.com/object/bump_map_compression.html.
3Dc ������ ���� ���������� ���� �������� ������ 3Dc White Paper ���� ������ ATI ������ ���� �� ���� : http://www.ati.com/products/radeonx800/3DcWhitePaper.pdf
2 ����������(The Elder Scrolls IV)������ DDS ���� #���� ; http://cafe.naver.com/elderscrolls7/100000(�������� - http://cs.elderscrolls.com/constwiki/index.php/DDS_Files) ���������� CS������ �������� ����/������ �� ������.
DDS�� �������� ������ ���� ������ ������ Microsoft DirectDraw Surface������ ����������.
���������� �������� �������� ���������� ������ ��������. �� ������ ������ ������ ������ cubic environment maps, ������ ������ ���� mipmap�� ���������� �������� ��������. DiretX 7.0�� ������ ������ ����������. DDS������ ���������� ������ ���������� ���� ������ ������������ ������ ���� �������� ������. (���� : ���������� ������ nvidia plugin������.)
�������� ������:
������ �� DXT1���� 3���� 5�� RGB���������� ������ ��������. ���������� ���������� �������� ���������� ������ ������ ��������, �� ���������� ������ ������ ������������. DXT1�� ���������� ���� ���� �������� ������������ �������� �������� ������ ���� ���� �������� ��������������.(���� - �������� ���������� �� �������� ������ ������ ���� ���������� �������� ����������.) DXT2�� ���� ������ ��/�� �������� �������� ��������, 3�� ������ ���������� ���� �������� ����������. 5�� ���� ������ ������ ���� �������� ����������.(RGB������ ������ ���� ����������)
��, �������� DXT1�� ���������� �� �������� ���������� �������� ������ �������� ����(�� - ��, ����) ������ �������� ����. �������� �������� ������ DXT3 ���� DXT5�� ��������������. ������ DXT3�� ���� �������� �������� ������ ������ DXT5�� �������� �������� ������������ ���� ����������. Parallax�� ������ mapping�� ������ ������ �������� �� �� ������ ���� �������� �������� ���������� ���� ���� �������������� ������.
������������ �������� ���� �������� ������ �� ��������, ������8.8.8.8 Unsigned ��������. �������� �������� ������ �������� �������� ���� ���� ������ ���� ���������� �� ������ ��������.(������ ���� ���� ������ ������ ����.) ������ ������ ������ �������� �������� �������� ������ ������ ����������.
���� ������ ���� DXT ������ �������� ���������� ������ ������ ����...
���� : http://wiki.beyondunreal.com/wiki/DXT
������ ���� ������ ���� ������ ������ ���� ������ ������ ��. (������ ������. -_-;;;)
1.If your image has no alpha, use DXT1 compression. Using DXT3/5 will double your image size over DXT1 and not gain anything.
2.If your image has 1-bit (on or off) alpha information, use DXT1 with one-bit alpha. If the DXT1 image quality is too low and you don't mind doubling image size, use DXT3 or DXT5 (which one doesn't matter, they'll give the same results).
> 1���� ������ ������, DXT1�� ��������. ���� DXT1�� �������� ���� ��������, ������ ���� ������ ������ DXT3�� DXT5�� ��������.
3.If your image has smooth gradations of alpha (fading in/out slowly), DXT5 is almost certainly your best bet, as it will give you the most accurate transparency representation.
> ���������� �������� ������������ ������ ������, DXT5�� ���� ���� ��������. ������ ������ ���� �������� ������ �� ������.
4.If your image has sharp transitions between multiple alpha levels (one pixel is 100%, the next one is 50%, and another neighbor is 12%), DXT3 is probably your best bet. You may want to compare the alpha results in DXT1, DXT3 and DXT5 compression, however, to make sure.
> ���������� ���� ������(���� ������ 100%, �� ���� ������ 50%, �� ������ 12%) ���������� DXT3�� ���� ���� ���� ������. ������, ������ ������ ���� ������ DXT1,3,5 ������ ������ ���� �� ������ ������ ���� ���� ����...
In DXT2 and DXT4, the pixel color values are multiplied by the alpha values before compressing (so partially transparent pixels have a color value stored darker than it shows onscreen, and completely transparent pixels always have a color value of black in the compressed texture). This can speed up some types of compositing operations, but it has the side-effect of losing color information, and can result in uglier DXT compression for some types of textures. In any case, alpha premultiplication is not supported by current Unreal Engine versions, so DXT2 and DXT4 are not options for texture formats in UnrealEd (so you can forget they exist).
> DXT2/4�� �������� �������� ���� ������ ������ ���� ���� �������� ������ ������ ������ ���� ������. ���� ��������(���� : DirectX�� �������� ������ SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA )�� �������� ������ ������ �� ����. )������ �������� ��������, ���������� ������ ���� ������ �������� �������� �� ���� �� ���� ������ ������ �������� ����.
chaen���� DDS�� ���� ����.
TGA, JPG, DDS�� ���� ��������, A8R8G8B8, DXT1 ���� ���� ���� ����������. ������ DDS == DXTn �� ��������.
DDS�� DirectX�� Texture ������ �������� �������� '���� ����'
DDS������ A8R8G8B8 �� ������ �� ����, �� ������ TGA 32bpp�� ���� ������ ���� �������� ��������.
����, DXTn(DTXc,S3TC)�� ������ ������ ������ ������ DDS�� �������� DDS == DXTn ������ ������ ����.R8G8B8, A8R8G8B, X1R5G5B5 ���� ������ TGA���� ��������, R8G8B8 ���� ������ JPG(������ ���� ������ R8G8B8), BMP���� �������� �������� ������ ������������ ��������. DDS�� ������ �� ������ �������� ������ ������ ������ ������ ���� ����, Cube �������� Volume �������� ������ ��������. DDS�� DirectX���� ���� �������� ���� ������ ������������, ������ ���� �� �������� ������ �������� ���������� �������� �������� ���� ������ �� ����.
���� ����, TGA 24bpp �������� R8G8B8( B8G8R8 )������ ������ �������� ������ ���������� DirectX ������ D3DFMT_R8G8B8 ������ ���������� �� �������� ������.
�������� �������� �������� ���������� JPG�� TGA ������ ������ �������� �������� ������ ACDSee�� ���� ���� �������� ������ �������� Preview(��������)�� �������� ��������.���� ������ D3DFMT_X8R8G8B8 ������ �������� ������, ���� ���� TGA ������ ���������� ���� ������ ������ ���� ���� ���� ������ ������ ����.
-.Deep Exploration ���� �������� DDS ������ ����
PC ���� ������ ���������� �������� ������������ ���� ���� ���������� ���� ���� �������� �� ������ ������.-.NVIDIA���� �������� ���� ���������� 9.0SDK 2004 ������ �������� ���������� ���� -.������ ���� �������������� ���������� ���� ������ ������ ���� -.DirectX SDK �� �������� �������� ������ texconv.exe�� ����.
DXTn ������ ������ ���������� ���� ���������� ������ ���� �������� ���� ������ DDS�� ��������.
( ������ ������ ������ ���������� �������� �������� ������ �������� ������ ���� )
-.������ ���� ������������ ���������� ����
DXT ������ ������ ������ �������� ���� ������ ���� ������ ���� ���������� ���� ���� �������� ������ ����. ���� �������� ���������� ������ ���������� ���� ���� ���� �� ������ ���������� ������ �� ���� ������, ���� ������ HDD�� �������� ������ ������ ���������� ���������� ���� ����. ����, ������ ���������� ���� ���������� ZIP ������ ���� �� ���� �������� ������ �� ���� ���������� ����.-.�� ���� ������ ������ 32bpp�� 24bpp ������ 16bpp �������� �������� ������ ����
������ ���������� ������ ������ ���������� ���� ������ ������ DDS�� ������ ������ ������ ������ ������ ������������ �������� ������ ������ DDS�� ���� ���� ���� ������ ����. ���� ���������� ���� ������ �������� ���������� ���� ������, ���� �������� DDS �������� �������� ������ ���� ���� �������� ���� ������ ���� ������ �� ����. �������� �������� �������� ������ ���� �������� ������ ������ ���� ������������ ���� �������� ������.
- DXTn�� ���� ���� ����
1. �������� �� ���� ����. (�� ������ �������� ���� �� ����.) 2. �������� ������������ �������� ������ ���������� ���� ������ ����. 3. �������� ���� ������ ���� �������� ������ ����. ����, ������ ���� �������� ���� ���������� ����������. (������ �������������� ������ ������������ ������ ���� ���� ������. ������ ������ ���� ������ �������� �������� ���� ���� ����.)
���� �������� DXTn ������ ������������,
1. ���������� ���� ���� ������ Opaque DXT1�� ����. (������ 4������ ����) 2. ���������� ������ alpha testing�� ������ ���� ���� 1bit alpha DXT1�� ����. (�� ���� ������ 3������ ���������� Opaque DXT1���� ���� �������� ������ ���� �� ����.) 3. ���������� ������ ���� DXT3�� ����. (������ 4������ �������� ������ 4������ ����) 4. ���������� ���������� �������� ���� DXT5�� ����. (������ 4������ �������� ������ 8������ ����) 5. ������ ���������� ���������� ���� ������, GUI�� ������ ���� ������ ���� ���� jpg ���� tga�� ���� ����.
������ ���� ������ �������� ���������� ���� ������ �������� ���� 3�������� �������� ������ ������ ������, ������ ���� ������ ������ �������� ������ �������� 4�������� �������� ����������. ������ �������������� ���� ���� �� �������� 5������ ���� ������ �������� ���������� ������.
futurity �� ����
dds ���� ������;
futurity + zupet ��
�������� ���������� ���� ������ ���� �������� ������ ���� ���������� ������. (������������ 16x16����)
���� ���������������� ������ ����(���� ���������� ������ �������� �������� ���������� ����) �������� ������ ���� ������ ���� ������ ������ ������. ������ ���� ���� ������ �������� ������ ���� ������ ���� UI���� �������������� ������ ���������� ������. ���� ������ ������ ������������ �� ������������, ������ �������� ������ ���� ���� ���� ������ �������� dds������ jpg���� ���� ������ �������� ���������������� ������ ������ ������ ������. (���� jpg�� ������������; dds�� ���������� ���� ��������������)
1.dds���� ����/������ �������� ���� ��������, ������ DXT1,5 �������� ���� ������ �� ������ ����
���� DDS�� ���� ������ ������ ������.2.dds ���� ������ DXT1~5�������� �������� ������ ���� ���� �������������� ������ ����. ( �� DDS�� ���� ���� DXT1,5 ���� �������� ������ �������� ���� ������ ������ DDS ���� Surface�� ������ ������ �������������� ���� �������� ������ ������ ������ ���� ���� ������ �������� ���� �� ����.) 3.dds ���� ������ �������� ���� Mipmap ������������ ���� ������ LoadTexture ���� ������. ( ���� tool�������� DDS �� ���������� �������� Surface ���� ������ �� ���� ��������.) 4.DXT1~5������ ������ ������������. ( DDS ���� DXT1~5 ������ ������ ������ ����, �������� ������ ���� ������ ������. )
DDS ������ ������ S3���� S3TC���� ���� �� ������ ������ ������ �������������� ���� ������ ����(4M, 8M)������ S3 Savage������ S3TC �������� ������ ��������������. ��, ���� DX������ �������� ���� ������ �������� �������� ���� ����������. ���� ���� ����(?) �������������� Voodoo2�� �������� S3TC�� ������ �������� ���� ���� ������ ���� �� �������� ������ ���� ���������� ���������� ��������.. ������ ������ �� ������ ���� �������������� ������ ���������� ������ ������ ��(���� DDS���� ���� ������ �������������� ���� �� ��������)
DDS�� ������ ��������������, ���� ������ ���� ���������� �������������� ���� �� ����, ���� ������ ������, �� ������ �������� ���� �������� ������ �� ���� ��..�� ��������. �������� ���������� ������ ����. DDS�� ���� ������ �������� �� ���� ������ ������ ������ �������� ��������.. ���� ���� ������ ���� ���������� ������, MMORPG�� ���� ���������� ������ 3�������� ������, �������� �������� HDTV���� ���������� ������ �� ������ �������� ������ ���������� ������ �� �� ���� �� ��������. myevan���� ������ ���� UI���� ����, ���� ����(?)���� ������ ������ ��������, DDS�� ������ ���� ������ ���� ���� ���� ��������, width, height�� ���� pixel�� �������� ������ ���� ������ �������� DDS�� �������� ���� ���� ��������..
������ �� �� ��������, ������ S3���� S3TC������ Savage������ ��������, 3DFX���� FXT1����
������ ���������� ������. ������ S3���� �� ������ NVIDIA, ATI���� �������� ������ ������ DX���� ���������� �������� ����������. S3TC�� FXT1�� ���� URL������ ������, �������� ������ ���������� ���� ������ �� �� ������. http://www.digit-life.co.../articles/reviews3tcfxt1/ |
지혜는 갖고 다니기엔 쉽지만 얻기엔 힘든 것이다. 책갈피_3D캐릭터애니메이션프로그래밍 MoniWikiPlugin 메모장_BTS(BugTrackingSystem) RandomPageMacro |