MoniWiki¸Þ¸ðÀå_MD2
Login:
Password:
´ë¹®|ã±â|¹Ù²ï±Û|¸ñ·Ï|¸Þ¸ðÀå|Ã¥°¥ÇÇ|¿¬²É|¸µÅ©
Edit Diff Reload Search Print Info Mail Help RSS

@ 2004-06-06 @

  MD2(Quake2 File Format)

  • »ó¼¼Á¤º¸ ;
    ÄùÀÌÅ©2ÀÇMD2ÆÄÀÏÀ»ÀоÀÚ {_-} Ãâó; www.ahastudio.com/page=InsideOnmoon
  • »ç¿ëÇÏ´Â ±×·¡ÇÈ API¿¡ µû¶ó¼­, ±×·¡ÇÈ ÀÛ¾÷Åø¿¡ µû¶ó¼­ ÁÂÇ¥°è°¡ ´Ù¸£±â ¶§¹®¿¡ ƯÈ÷ ȸÀü°ªÀ» Àû¿ëÇÒ ¶§´Â ¾î¶²Ãà¿¡ Àû¿ëÇؾßÇÒ Áö ÁÖÀÇÇÑ´Ù.

#.µ¥ÀÌŸ ±¸Á¶

-1.HEADER ; MD2Header ±¸Á¶Ã¼
...
  • NUMBER_XYZ 313
  • NUMBER_ST 431
  • NUMBER_TRIANGLES 546
  • NUMBER_FRAMES 198

  • -2.BODY ;
    ( SKINNAME )
    ( DSTVERTEX ) UV°ª;
    UVÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_ST·Î Á¤ÀÇ
  • dstv 0: 37 1
    ...
  • dstv 430: 216 219
    ½ÇÁ¦ UV°ª; U/ ÇìµåÀÇ SKIN_WIDTH, V/ ÇìµåÀÇ SKIN_HEIGHT

  • ( DTRIANGLET ) Position À妽º, UV À妽º;
    (»ï°¢)¸éÀÇ °¹¼ö´Â ÇìµåÀÇ NUMBER_TRIANGLESÀ¸·Î Á¤ÀÇ
  • index_xyz 0: 5 6 0
    ...
  • index_xyz 545: 309 308 311
    ù¹ø°, µÎ¹ø°, ¼¼¹ø°Á¡ÀÇ Position À妽º
    ==> ¾Æ·¡ÂÊ frame¿¡¼­ °¢°¢ÀÇ ½ÇÁ¦ °ªÀ» »êÃâ
  • index_st 0: 33 34 30
    ...
  • index_st 545: 427 426 429
    ù¹ø°, µÎ¹ø°, ¼¼¹ø°Á¡ÀÇ UV À妽º
    ==> À­ÂÊ Ç׸ñ( DSTVERTEX )À» Âü°í Çؼ­ ½ÇÁ¦ UV °ªÀ» »êÃâ

  • ( DFRAME_T ) ÇÁ·¹ÀÓº° ¼¼ºÎÁ¤º¸
    {
    ( Frame_Num ): 0
    {
    • framename: stand01
    • scale: 0.158975/ 0.136619/ 0.191009
    • translate: -24.202509/ -15.385653/ -24.302708
    • vertex_xyz_and_lightNomal_Index:
      0: 181/ 112/ 255/ 82
      ...
      312: 167/ 106/ 211/ 143
    }
    ( Frame_Num ): 1 *framename: stand02
    ( Frame_Num ): 2 *framename: stand03
    ...
    ( Frame_Num ): 197
    {
    • framename: death308
    • scale: 0.103454/ 0.194653/ 0.105716
    • translate: -18.633272/ -12.926245/ -24.282822
    • vertex_xyz_and_lightNomal_Index:
      0: 80/ 66/ 155/ 64
      ...
      312: 100/ 65/ 134/ 80
    }
    }
    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ÇüÀ» »ç¿ëÇÏ°í ÀÖÁö¸¸
    ½ÇÁ¦ÀûÀÎ ÁÂÇ¥´Â v[0] * scale[0] + translate[0]ÀÌ´Ù.
    -2.byte lightnormalindex; ³ë¸Ö¹éÅÍÀÇ Àδ콺°ª
    ¼Ò½ºÀÇ anorms.h ¶ó´Â ÆÄÀÏ¿¡ ±× °ªÀÌ °è»êµÇ¾î ÀÖ´Ù.

    {_r} ¸Þ¸ðÀåÀ¸·Î µ¹¾Æ°¡±â

    December, 2024
    1234567
    891011121314
    15161718192021
    22232425262728
    293031 

    ÇÒ ¼ö ÀÖ´Ù°í ¹Ï´Â »ç¶÷ÀÌ ¼º°øÇÑ´Ù(¿ùÅÍ D.À©Æ²)

    ¹Ù¶÷06_2014
    HGL_11Hardware
    HGL_13Denizens
    edu2014_C££
    last modified 2004-07-16 09:35:42
    °íÄ¡±â|ã±â|ÂÊ Áö¿ì±â|ºñ½ÁÇÑ ÂÊ Valid XHTML 1.0! Valid CSS! powerd by MoniWiki
    0.0173 sec