@ 2004-06-06 @
-1.HEADER ; MD2Header ±¸Á¶Ã¼
#.Á¤Á¡°è»ê
...
-2.BODY ;
( SKINNAME )
( DSTVERTEX ) UV°ª;
UVÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_ST·Î Á¤ÀÇ
( DTRIANGLET ) Position À妽º, UV À妽º;
...
½ÇÁ¦ UV°ª; U/ ÇìµåÀÇ SKIN_WIDTH, V/ ÇìµåÀÇ SKIN_HEIGHT
(»ï°¢)¸éÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_TRIANGLESÀ¸·Î Á¤ÀÇ
( DFRAME_T ) ÇÁ·¹ÀÓº° ¼¼ºÎÁ¤º¸
...
ù¹ø°, µÎ¹ø°, ¼¼¹ø°Á¡ÀÇ Position À妽º
==> ¾Æ·¡ÂÊ frame¿¡¼ °¢°¢ÀÇ ½ÇÁ¦ °ªÀ» »êÃâ
...
ù¹ø°, µÎ¹ø°, ¼¼¹ø°Á¡ÀÇ UV À妽º
==> ÀÂÊ Ç׸ñ( DSTVERTEX )À» Âü°í Çؼ ½ÇÁ¦ UV °ªÀ» »êÃâ
{
( Frame_Num ): 0
}{
( Frame_Num ): 1 *framename: stand02 ( Frame_Num ): 2 *framename: stand03 ... ( Frame_Num ): 197 {
Frame_name; ( ½ÇÁ¦Á¡ÀÇ Á¤º¸(byte*3), ³ë¸» À妽º(byte) ) * vertexÀÇ °¹¼ö ¹öÅؽºÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_XYZ·Î Á¤ÀÇ Àüü ÇÁ·¹ÀÓÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_FRAMES·Î Á¤ÀÇ
typedef struct
{ byte v[3]; // scaled byte to fit in frame mins/maxs byte lightnormalindex; } dtrivertx_t;
-1.byte v[3]; ½ÇÁúÀûÀÎ Á¤Á¡ÀÇ ÁÂÇ¥¸¦ ³ªÅ¸³»´Âµ¥,
¸Þ¸ðÀåÀ¸·Î µ¹¾Æ°¡±â
index_xyz°¡ ÂüÁ¶ÇÏ´Â °ªÀ¸·Î byteÇüÀ» »ç¿ëÇÏ°í ÀÖÁö¸¸
-2.byte lightnormalindex; ³ë¸Ö¹éÅÍÀÇ Àδ콺°ª½ÇÁ¦ÀûÀÎ ÁÂÇ¥´Â v[0] * scale[0] + translate[0]ÀÌ´Ù.
¼Ò½ºÀÇ anorms.h ¶ó´Â ÆÄÀÏ¿¡ ±× °ªÀÌ °è»êµÇ¾î ÀÖ´Ù.
|
ÇÒ ¼ö ÀÖ´Ù°í ¹Ï´Â »ç¶÷ÀÌ ¼º°øÇÑ´Ù(¿ùÅÍ D.À©Æ²) Ã¥°¥ÇÇ_Nidec ¸Þ¸ðÀå_C_Time µüÁö_µ¥ÀÌÅͺ£À̽º ¹Ù¶÷_ÁÖ |