|
|
|
|
|
|
|
¾îÁ¦ : 751
|
¿À´Ã : 111
|
ÃÖ´ë : 3,402
|
Àüü : 753,516
|
|
|
|
|
|
|
|
|
|
|
µð·ºÅÍ |
¢Æ Home | > | | µðÀÚÀΰü·Ã | > | µð·ºÅÍ |
|
|
|
|
|
|
Shockwave 3D ±âÃÊ°Á 01 |
|
|
±Û¾´ÀÌ : kimmos
³¯Â¥ : 05-06-09 11:53
Á¶È¸ : 4040
Æ®·¢¹é ÁÖ¼Ò |
|
¼ï¿þÀ̺ê3D°ÁÂ1.ppt (135.0K), Down : 37, 2007-04-25 20:16:13 | lesson01.dir (14.7K), Down : 12, 2007-04-25 20:16:13 |
|
Shockwave 3D ±âÃÊ°Á 01
Shockwave 3D °Á´ Special Edition Using Director 8.5 ¶ó´Â ¿ø¼¸¦ ¹ÙÅÁÀ¸·Î
Shockwave 3D (= W3D) °Á¸¦ ¿¾î°¡°Ú½À´Ï´Ù.
W3D ¿¡ ´ëÇØ °ü½ÉÀº ÀÖÁö¸¸, ¾î¶»°Ô ½ÃÀÛÇÒÁö¸¦ ¸ô¶ó °í¹ÎÇϼ̴ø ºÐµé¿¡°Ô
Á¶±ÝÀÇ µµ¿òÀÌ¶óµµ µÇ¾úÀ¸¸é ÇÕ´Ï´Ù. ÀÏ´Ü W3D ±âÃÊ°Á¿¡¼´Â W3D¿¡¼ ÇʼöÀÎ
3D Tool¿¡ ´ëÇÑ °ÍÀº ¹èÁ¦ÇÏ°Ú½À´Ï´Ù... ¸ðµç ³»¿ëÀº µð·ºÅÍ ³»¿¡¼¸¸ ÇØ°áÇϵµ·Ï
ÇÏ°Ú½À´Ï´Ù. ¾Ë¾Æ¼ 3D tool °øºÎµµ Á» ÇÏ½Ã´Â°Ô ÁÁ°ÚÁÒ...^^
¸ÕÀú ¸µ°í Syntex ¿¡ ´ëÇÑ ÀÌÇØ°¡ Áß±ÞÀº µÇ¼Å¾ß ½±°Ô ÀÌÇØÇϽǼö ÀÖÀ»°Í °°½À´Ï´Ù.
ÀÚ~ ±×·³ ½ÃÀÛÇغ¼±î¿ä?...
µð·ºÅÍ 8.5x ÀÌ»ó¹öÀüÀ» ½ÇÇàÇÕ´Ï´Ù. (ÀÌÇÏ ¹öÀü¿¡¼´Â Áö¿ø ¾ÈµÇ´Â°Í ¾Æ½ÃÁÒ ^^;;)
¸ÕÀú 3D Cast Member¸¦ »ý¼ºÇغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.
3D Cast Member¸¦ »ý¼ºÇÏ´Â ¹æ¹ýÀº µÎ°¡Áö°¡ ÀÖ½À´Ï´Ù.
ù¹ø° ¹æ¹ýÀº...
[±×¸²1]Àº Shockwave 3D windows ¹öÆ°À» ´©¸¨´Ï´Ù.
[±×¸²2]ó·³ "3D member"¶ó°í À̸§À» Á¤ÇÕ´Ï´Ù.
¹°·Ð ¾Ï°ÍÀ̳ª Á¤ÇØÁ൵ µË´Ï´Ù. ½±ÁÒ? ^^
µÎ¹ø° ¹æ¹ýÀº
[±×¸²3] °ú °°ÀÌ
my3Dmember = new(#shockwave3D) [enter]
my3Dmember.name = "3D member" [enter]
¶ó°í Çϸé ù¹ø° ¹æ¹ý°ú °°Àº °á°ú¸¦ º¸ÀÔ´Ï´Ù.
¸ÂÁÒ? µÑ´Ù Çغ¸¼¼¿ä...
ÀÌ °á°ú°¡ 3D tool ¿¡¼ÀÇ "Scene" ÀÔ´Ï´Ù.
¿©±â¿¡ ModelÀ» µîÀå½ÃÄÑ º¸°Ú½À´Ï´Ù.
"3D Member"¸¦ Sprite 1¿¡ ¿Ã¸®¼¼¿ä...
Sprite 1 ¿¡ ºñÇìºñ¾î¸¦ Çϳª »ý¼ºÇÕ´Ï´Ù.
01 ÀÇ resetWorld() ¸í·ÉÀº 3D ij½ºÆ® ¸â¹öÀÇ member Property¸¦
¸â¹ö°¡ ¸Þ¸ð¸®¿¡ óÀ½ ºÒ·¯¿Ã ¶§ÀÇ °ªÀ¸·Î Àç¼³Á¤ÇÕ´Ï´Ù.
¹«½¼¸»Àΰí ÇÏ´Ï... ÷¿¡ ½ÃÀÛÇÒ¶§...
[±×¸²1]À̳ª [±×¸²2]ó·³ 3D Cast Member¸¦ Çϳª ¸¸µé¾úÁÒ?
±×¶§ ¸¸µé¾îÁø »óÅÂÀÇ Member Property °¡ ÃʱⰪÀÔ´Ï´Ù.
resetWorld()Çϸé ÀÌ °ªÀ¸·Î Àç¼³Á¤ µÇ´Â°ÍÀÌÁÒ...
02 ÀÇ newModelResource() ÀÇ ±¸¹®À» º¸¸é...
member(whichCastmember).newModelResource(newModelResourceName{ ,#type, #facing })
newModelResourceName À» ¿¹Á¦¿¡¼´Â "my Box Resource" ¶ó°í Á¤ÇØÁá½À´Ï´Ù.
ÀÌ°Ç »ç¿ëÀÚ ¸¾´ë·ç ÀÔ´Ï´Ù. #type°ú #facing ÀÇ »õ ¸ðµ¨ ¸®¼Ò½º¸¦ »ý¼ºÇÏ¿©,
¸ðµ¨ ¸®¼Ò½º ÆÈ·¹Æ®¿¡ Ãß°¡ÇÕ´Ï´Ù. ¿¹Á¦¿¡¼´Â #type À» #box ·Î ¼³Á¤Çß½À´Ï´Ù.
#facingÀº »ý·«°¡´ÉÇÕ´Ï´Ù. ÀÌ ¸Å°³º¯¼ö´Â ÀÌ ¿¹Á¦¿¡¼´Â ºÒÇÊ¿ä ÇϹǷΠ¼³¸íÇÏÁö
¾Ê°Ú½À´Ï´Ù. ÇÊ¿äÇϽŠºÐÀº [¸µ°í»çÀü]À» º¸½Ã±â ¹Ù¶ø´Ï´Ù.
¾ÏÆ° newModelResource´Â »õ·Î¿î Model Resource¸¦ »ý¼ºÇÏ´Â °ÍÀ̶ó°í
±â¾ïÇϽñ⠹ٶø´Ï´Ù.
¿¹Á¦¿¡¼ »õ·Ó°Ô ¼Ò°³µÇ´Â ¸í·É¾î´Â ¸ðµÎ ±â¾ïÇϱ⠹ٶø´Ï´Ù.
03 ÀÇ newModel ·Î 02 ¿¡¼ Á¤ÇØÁØ newModelResource ¸¦ ÀÌ¿ëÇؼ
½ÇÁúÀûÀ¸·Î Model(Box)¸¦ »ý¼ºÇÏ°Ô µË´Ï´Ù.
01~03 3ÁÙ¸¸À¸·Î Box°¡ »ý¼ºµÈ°É º¸½Ç¼ö ÀÖ½À´Ï´Ù.
ÀÌ Box¸¦ Á» º¯Çü½ÃÄÑ º¼±î¿ä?
Box ¿¡ ´ëÇÑ Property°¡ ¹¹°¡ ÀÖÀ»±î¿ä? °¡·Î,¼¼·Î,±æÀÌ°¡
°¡Àå ±âº»ÀûÀÌ°ÚÁÒ?... À̰͸¸ ¸ÕÀú ÀÌ¿ëÇØ º¼±î¿ä?
°¡·Î´Â Width °í, ¼¼·Î´Â Height(³ôÀÌ)°í, ±æÀÌ´Â length ÀÔ´Ï´Ù.
ÀÌ°Í ¿Ü¿¡ top,bottom,front,back,left,right,lengthVertices,
widthVertices,heightVertices µîµîÀÌ Àִµ¥ ±Ã±ÝÇϽøé ã¾Æº¸¼¼¿°... ^^;
±¸·³ ÀÌ Property´Â ¾îµð¿¡ Àû¿ëÀ» ½ÃÄÑ¾ß ÇÒ±î¿ä? ¸¸µé¾îÁø Model¿¡?
¾Æ´Ô ModelResource ¿¡?... ´ç±Ù ModelResource¿¡ Àû¿ëÀ» Çؾ߰ÚÁÒ...
¿ÖÀÎÁö´Â ´«À» °¨°í »ý°¢Çغ¸¼¼¿ä... Á¹Áø¸¶½Ã°í...^^
02 ´ÙÀ½ÁÙ¿¡...
[±×¸²6] °ú °°ÀÌ
myModelResource.height = 50
myModelResource.width = 50
myModelResource.length = 100
¸¦ ³Ö½À´Ï´Ù.
¾î ±Ùµ¥? Å©±â¸¸Á¶±Ý Ä¿Á³³×¿ä?... length ´Â? À½...
±¸·³ ÀÌ ModelÀ» ȸÀü(rotate) ½ÃÄѺ¸ÁÒ...
[±×¸²7]°ú °°ÀÌ
on exitFrame me
sprite(me.spriteNum).member.model("My Box").rotate(45,45,0)
end
¸¦ beginSprite Çڵ鷯 ¾Æ·¡¿¡ ÀÛ¼ºÇÕ´Ï´Ù.
rotate ¸í·ÉÀÇ ±¸¹®À» º¸¸é...
member(whichCastmember).node(whichNode).rotate(xAngle, yAngle, zAngle {, relativeTo})
member(whichCastmember).node(whichNode).rotate(rotationVector {, relativeTo})
member(whichCastmember).node(whichNode).rotate(position, axis, angle {, relativeTo})
transform.rotate(xAngle, yAngle, zAngle {, relativeTo})
transform.rotate(rotationVector {, relativeTo})
transform.rotate(position, axis, angle {, relativeTo})
ÀÏÄÉ ³ª¿É´Ï´Ù... ¸ó°¡ ¸¹ÁÒ?...
±¸·³ ¿¹Á¦¿¡¼
sprite(me.spriteNum).member.model("My Box").rotate(45,45,0)
ó·³ ¾²´Â°É Á¶±Ý ÀÌÇصǽÃÁÒ? ¾ÈµÇ½Å´Ù±¸¿ä? ±¸·³ ±×³É ³Ñ¾î°¡ÁÒ...
´ã¿¡ ¶Ç ³ª¿ÃÅ״ϱî... ±Ã±ÝÇϽźÐÀº ¾Æ±îµµ ¸»¾¸µå·ÈÁö¸¸,
[¸µ°í»çÀü]À» ÂüÁ¶Çϼ¼¿ä...
ÀÌÄÉÀúÄÉ ¹Ù²ãµµ º¸¼¼¿ä... rotate(xÃà, yÃà, zÃà) À̴ϱî...
x,y,z Ãà¿¡ ´ëÇÑ °¨À» ÀâÀ¸¼Å¾ß ÇÕ´Ï´Ù.... rotate(0,15,0)À» Çغ¸½Ã¸é,
YÃàÀ» Áß½ÉÀ¸·Î ModelÀÌ È¸ÀüÇÏ´Â °ÍÀ» ¸»ÇÕ´Ï´Ù...´ç±ÙÀÌÁÒ?
°¢ ¼öÄ¡´Â ¼Óµµ ÀÔ´Ï´Ù.... ¼öÄ¡¸¦ ÁÙ¿©º¸¼¼¿ä... Á¡Á¡ ´À·ÁÁöÁÒ...^
|
|
|
|
|
|