iTownSDKά»¤¸üй«¸æ2011Äê11ÔÂ22ÈÕ
ºËÐÄÌáʾ£º
¸÷λÇ×°®µÄ¿ª·¢Õߣ¡
¡¡¡¡°ÙÍò½±½ð´óÈü½øÈë³å´ÌÆÚ£¬ÎªÁË°ïÖú¸÷λ¿ª·¢Õ߸üºÃµÄÍêÉÆ×Ô¼ºµÄÏîÄ¿£¬iTown½«ÔÚ12ÔÂ5ÈÕ½øÐÐÒ»´Îͳһ²âÆÀ·þÎñ¡£
¡¡¡¡·²ÔÚ´Ë֮ǰÌá½»µÄÏîÄ¿£¬¶¼¿ÉÒÔÊÕµ½¿ª·¢ÍŶӴÓÃÀÊõ¡¢UI¡¢Íæ·¨¡¢³ÌÐòÎȶ¨ÐԵȶ෽ÃæµÄ²âÆÀ·´À¡Òâ¼û£¬°ïÖú´ó¼ÒÔÚ×îºó³å´Ì½×¶Î¸üºÃµÄÍê³É¹¤×÷¡£
¡¡¡¡´ó¼Ò¿ÉÒÔͨ¹ýiTownÓÎÏ·¹ÜÀíϵͳÌá½»ÐÂÏîÄ¿ÉêÇ룬´ýÏîÄ¿ÉêÇëͨ¹ýÖ®ºó£¬¿Éͨ¹ýiTownSDK³ÌÐò¹¤¾ß£¨Frontend£©Ìá½»ÓÎÏ·°æ±¾£¬²¢Í¨¹ýiTownÓÎÏ·¹ÜÀíϵͳȷÈÏÌá½»ÉóºËµÄÓÎÏ·°æ±¾¡£
¡¡¡¡×¢£º´Ë´Î²âÆÀ·þÎñ²»Ó°ÏìÍŶÓ×îºó½±½ðµÄ»ñµÃ¡£
======================================================================================================================
¡¡¡¡±¾Öܶþ£¨2011Äê11ÔÂ22ÈÕ£©ÔçÉÏ9µã£¬iTownSDK½«½øÐÐά»¤¸üС£Ô¤¼Æά»¤Ê±¼äΪ9:00-10:00£¬Èô½ìʱά»¤Î´Íê³É£¬¿ª»úʱ¼ä½«Ë³ÑÓ¡£
¡¡¡¡Î¬»¤¹ý³ÌÖУ¬ÎÒÃǽ«ÔÝÍ£ËùÓзþÎñ£¬¸ø¸÷λÔì³ÉµÄ²»±ã£¬¾´ÇëÔÁ£¡Î¬»¤ºó£¬´ó¼Ò¿ÉÔÚ http://itown.163.com/sdk/download/ ÏÂÔØа汾µÄ¿Í»§¶Ë¡£
ÐÂÔöÄÚÈÝ£º
Ò»¡¢3DÈ«½Ó¿Ú¡¢Demo¡¢Îĵµ¿ª·Å£º
½Ó¿Ú²¿·Ö£º
1¡¢iworld3dÐÂÔöavatar3dÀࣺÌṩ»ñÈ¡¶¯»Ãû³ÆµÄ·½·¨¡£
2¡¢iworld3dÐÂÔöavatar_mgrÀࣺÌṩº¯ÊýÓÃÓÚ´´½¨ºÍ¹ÜÀíavatar3d¡£
3¡¢iworld3dÐÂÔöscene3dÀàºÍcreate_scene3dº¯Êý¡£create_scene3dÓÃÓÚ´´½¨scene3d¶ÔÏ󣬶øscene3dÀàÌṩʮ¶à¸ö·½·¨¹ÜÀíscene3d¶ÔÏó(¾ßÌå¼ûAPIÎĵµ)¡£
4¡¢iworld3d.model3dÀࣺÐÂÔö¹Ò½Óµã¡¢¹Ç÷À¡¢×ÓÄ£ÐÍ¡¢ÐòÁж¯»Ïà¹Ø½Ó¿ÚºÍÊôÐÔ£¬²¢ÐÂÔöÁË´óÁ¿Êý¾Ý½Ó¿Ú¡£
5¡¢iworld3d.fx3dÔö¼ÓÊôÐÔidx¡£
6¡¢iworld3d.obj3dÔö¼Ó½Ó¿Úleave_scene£ºÔÚ½«³¡¾°¶ÔÏó°ó¶¨µ½ÆäËû¶ÔÏóÇ°£¬ÐèÒªµ÷ÓøýӿÚÈó¡¾°¶ÔÏóÍÑÀ볡¾°¡£
7¡¢iphy3d.col_objectÔö¼ÓÈ«3DÏà¹Ø½Ó¿Ú£ºadd_to_scene3d¡¢remove_from_scene3d¡£
Demo£º
ÐÂÔöÈ«3D³¡¾°demo——itownroom¡£
Îĵµ£º
¡¶iTownSDK-³ÌÐò¿ª·¢Êֲᡷµ÷ÕûÁËÕ½Ú2.4¡¢2.11£¬Ôö¼ÓÁËÈ«3DÏà¹Ø˵Ã÷¡£
3D³¡¾°±à¼Æ÷¼°°ïÖúÎĵµ£º
²»Ö±½Ó¿ª·Å¡£ÇëÓÐÐèÒªµÄÍŶӣ¬·¢ËÍÓʼþµ½itown@service.netease.com£¬ÓʼþÄÚÈÝÐè˵Ã÷ÍŶÓÇé¿ö£¨ÍŶÓÇé¿ö¡¢ÏîÄ¿½éÉÜ¡¢ÃÀÊõÄ£¿é½éÉÜ£©£¬½øÐÐÉêÇë¡£
¶þ¡¢API½Ó¿Ú£º
1¡¢iworld2dÐÂÔöcamera_world_pos_centerº¯Êý£ºÓÃÓÚ¾µÍ·Æ½ÒÆ¡£
2¡¢image2dÐÂÔöset_vertex_color½Ó¿Ú£ºÓÃÓÚ¶Ô4¸ö¶¥µã½øÐмÓÉ«¡£
3¡¢iphy2d.bodyÔö¼ÓÐÎ×´Ïà¹Ø½Ó¿Ú£ºcreate_fixture¡¢destroy_fixture¡¢get_fixture_length¡£
4¡¢ieditor2dÔö¼Óget_allgameobjs½Ó¿Ú£º¿É»ñÈ¡³¡¾°ÖеÄËùÓÐÓÎÏ·¶ÔÏó¡£
5¡¢iapiÔö¼Óshow_invite½Ó¿Ú£ºÑûÇë½çÃæ´ò¿ª¡¢¹Ø±Õ¡£
6¡¢iapiÔö¼Óget_render_fps½Ó¿Ú£º »ñÈ¡µ±Ç°äÖȾ֡ÂÊ¡£
7¡¢iapiÔö¼Óclose_achieve½Ó¿Ú£ºÓÃÓڹرճɾͽçÃæ¡£
8¡¢iapiÔö¼Óreq_rank_by_uid_list½Ó¿Ú£ºÓÃÓÚ»ñÈ¡ÅÅÐаñÅÅÃû¡£
9¡¢·þÎñÆ÷Ôö¼Ócghall_query_rank½Ó¿Ú£º²éѯָ¶¨Íæ¼ÒµÄij¸öÅÅÐаñµÄÅÅÃû¡£
10¡¢·þÎñÆ÷Ôö¼Ó cghall_on_query_rank_result½Ó¿Ú£ºÓÃÓÚcghall_query_rank·µ»Ø½á¹û´¦Àí¡£
11¡¢·þÎñÆ÷player¶ÔÏóÔö¼ÓmatchlvlÊôÐÔ£ºÍæ¼ÒÔÚ´óÌüµÄÅä¶ÔµÈ¼¶¡£
12¡¢·þÎñÆ÷Ôö¼Ócghall_update_player_matchlvl½Ó¿Ú£º¸üÐÂÍæ¼ÒµÄÅä¶ÔµÈ¼¶¡£
Èý¡¢3DÌØЧ±à¼Æ÷£º
1¡¢Ôö¼ÓÏÔʾÐÔÄÜÇúÏß¹¦ÄÜ¡£
2¡¢²ÄÖÊ¿ØÖÆÖ§³ÖhaloÌØЧ¡£
3¡¢Òýµ¼ÌØЧµÄUV·Ö²¼¼ÓÉÏ°´Òýµ¼¾àÀë±ÈÀý·Ö²¼¡£
4¡¢ÇúÏßÃæ°å¹Ø¼üÖ¡¿ÉÒÔÊÖ¶¯ÉèÖÃʱ¼ä¡£
5¡¢·¢ÉäÆ÷ÐÎ×´Ôö¼ÓÉÈÐΡ£
6¡¢ÐÂÒýµ¼ÌØЧ¼ÓÉÏÑÕÉ«ÖÜÆڱ仯¹¦ÄÜ¡£
7¡¢alpha±ä»¯ÇúÏß¡¢½¥ÒþÇúÏßÒƶ¯ÖÁ¹Ì¶¨äÖȾµÄÊôÐÔÖС£
ËÄ¡¢3DÄ£Ðͱà¼Æ÷£º
1¡¢ÐÂÔö¿½±´¹Ò½Óµã¹¦ÄÜ¡£
2¡¢ÐÂÔö½ÇÉ«Í·ÏñÔ¤ÀÀ¹¦ÄÜ¡£
Îå¡¢FrontEnd£º
1¡¢ÓÅ»¯Á˱¾µØ·þÎñ¶ËÆô¶¯Á÷³Ì£ºstart_win.exe¼¯³Éµ½ÁËFrontEnd£¬²»ÔÙµ¯³östart_win.exe´°¿Ú¡£
2¡¢Æô¶¯·¶Àýdemoʱ£¬Çå³ý±¾µØ·þÎñ¶ËÊý¾Ý¡£
3¡¢½«±¾µØ·þÎñ¶ËºÍÔ¶³Ì·þÎñ¶Ë״̬À¸·Ö¿ª£¬²¢ÇÒ¶Ô״̬À¸Ôö¼ÓÑÕÉ«£¬±ãÓÚÏÔʾ¡£
4¡¢Ôö¼ÓÈÕÖ¾ËÑË÷ÉÏÒ»¸ö¡¢ÏÂÒ»¸ö¹¦ÄÜ¡£
5¡¢Ôö¼Ó×Ô¶¯Ë¢ÐÂÈÕÖ¾¹¦ÄÜ¡£
6¡¢ÐÞ¸ÄÈÕ־ˢз½Ê½£ºÔÚÇл»µ½ÈÎÒâÈÕÖ¾±êǩҳʱ£¬¶¼×Ô¶¯½øÐÐÈÕ־ˢУ»¿ÉʹÓÃF5ÊÖ¶¯¸üе±Ç°TABÒ³µÄÈÕÖ¾ÄÚÈÝ¡£
7¡¢²úÆ··¢²¼ÅäÖÃÎļþ¸ÄÓÃini¸ñʽ£¬Ôö¼Óini¸ñʽµÄ¼ì²é¡£
Áù¡¢Îĵµ£º
1¡¢¡¶3DÌØЧ±à¼Æ÷°ïÖú¡·Ôö¼Ó²¿·ÖÐÂÔöÄÚÈݵÄ˵Ã÷£¬¸ü»»Ïà¹Ø½Øͼ¡£
2¡¢¡¶iTownSDK-³ÌÐò¿ª·¢ÊֲᡷÔö¼Ó2.13.2 ÐÔÄÜÇúÏßͼ¡¢2.13.3 iTownSDKÐÔÄܲâÊÔ¡¢2.13.4 flashuiÐÔÄÜÓÅ»¯¡¢2.14.5 ƽ̨µÄÑûÇ빦ÄÜÃèÊö¡£
3¡¢ÓÉÓÚ·þÎñÆ÷¼Ü¹¹±ä»¯£¬¡¶iTownSDK-³ÌÐò¿ª·¢Êֲᡷ¸üÐÂÁË3.1 ·þÎñÆ÷×ÜÌå½á¹¹£»3.2 ´æ´¢£» 3.3 ´úÂë½á¹¹ µÄÏà¹Ø˵Ã÷¡£
4¡¢¡¶iTownSDK-²úÆ··¢²¼Á÷³Ì¡·¸ü¸ÄÅäÖÃÎļþΪiniÎļþ£¬²¢¶Ô¸÷¸ö×ֶεÄ˵Ã÷½øÐиüС£
5¡¢¡¶iTownSDK-API.chm¡·Server ModulesÒ³ÖÐÔö¼Óhall_consts£º·þÎñ¶Ë³£Á¿¶¨Òå˵Ã÷¡£
Æß¡¢ÆäËû£º
1¡¢¿ª·Å¡¾ÏµÍ³ÉèÖ´çÃ棬Ìṩƽ̨ÉùÒô¡¢ÒôÁ¿¡¢¿¹¾â³Ý¡¢ÎÆÀíϸ½ÚºÍÌùͼ¾«¶ÈµÄÉèÖá£
ÓÅ»¯ÄÚÈÝ£º
1¡¢Éý¼¶ÄÐÅ®avatarµÄgim¸ñʽ£¬±ÜÃâ¿Í»§¶Ë±¨warning¡£
2¡¢iworld3d.light3d.indexÐÞ¸ÄΪiworld3d.light3d.name¡£
3¡¢iworld3d.get_light½Ó¿Ú²ÎÊýlight_id¸ÄΪlight_name¡£
4¡¢iapiÏÔʾ³É¾ÍµÄ½Ó¿Úshow_achieve£¬É¾³ýgame_id²ÎÊý¡£
5¡¢pvzdemoÅäºÏshow_achieve½Ó¿ÚÈ¥µôgameid²ÎÊýµÄ¸ü¸Ä£¬×öÏàÓ¦¸ü¸Ä¡£
6¡¢pvzdemo·¿¼äÄÚÓÒ¼üavt²Ëµ¥×ÖÌå¸ÄΪËÎÌ壬ÒÔ±ÜÃâwin7ûװÁ¥Êé×ÖÌåµ¼ÖÂÏÔʾÂÒÂëµÄÎÊÌâ¡£
7¡¢ÐÞÕý¿Í»§¶Ë°²×°Â·¾¶Óпոñʱ£¬ÎÞ·¨Æô¶¯ÀëÏß·þÎñÆ÷µÄÎÊÌâ¡££¨¸Ðлxbgzs2010µÄ·´À¡£©¡£
8¡¢»Ö¸´AVTµÄÊó±êÏìÓ¦ÇøÓò¹¦ÄÜ£¬Ê¹set_click_func ºÍ set_right_click_funcÓÖÉúЧÁË¡£
9¡¢iworld3d.model3d.add_round_shadowÔÝʱʧЧ£¬ÏÔʾ²»³öÔ²Ó°£¨itownroom demoÖа´F3Çл»ÒõÓ°£¬Ð¡µ°»ÆÔÝʱÎÞ·¨ÏÔʾԲӰ£© £¬½«ÔÚϸö°æ±¾ÐÞ¸´¡£