IRiS nX
114 ARTICLES / 235 REPLIES [1:2]
=ADMIN=


#142. µ¨»ç¶û
Àü¿¡ 3Â÷¿ø ¿ø±âµÕ°ü·Ã Áú¹®À» Çß¾ú½À´Ï´Ù. 2005/09/05 (Mon)

´äº¯À» ÇØÁֽŠ³»¿ëÀ» ÂüÁ¶ÇÏ¿© Å×½ºÆ®ÁßÀε¥ Àß ÀÌÇØ°¡ ¾ÈµÇ¼­ ¸»ÀÔ´Ï´Ù.
¿ø·¡ 2D ÀÚ·á·Î ¿Ã¸°°ÍÀº TFPoint°¡ x, y ¸¸ Á¸ÀçÇϴµ¥ ¿©±â¿¡ z °ªÀ» enable Ç϶ó´Â ÀǹÌÀΰ¡¿ä ?
View Matrix ¼³Á¤°ú Projection ¼³Á¤Àº ¾î¶»°Ô ÇÏ´Â °ÍÀΰ¡¿ä ?
°¡´ÉÇÏ¸é ¼ø¼­¸¦ Á» ³ª¿­ÇØ ÁáÀ¸¸é ÇÕ´Ï´Ù.(¼³Á¤ÇØÁà¾ß ÇÏ´Â ¼ø¼­)
ÂüÁ¶¸¦ ÇÒ·Á°í Çصµ µ¨ÆÄÀÌ °ü·Ã ÀÚ·á´Â Àß ¾ø±º¿ä.(ÂüÁ¶ °¡´ÉÇÑ ¼­ÀûÀÌ ÀÖÀ½ Á¦¸ñÀ» Á» ¾Ë·Á ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.)
±¸ÇöÇÒ ·Á°í ÇÏ´Â °ÍÀº ¸¶¿ì½º¸¦ µå·¡±× ÇÏ¸é »ç¸éü³ª ¿ø±âµÕÀÌ ¸¶¿ì½º µå·¡±×ÇÑ Å©±â·Î ±×·ÁÁö°í, À̸¦ ¿øÇÏ´Â °¢µµ·Î ȸÀüÀ» ½ÃÄÑ º¸´Â °ÍÀÔ´Ï´Ù.
ºÎŹÇÕ´Ï´Ù.

#142-1. ¾È¿µ±â 2005/09/05 (Mon)
À½...
z°ªÀ» enableÇ϶ó´Â °ÍÀÌ ¾Æ´Ï¶ó z-buffer¸¦ enableÇ϶ó´Â °ÍÀÔ´Ï´Ù.

Á¦ ¼Ò½º¿¡¼­ CreateDevice()¸¦ Çϱâ Àü¿¡ ¾Æ·¡¿Í °°ÀÌ present parameter¸¦ ä¿öÁÖ¸é z-buffer¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

m_d3dPP.EnableAutoDepthStencil := TRUE;
m_d3dPP.AutoDepthStencilFormat := D3DFMT_D16;

±×¸®°í device »ý¼ºµÈ ³­ ÈÄ¿¡

m_pD3DDevice.SetRenderState(D3DRS_ZENABLE, 1);

¶ó°í ÇØÁÖ¸é z-buffer°¡ enable µË´Ï´Ù.


View Matrix¿Í projection matrix ¼³Á¤Àº IDirect3DDevice9.SetTransform() ÇÔ¼öÀÇ ¿ªÇÒÀ» ã¾Æ º¸¼¼¿ä.


Ȥ½Ã³ª Á¦°¡ ¿Ã¸° 2D¿ë library¸¦ ±×´ë·Î »ç¿ëÇϽ÷Á ÇÑ´Ù¸é Á¶±Ý ¹«¸®°¡ µû¸¦ °Ì´Ï´Ù. Vertex ±¸Á¶¿¡ rhw¸¦ ³Ö°í Àִµ¥ ÀÌ°ÍÀ» »©¼Å¾ß view matrix °è»êÀÌ µË´Ï´Ù. ±×¸®°í light¸¦ Ãß°¡ÇÏ·Á¸é vertex¿¡ normalµµ Áý¾î ³Ö¾î¾ß°ÚÁÒ.


µ¨ÆÄÀÌ·Î µÈ ÀڷḦ ÃßõÇØ´Þ¶ó°í Çϼ̴µ¥, µ¨ÆÄÀÌ¿ëÀ¸·Îµµ ÀÖ´ÂÁö´Â Àß ¸ð¸£°Ú½À´Ï´Ù. ÇÏÁö¸¸ Direct3D´Â ƯÁ¤ ¾ð¾î¿¡ Á¾¼ÓÀûÀÌÁöµµ ¾Ê°í 3D °³³äµµ µ¨ÆÄÀÌ¿Í´Â °ü°è°¡ ¾øÀ¸´Ï ¼­Á¡¿¡¼­ Direct3D¿¡ ´ëÇØ ³ª¿Í ÀÕ´Â ¾Æ¹« Ã¥À̳ª º¸¼Åµµ °³³äÀ» ÀâÀ» ¼ö ÀÕÀ» °Í °°½À´Ï´Ù. ±×¸®°í Direct9 SDK¿¡ ¹èÆ÷µÇ´Â ¹®¼­´Â Çʵ¶ÀÔ´Ï´Ù. À§¿¡¼­ ¸»¾¸ÇϽŠmatrix ¼³Á¤ ¼ø¼­³ª ±×¿¡ ´ëÇÑ »ùÇÃÀÌ tutorial Çü½ÄÀ¸·Î Àß µÇ¾î ÀÖ½À´Ï´Ù. (±×¸®°í ¿ø±âµÕÀ» ȸÀüÇÏ°í Á¶¸í ºñÃß°í ÅؽºÃÄ ÀÔÈ÷´Â ¿¹Á¦°¡ ¼Ò½º±îÁö µé¾î ÀÖ½À´Ï´Ù. ¹°·Ð C++ÀÌÁö¸¸...)

±»ÀÌ µ¨ÆÄÀ̷θ¸ °øºÎ¸¦ ÇϽðڴٸé.. ±Û½ê¿ä.. Á¦°¡ ¾Æ´Â ÀÚ·á´Â ¾ø½À´Ï´Ù.

#142-2. ¾È¿µ±â 2005/09/06 (Tue)
µ¨ÆÄÀÌ DirectX 9.0 ÀÚ·á¿Í »ùÇà ÀÖ´Â °÷
http://www.clootie.ru/ ÀÔ´Ï´Ù. ¿ø±âµÕ »ùÇõµ ã¾Æ º¸½Ã¸é ÀÖ½À´Ï´Ù..

´Ù¿î·Îµå [1M] ÀÌ »ùÇÃÀº ±× »çÀÌÆ®¿¡ ÀÖ´Â ¿¹Á¦¸¦ ¾à°£ ¼öÁ¤Çؼ­ ¿ø±âµÕ ±øÅëÀ» ¸¸µé¾î º¸¾Ò½À´Ï´Ù. (µ¨ÆÄÀÌ¿¡¼­ ¹Ù·Î ½ÇÇàµÇµµ·Ï ¸ðµç ¼Ò½º¸¦ ´Ù ÷ºÎÇß½À´Ï´Ù.)


NAME / EMAIL
URL
SUBJECT
MESSAGE
ATTACH
ATTACH STYLE COOKIE  
[PREV] [NEXT] return


IRiS nX by NvyU =starry scape=