欢迎来到天天文库
浏览记录
ID:34932104
大小:760.04 KB
页数:44页
时间:2019-03-14
《Behavior Trees - Three Ways of Cultivating Game AI.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AlexJ.ChampandardMichaelDaweDavidHernandez-CerpaAiGameDev.comBigHugeGamesLucasArtsBehaviorTrees:ThreeWaysofCultivatingGameAIBEHAVIORTREESAPPLIED!•Halo3&ODST•[PROTOTYPE]•Spore•GTA:ChinatownWars•TheBourneConspiracy•SWAT4,Bioshock•DarkSector•…FEATURES•BTsare
2、aframeworkforgameAI.•BTsmodelcharacterbehaviorsextremelywell.•BTsaresimple,yetextremelycustomizable.OVERVIEWBehaviorBehaviorBehaviorBehaviorBehaviorBehaviorBehaviorActionActionActionActionActionAGENDA1)BuildingBlocks2)DesignPatterns3)ScriptIntegration4)De
3、bugging5)DiscussionBehaviorTreesPart1,DavidBUILDINGBLOCKSNODETYPES•Priority–Childnodesareevaluatedinorderuntilonevalidates•Sequential–Firstchildisvalidatedandexecuted–Whenitisfinished,thenextoneisvalidated•Stochastic–Allchildrenarevalidated–Arandomnodeiss
4、electedamongthevalidonesBEHAVIORTREEUPDATERootCombatIdleMeleeRangedUseComputerPatrolFleeAttackWeapon1Weapon2Weapon3EVENT-DRIVENBEHAVIORSRootIncomingProjectileCombatIdleEvadeMeleeRangedUseComputerPatrolFleeAttackWeapon1Weapon2Weapon3•Stimulustypes–Disabled
5、byevent–AutodisabledDYNAMICBEHAVIORS•Dynamicbehaviorssupport–Levelspecificcontent•Patrols•Initialsetups•Storydrivenevents–DLC•Behaviorsareaddedtoactorsinthelevel(enticers)–WhenaNPCusestheactor,itattachesthebehaviortothetreeDYNAMICBEHAVIORSRootCombatIdleMe
6、leeRangedUseComputerPatrolFleeAttackWeapon1Weapon2Weapon3DYNAMICBEHAVIORSRootCombatSTIdleMeleeRangedFleeAttackWeapon1Weapon2Weapon3DYNAMICBEHAVIORS•Validate–LookforenticersRoot•Update1.MovetoenticerSTIdle2.WaitforotherNPCs3.SubscribeUseComputer–Attachnewb
7、ehaviortothetree4.Waitforbehaviortofinish5.Unsubscribe–RemovebehaviorfromthetreeBehaviorTreesPart2,AlexDESIGNPATTERNSINTHENEXT10MINUTES,FINDOUT...What’sthebiggestproblemdevelopersfaceworkingwithbehaviortreesandscalingup?INTHENEXT10MINUTES,FINDOUT...Whensh
8、ouldyoubuildyourBTlikeaHFSM,andwhathappensifyoudo?MOVINGCOVERMOVINGCOVERBLACKBOARDCOVERMOVINGSTANDINGCROUCHINGRunToTargetPeakAtThreatSneakToCoverRunToTargetBLACKBOARDCOVERMOVINGSTANDINGCROUCHINGSneakToCoverBLACKBOAR
此文档下载收益归作者所有