¸¶¾ß Cg Ç÷¯±×ÀÎÀº Çâ»óµÈ ½Ç½Ã°£ ½¦ÀÌ´õ°¡ ¸¶¾ß 4.5¿¡ ÅëÇÕµÉ ¼ö ÀÖµµ·Ï ÇØÁØ´Ù. Cg(C for Graphics)´Â C ¾ð¾î¿Í À¯»çÇÑ »óÀ§ ·¹º§ÀÇ ±×·¡ÇȽº ÇÁ·Î±×·¡¹Ö ¾ð¾îÀÌ´Ù. ÀÌ
¾ð¾î¸¦ »ç¿ëÇÔÀ¸·Î½á 3D ¾ÆƼ½ºÆ®¿Í ÄÅÙÆ® °³¹ßÀÚ´Â ¿µÈ Ç°Áú ¼öÁØÀÇ À̹ÌÁöµéÀ» ÀúÀÛÇÒ ¼ö ÀÖ°í, ¶ÇÇÑ ½Ç½Ã°£À¸·Î ±× À̹ÌÁöµéÀ» Á¦¾îÇÒ ¼ö
ÀÖ´Ù.
À©µµ¿ìÁî¿ë ¸¶¾ß Cg Ç÷¯±×ÀÎÀº NVIDA¿Í Alias|Wavefront°¡ °øµ¿À¸·Î °³¹ßÇÏ¿´´Ù. ¸¶¾ß 4.5 »ç¿ëÀÚµéÀº ÀÌÁ¦ NVIDIA GPUÀÇ
Çâ»óµÈ Çϵå¿þ¾î ·»´õ¸µ ±â¼úÀ» ½ÊºÐ È°¿ëÇÒ ¼ö ÀÖ°Ô µÇ¾ú´Ù.
* GPU : GPU(Graphics
Processing Unit)´Â 1999³â 8¿ù 31ÀÏ PC »ê¾÷°è¿¡ óÀ½ ¼Ò°³µÇ¾ú´Ù. NVIDIAÀÇ ¿ë¾î »çÀü¿¡ µû¸£¸é, GPUÀÇ ±â¼úÀûÀÎ
Á¤ÀÇ´Â "Transform, lighting, triangle setup/clipping, ±×¸®°í rendering engines°¡ ³»ÀåµÇ¾î
ÀÖÀ¸¸ç, ÃÊ´ç ÃÖ¼Ò 1000¸¸ Æú¸®°ï(polygons) ÀÌ»óÀ» ó¸®ÇÒ ¼ö ÀÖ´Â ´ÜÀÏ Ä¨" ÀÌ´Ù.
* Cg¿Í ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®ÀÇ HLSL(High
Level Shader Language) : Cg´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®¿ÍÀÇ ±ä¹ÐÇÑ ÇÕÀÛ ¾Æ·¡ °³¹ßµÇ¾ú±â ¶§¹®¿¡ DirectX 9.0, HLSL°úÀÇ
ȣȯ¼ºÀ» º¸ÀåÇÑ´Ù. ÀÌ·¯ÇÑ ÀÌÁ¡Àº ±×µ¿¾È ¸Á¼³¿©¿Ô´ø ¸¹Àº °³Àΰú ¾÷ü¸¦ ²ø¾îµéÀÏ °ÍÀ¸·Î ¿¹»óµÈ´Ù.
¸¶¾ß Cg Ç÷¯±×ÀÎÀ» ÀνºÅçÇÏ´Â ¹æ¹ý ¹× ÀýÂ÷
1. ¸ÕÀú ´ÙÀ½ ù ¹ø° ¸µÅ©·Î °¡¼ Á÷Á¢ Ç÷¯±×ÀÎ ÆÄÀÏÀ» ³»·Á¹Þ°Å³ª, cgLand¿¡¼ Á¦°øÇÏ´Â
µÎ ¹ø° ¸µÅ©¸¦ ÅëÇØ £¢Maya_Cg_Plugin1_0.zip£¢ÆÄÀÏÀ» ³»·Á¹Þ´Â´Ù.
a.
Alias|Wavefront
- Maya Cg Plugin Released.
b.
Maya_Cg_Plugin1_0.zip
2.
ZIP ÆÄÀÏÀ» Ç®¸é ¾Æ·¡¿Í °°ÀÌ ³× °³ÀÇ ÆÄÀÏÀÌ ³ª¿Â´Ù.
3. Ç÷¯±×ÀÎÀ» ¼³Ä¡Çϱâ
Àü¿¡ Cg ÄÄÆÄÀÏ·¯¿Í CgFX ·±Å¸ÀÓÀÌ ¸ÕÀú ¼³Ä¡µÇ¾î¾ß Çϴµ¥, À§ ÆÄÀϵé Áß £¢Cg_Compiler_R1_0.exe£¢¿Í
£¢CgFX_runtime_Beta0003.exe£¢°¡ ±×°ÍµéÀÌ´Ù. °¢°¢ÀÇ ÆÄÀϵéÀ» Â÷·Ê´ë·Î ´õºíŬ¸¯ÇÏ¿© ¼³Ä¡ÇÏÀÚ.
£¢ÀÌ ÆÐÅ°Áö ¾ÈÀÇ exe¿Í dll ÆÄÀÏÀÌ ½Ã½ºÅÛ °æ·Î¿¡ Ãß°¡µÇ¾î¾ß ÇÕ´Ï´Ù. º¯°æÇϽðڽÀ´Ï±î?£¢
4. ÀÌÁ¦
£¢Maya_Cg_Plugin1_0.exe£¢ ÆÄÀÏÀ» ´õºíŬ¸¯ÇÏ¿© ¸¶¾ß Cg Ç÷¯±×ÀÎÀ» ¼³Ä¡ÇÏÀÚ. Âü°í·Î, ³ª¸ÓÁö ÆÄÀÏ £¢AlienMayaExample.zip£¢¿¡´Â
¿¹Á¦ ÆÄÀÏ°ú ÅؽºÃÄ ¹× ½¦ÀÌ´õÀÇ ¶óÀ̺귯¸®°¡ ´ã°Ü ÀÖ´Ù.
Diffuse map for head and eye
2 alternate diffuse maps for the head
1 bump map & corresponding normal map
Gloss map
Cube map for reflections
5. ¸ðµç ¼³Ä¡°¡ ¿Ï·áµÆÀ¸¸é ¸¶¾ß¸¦ ½ÇÇà½ÃŲ´Ù. ±×¸®°í Ç÷¯±×ÀÎ
¸Å´ÏÀú¿¡¼ cgfxShader.mll À» ã¾Æ üũ¹Ú½º¸¦ üũÇÑ´Ù.
6. ¸ðµç °Ô Á¤»óÀûÀ¸·Î ÀÌ·ç¾îÁ³´Ù¸é Hypershade À©µµ¿ì¿¡¼ CgFX Shader¸¦ »ý¼ºÇÏ´Â ¿É¼ÇÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
°ü·Ã±â»ç
±×·¡ÇȽº¸¦ À§ÇÑ C ¾ð¾î, £¢Cg£¢
CG, Game Developer ž ÇÁ·Î±×·¡¹Ö Åø·Î