|
|
|
|
|
|
|
¾îÁ¦ : 638
|
¿À´Ã : 116
|
ÃÖ´ë : 3,402
|
Àüü : 751,534
|
|
|
|
|
|
|
|
|
|
|
µð·ºÅÍ |
¢Æ Home | > | | µðÀÚÀΰü·Ã | > | µð·ºÅÍ |
|
|
|
|
|
|
Shockwave 3D ±âÃÊ°Á 02 |
|
|
±Û¾´ÀÌ : kimmos
³¯Â¥ : 05-06-09 11:59
Á¶È¸ : 4472
Æ®·¢¹é ÁÖ¼Ò |
|
¼ï¿þÀ̺ê3D°ÁÂ2.ppt (131.5K), Down : 26, 2007-04-25 20:15:22 | lesson02.dir (33.8K), Down : 12, 2007-04-25 20:15:22 | http://director.geopia.net/ (1937) | http://director.geopia.net/ (1743) |
|
Shockwave 3D ±âÃÊ°Á 02
Áö³ °Á¿¡¼ ²À ±â¾ïÇØµÑ ¸í·É¾î°¡ ÀÖ¾úÁÒ?
resetWorld()
newModeResource()
newModel()
rotate()
µîÀÌ ÀÖ¾úÁÒ?
À§ÀÇ ¸í·É¾î·Î... Scene¿¡´Ù Box ¸¦ »ý¼º½ÃÅ°°í,
Å©±â¸¦ Á¶ÀýÇÏ°í, ȸÀü±îÁö Çß¾úÁÒ?
±¸·³... °è¼ÓÇغ¼±î¿ä?
Box ¸¦ ¸¸µå´Â ±âº»ÀÌ µÇ´Â ½ºÅ©¸³Æ®°¡
----------------------------------------------------
on beginSprite me
sprite(me.spriteNum).member.resetWorld()
myModelResource = sprite(me.spriteNum).member.newModelResource
("My Box Resource",#box)
myModel = sprite(me.spriteNum).member.newModel("My Box",myModelResource)
end
----------------------------------------------------
¿´ÁÒ? 2¹ø¶óÀÎÀÇ ½ºÅ©¸³Æ®¿¡ "" ¹®ÀÚ´Â ¾Æ½ÃÁÒ? ¿µ¹®OS ¿¡¼´Â ¿ª½½·¡½¬ÀÔ´Ï´Ù.
"" ¹®ÀÚ´Â ´ÙÀ½ ÇàÀ» ÇÑ ¶óÀÎÀ¸·Î ÀνÄÇÕ´Ï´Ù. Áï, 2~3 ¶óÀÎÀ» ÇѶóÀÎÀ¸·Î
ÀνÄÀ» ÇÏ´Â °ÍÀÔ´Ï´Ù.
Box ´ë½Å¿¡ Sphere¸¦ »ý¼ºÇغ¸°Ú½À´Ï´Ù.
À§ÀÇ ½ºÅ©¸³Æ®¿¡¼ Box ºÎºÐÀ» ±×¸²°ú °°ÀÌ
¸ðµÎ Sphere·Î ¹Ù²ãº¸¼¼¿ä...
Sphere°¡ »ý¼ºµÇ¾úÁÒ? Box¿¡¼´Â Å©±â¸¦ ¼³Á¤ÇÒ¶§, width, height, length ·Î
Á¶Àý Çß½À´Ï´Ù. ±¸·³ Box¿¡¼ Default °ªÀ» 50 ÀÔ´Ï´Ù. Áï, width, height,
length °ªÀÌ 50À¸·Î ±âº»ÀûÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Ù´Â ¸»ÀÌÁÒ...
±¸·³ Sphere Àº Å©±â¸¦ ¾î¶»°Ô Á¶ÀýÇÒ±î¿ä? »ó½ÄÀûÀ¸·Î ¹ÝÁö¸§(¹Ý°æ)À» ¾Ë¾Æ¾ß
¿øÀÇ Å©±â¸¦ Á¶ÀýÇÏ°ÚÁÒ? ÀÌ Property ´Â Radius ÀÔ´Ï´Ù. Default°ªÀº 25±¸¿ä...
±¸·³ Å©±â¸¦ 2¹è·Î Çغ¸¼¼¿ä...
myModelResource ´ÙÀ½¿¡ radius¸¦ 50À¸·Î ¸¸µé¾î º¸¼¼¿ä...
--------------------------------------------------------
myModelResource.radius = 50
--------------------------------------------------------
ÇÏ¸é µÇ°ÚÁÒ?... Ä¿Á³ÁÒ?...
Box¿¡¼´Â ÷¿¡ ¸ø ´À²¼´ø... ¾Æ·§ºÎºÐ¿¡ À½¿µÀÌ ÀÖÁÒ?
À̰͵ΠDefault °ªÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Ù´Â°É »ý°¢ÇÒ¼ö ÀÖ½À´Ï´Ù.
ÀÌ°Ç Â÷Â÷ Çϵµ·Ï ÇÏ°í...
ÀÌ Sphere ... ±¸´Â ¸î°³ÀÇ PolygonÀ¸·Î µÇ¾î ÀÖÀ»±î¿ä?...
À½.. ¼ö¹ÚÀ» ¼¼·Î·Î ±æ°Ô 20 Á¶°¢À» ³½´Ù°í »ý°¢Çϼ¼¿ä. ¿©±â¼
default °ªÀÌ 20À¸·Î Á¤ÇØÁ® Àְŵç¿ä... ²®Áú¸¸ ³²±â°í ¼ö¹ÚÀ» ´Ù ¸Ô°í,
±× ²®Áú·Î ´Ù½Ã ±¸¸¦ ¸¸µç´Ù°í »ý°¢Çغ¸°Ú½À´Ï´Ù.
ÇöÀç »ý¼ºµÈ Sphere°¡ 20°³ÀÇ ¼ö¹Ú²®Áú(Polygon)À¸·Î ¸¸µé¾î
Á³´Ù°í »ý°¢ÇÕ´Ï´Ù. ÀÌ ¼ö¹Ú²®ÁúÀÇ ¼ö°¡ ¸¹¾ÆÁú¼ö·Ï ±¸ÀÇ Ä÷¸®Æ¼´Â
±ú²ýÇØÁö°ÚÁÒ... ÀÌ property°¡ resolution ÀÔ´Ï´Ù.
resolution À» È®ÀÎÇغ¸±â À§Çؼ´Â ´Ù¸¥ µÎ°³ÀÇ property·Î È®ÀÎÇØ º¼¼ö
ÀÖ½À´Ï´Ù. ±¸´Â startangle·Î ½ÃÀÛÇؼ endangle·Î ³¡³³´Ï´Ù. default´Â
startangleÀÌ 0 ÀÌ°í, endangleÀÌ 360 ÀÔ´Ï´Ù.
±¸·³ resolutionÀ» È®ÀÎÇغ¸µµ·Ï ÇÏÁÒ... SphereÀÇ startangleÀ» 0 À¸·Î
endangleÀ» 330 À¸·Î Àâ¾Æ º¾´Ï´Ù.
--------------------------------------------------------
myModelResource.startangle = 0
myModelResource.endangle = 330
--------------------------------------------------------
À» ³Ö°í Sphere¸¦ È®ÀÎÇغ¸¼¼¿ä...
Áß°£¿¡ ¼ö¹Ú Á¶°¢ÀÌ ¸î°³ ºüÁø°Í °°ÁÒ?
¾îÁ¦¿Í ¸¶Âù°¡Áö·Î Sphere ¸¦ Rotate ½ÃÄѺ¸¼¼¿ä...
myModelResource = sprite(me.spriteNum).member.newModelResource
("My Box Resource",#box)
¿¡¼
newModelResource ÀÇ ±¸¹®ÀÌ
member(whichCastmember).newModelResource(newModelResourceName{ ,#type, #facing })
¶ó°í Çß½À´Ï´Ù.
#Type ÀÌ Sphere °í, #FacingÀº »ý·«Çß½À´Ï´Ù. #facing µµ Å×½ºÆ® Çغ¸½Ã±â ¹Ù¶ø´Ï´Ù.
#front, #back, #both ÀÔ´Ï´Ù. ²À Çغ¸¼¼¿ä...
±×¸®°í, #type ¿¡´Â #box, #sphere, #cylinder, #plane... ÀÌ·¸°Ô 4°¡Áö ±âº» ModelÀÌ
ÀÖ½À´Ï´Ù. #cylinder¿Í #planeÀº °£´ÜÈ÷ Property¸¸ ¼Ò°³ÇÏ°Ú½À´Ï´Ù.
#cylinder ´Â ¿øÅë(¿ø±âµÕ) ¸ðÇüÀÔ´Ï´Ù.
topRadius, bottomRadius : À¸é,¾Æ·§¸éÀÇ ¹ÝÁö¸§, default 25
numSegments : À¸é¿¡¼ ¾Æ·§¸é±îÁöÀÇ ¼±ºÐ¼ö ÃʱⰪÀº 2ÀÌ»ó
resolution : ¿ø±âµÕ(¼¼·Î)ÀÇ Polygon ¼ö
topCap, bottomCap : ¿ø±âµÕÀÇ »ó´Ü ¶Ñ²±ÀÌ ´ÝÈúÁö(TRUE) ¿¸±Áö(FALSE)
startAngle, endAngle : À§¿¡¼ ¼³¸íÇßÁÒ?
#Plane ´Â ¿øÅë(¿ø±âµÕ) ¸ðÇüÀÔ´Ï´Ù.
width, length : °¡·Î¼¼·Î °ÚÁÒ...
lengthVertices : »óÀÚ³ª Æò¸éÀÇ ±æÀ̸¦ µû¶ó ¸Á ²ÀÁöÁ¡ÀÇ ¼ö¸¦ ³ªÅ¸³À´Ï´Ù.
ÀÌ °ªÀÌ Áõ°¡ÇÏ¸é ¸éÀÇ ¼ö°¡ Áõ°¡ÇÏ°í, µû¶ó¼ ¸ÁÀÇ Á¤±³ÇÔµµ Áõ°¡ÇÏ°Ô µË´Ï´Ù.
ÃʱⰪÀº 4 ÀÌ°í, 2ÀÌ»óÀÇ °ªÀ» °¡Á®¾ß ÇÕ´Ï´Ù.
WidthVertices : XÃà »óÀÇ ²ÀÁöÁ¡ÀÇ ¼ö(Á¤¼ö°ªÀ¸·Î)¸¦ ¾ò°í ¼³Á¤ÇÒ ¼ö ÀÖµµ·Ï
ÇÕ´Ï´Ù. ÀÌ ¼Ó¼ºÀº 2 ÀÌ»óÀ̾î¾ß Çϸç, ÃʱⰪÀº 2ÀÔ´Ï´Ù.
|
|
|
|
|
|