基于行为建模的人工鱼动画技术研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
智能虚拟环境的研究内容是在虚拟环境中加入有生命的对象—即虚拟主体,通过对他们活动的模拟来进一步增强虚拟环境的真实感和沉浸感,以更逼真地模拟真实世界。在计算机图形学中,大多数动画的创作是采用传统的、花费大量劳动的“关键帧”技术。近年来,越来越多的研究者开始研究虚拟主体的自主行为模型。
     本文包括两大部分内容:虚拟海洋环境的建立和“人工鱼”(artificial fish)的行为建模。我们对虚拟海洋环境的建立、人工鱼的感知系统、人工鱼的自主行为模型、行为的层次结构进行了深入的研究,对传统算法做了改进。在此基础上,我们实现了一个虚拟的海洋环境,其中栖息着我们的“人工鱼”,每条人工鱼都是一个自主智能体。
     在虚拟环境的建立中,我们采用了粒子系统模拟水;用基于图像相位变化的动画算法模拟水草在水中随水流的流动而摆动;用建立人工鱼的方法建立浮游生物;用粒子系统的思想模拟海中的水泡。
     本文采用合成原始流的方法模拟水流。该方法定义一组原始流如均匀流、源点流、汇点流、漩涡流等,采用合成的方法合成复杂的水流。我们采用基于图像相位变化的动画算法,结合光流场两幅图像之间实现动画,针对算法对图像质量的损害,对图像后期处理,提高了动画的图像质量。用lαβ颜色空间把这种算法扩展到彩色图像。最后,把这种动画应用到水草模拟。
     本文实现了虚拟视觉和虚拟记忆。虚拟视觉采用查询图形数据库的方法。我们的算法能够真实地模拟人工鱼视觉的视场范围,并具有遮挡判断等视觉功能,它同样也适合用到其他的虚拟主体中。我们还用队列的方法设计了一个虚拟记忆模型,能够对场景进行记忆。
     在行为模型上,本文设计了一个“人工鱼”的自主行为模型,设计了人工鱼的基本行为集合,并根据行为分层理论,把行为组织成层次结构,在此基础上通过组合、包容等手段有效地支持了人工鱼的特定任务的完成。我们采用了抑制(inhibition)和疲劳(fatigue)模型进行行为选择。提出用多项式函数代替传统模型中用线性函数来更新内部状态,修正了传统模型中不符合动物习性的部分,使动物的行为更符合实际情况。
     最后,本文设计了一个两条鱼相互寻找的具有童话色彩的情节。我们采用SmartObject技术建立交互模型。人工鱼根据内部状态和感知信息,以及从周围
    
    基于行为建模的人工鱼动画技术研究
    浙江大学硕士毕业论文
    环境的物体询问到的信息,能寻找目标鱼的位置,并具有碰撞检测及其他减少
    饥饿、减少疲劳等基本行为等。
The content of research on Intelligent Environment (IVE) is to integrate virtual life, such as virtual agent into Virtual Environment (VE), and to simulate their activities to improve the reality and interactivity of the VE. In the area of Computer Graphics, most of the computer animations are made by traditional, time-consuming "Key Frame" technique. Recently, many researchers begin to study autonomous behavior model. In this model, the virtual agent chooses its behavior by itself according to its own inner states and the condition of the surrounding environment.
    This thesis focuses on two main topics: modeling of the Virtual Environment of the sea and Behavior Modeling of "artificial fish". We focus on the simulation of water and aquatic, the virtual perception of artificial fish, autonomous behavior model and the hierarchy of behaviors. We improve the traditional algorithm and based on this we develop a virtual sea environment enriched with our artificial fishes, and every artificial fish is an autonomous virtual agent.
    On the modeling of virtual environment, we use particle system to simulate water; algorithm of motion without movement to simulate swaying of aquatic in water; the method of modeling artificial fish to model plankton object and modeling virtual bleb with the thought of particle system.
    We propose the method of synthesizing flow primitives to simulate water. The idea is to define a group of flow primitives such as uniform flow, sinking flow, source flow, vertex flow and then synthesize these flow primitives into a complex flow. We present an algorithm of motion without movement to simulate swaying of aquatic in water, and improve the image quality of the motion aiming at the damage to the image quality. In addition, we extend the arithmetic to color image with lap color space. We use this algorithm to simulate aquatic by texture-mapping.
    We implement virtual vision and memory for artificial fishes. The virtual vision is obtained by the method of querying graphics database. Our algorithm can simulate the range and visibility of fishes' vision, and it can be applied to other virtual agents. Also, we implement virtual memory by the method of queue.
    On behavior modeling, we implement an autonomous behavior model for artificial fish. We design a set of basic behaviors of artificial fish and arrange the behavior into hierarchy according to behavioral hierarchy theory. We achieve high-level tasks through the combination of the basic behaviors. We adopt inhibition and fatigue model to choose behaviors and propose to use nonlinear changing function to update animal's inner state instead of traditional linear changing function. It modifies the part that does not fit the habit of animals, thus makes animal's behaviors more natural.
    
    
    
    Finally, we design a fairy story about two fishes playing with each other. We construct an interacting model with Smart Object technology and use virtual memory to remember what happened. The artificial fish in the VE looks for the target according to current inner states, the information observed by virtual perception and the information got from objects around itself. In the looking course, it utilizes basic behavior such as obstacle avoiding, reducing hungry, reducing fatigue and so on.
引文
[Armstrong1985] W. Armstrong, M. Green 1985, The dynamics of articulated rigid bodies for purposes of animation. The Visual Computer, 1(4): 231-240
    [Balder1987] X. Badler, K. Manoochehri, G. Walters, Articulated figure positioning by multiple constraints, IEEE Computer Graphics & Applications, 1987, 7(6): 28-38
    [Balder1996] N. I. Badler, B. L. Webber, E. Becket, M. Stone, C. Geib, M. Moore, C. Pelachaud, B. D. Reich, Planning for animation, Interactive computer animation, Prentice-Hall Press, 1996
    [Badler2002] N. Badler, J. Allbeck, L. Zhao, and M. Byun. Representing and parameterizing agent behaviors, Proceedings of IEEE Computer Animation, Geneva, Switzerland, 2002:133-143
    [Baerends1976] G. Baerends, On drive, conflict and instinct, and the functional organization of behavior. Perspective in Brain Research. Eds. M. Corner & D. Swab, 1976, 427--447
    [Bao2000] 鲍虎军,金小刚,彭群生 计算机动画的算法基础,浙江大学出版社,2000
    [Barr1984] A. H. Barr, Global and local deformations of solid primitives. Computer Graphics, 1984, 18(3): 21-30
    [Beer1991] R. Beer and H. Chiel, The neural basis of behavioral choice in an artificial insect. In: Meyer, and Wilson, From Animals to Animas: The First International conference on Simulation of Adaptive Behavior, Cambridge, MA: The MIT Press 1991:247-254
    [Blumberg1994] B. Blumberg, Action-Selection in Hamsterdam: Lessons from Ethology in Third International Conference on the Simulation of Adaptive Behavior. Breghton, England, 1994, MIT Press. 1994:108-117
    [Blumberg1995] B. Blumberg, A. Galyean, Multi-Level Direction of Autonomous Creatures for Real-Time Virtual Environments, Proceedings of SIGGRAPH 1995:47-54
    [Calvert1980] T. W. Calvert, J. Chapman and A. Patla, The integration of subjective and objective data in the animation of human movement. In: Computer Graphics, SIGGRAPH1980 Proceedings, 1980, 14:198-203
    [Coqaillart1990] S. Coqaillart, Extended free-form deformations: a sculpturing tool for 3D geometric modeling. Computer Graphics, 1990, 24(9): 187-196
    [Cremer1995] J. Cremer, J. Kearney and Y. Papelis, HCSM: a framework for behavior and scenario control in virtual environments, ACM Transactions on Modeling and Computer Simulation, 1995, 5(3): 242-267
    [Dickerson1996] J. A. Dickerson, B. Kosko, "Virtual Worlds as Fuzzy Dynamical Systems," in Technology for Multimedia, B. Sheu, (editor), IEEE Press, 1996, 567-603
    [Enright2002] D. Enright, S. Marschner, and R. Fedki, Animation and Rendering of Complex Water Surfaces, Proceedings of SIGGRAPH 2002, 21(3): 736-744
    [Forsey1988] D. R. Forsey, R. H. Bartels, Hierarchical B-Spline refinement. Computer Graphics, 1988, 22(4): 205-212
    [Foster1996] N. Foster and D. Netaxas, Realistic animation of liquids. Graphical Models and Image Processing 1996:58,471-483
    
    
    [Foster2001] N. Foster and R. Fedkiw, Practical animation of liquids. In Proceedings of SIGGRAPH 2001,ACM Press/ACM SIGGRAPH, E. Fiume, Ed, 2001:23-30
    [Fournier1986] A. Fournier, W. T. Reeves, A simple model of ocean waves. In Computer Graphics, Proceeding of SIGGRAPH 1986, ACM, 1986: 20(4), 75-84
    [Freeman1990] W. T. Freeman and E. H. Adelson, Steerable filters for early vision, image analysis, and wavelet decomposition. In Proc.2rd Intl.Conf.Computer Vision,Osaka,Japan, 1990, 406--415
    [Freeman1991a] W. T. Freeman and E. H. Adelson and D. Heeger. Motion Without Movement. Computer Graphics 1991, 25(4): 27-30
    [Freeman1991b] W. T. Freeman and E. H. Adelson. The design and use of steerable filters for image analysis, enhancement,and multiscale representation. IEEE, Pat. Anal. Mach. Intel. 1991,13(9), 891-906
    [Girard1985] M. Girard, A. Maejewski computational modeling for the computer animation of legged figures. Computer Graphics. 1985, 19(3): 263-270
    [Girard1987] M. Girard, Interactive design of 3D computer-animated legged animal motion. IEEE Computer Graphics & Application. 1987, 7(6): 39-51
    [Harlow1965] F. Harlow, J. Welch. Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface. Phys. Fluids 8, 2182-2189
    [He2001] 何斌,马天予,王运坚,朱红莲等 Visual C++数字图像处理,人民邮电出版社 2001
    [Horn1981] B.K.P Horn, B.G. Schunch, Determining Optical Flow, AI, 1981,17: 185-203
    [Jin1995] 金小刚,计算机动画基础算法研究,博士论文,浙江大学,1995
    [Jin1996] 金小刚,鲍虎军,彭群生,一种新的基于factor curve的变形控制方法.软件学报,1996,7(9):537-541
    [Jin1997] 金小刚,鲍虎军,彭群生 计算机动画综述,软件学报 1997,8(4):241~251
    [Kallmann1998] M. Kallmann, D. Thalmann, Modeling Objects for Interaction Tasks, EGCAS 1998 9th-Eurographics Workshop on Animation and Simulation,1998,73-86
    [Kallmann1999] M. Kallmann, D.Thalmann, A Behavioral Interface to Simulate Agent-Object Interactions in Real Time, Proc. Computer Animation 1999, 138--146
    [Kass1990] M. Kass and G. Miller 1990, Rapid, Stable fluid dynamics for computer graphics. In Computer Graphics (Proceedings of SIGGRAPH1990), ACM, 1990, 24:49-47
    [Kenneth1998] R.Kenneth,Castleman,数字图像处理,北京,清华大学出版社,1998
    [Knowlton1964] K. Knowlton, A computer technique for producing animated movies. In: Proc. AFIPS, 1964, 25: 67-87.
    [Knowlton1965] K. Knowlton, Computer-produced movies. Science, 1965,150(3700):1116-1120
    [Kochanek1984] D. H. U Kochanek, R. H Bartels, Interpolating splines with local tension. Continuity and bias control. Computer Graphics. 1984,18(3): 245-254
    [Kuffner1999] J. J. Kuffner, Jr Jean-Claude Latombe, Fast Synthetic Vision, Memory, and Learning Models for Virtual Humans, Proceedings of IEEE Computer Animation, Switzerland, 1999:118-127
    [Lamousin1994] H. J. Lamousin, W.N. Waggenspack, NURBS-based free-form deformation. IEEE Computer Graphics & Applications, 1994, 14(9): 50-55
    
    
    [Ludlow1976] A. Ludlow, The Behavior of a Model Animal, Journal of Behavior, 1976, 58
    [Ludlow1980] A. Ludlow, The Evolution and Simulation of a Decision Maker, Analysis of Motivational Processes, ed. F. Totaes & Halliday, Academic Press London, 1980
    [Maes1990] P. Maes, Situated agents can have goals. In: Maes, P,.(ed) Designing Autonomous Agents, 1990, 49-70. Cambridge, MA: The MIT Press
    [Maes1991] P. Maes, A bottom-up mechanism for behavior selection in an artificial creature. In: Meyer, and Wilson, From Animals to Animats: The First International conference on Simulation and Adaptive Behavior, Cambridge, MA: The MIT Press, 1991
    [Maes1995] P. Maes, T. Darell and B. Blumberg. The ALIVE System: Full-body Interaction with Autonomous Agents. Proceedings of IEEE Computer Animation, Switzerland, 1995:11-18
    [Masten1987] G. Masten, P. Watterberg, and I. Mareda, 1987, Fourier synthesis of ocean scenes. IEEE Computer Graphics and Application 7, 16-23
    [Mataric1990] M. Mataric, A distributed model for mobile robot environment learning and navigation, Technical Report AI-TR, MIT Lab, 1990
    [McAllister1999a] D. K. McAllister. Documentation for the Particle System API, 1999
    [McAllister1999b] David k. McAllister. The design of an API for Particle System, 1999
    [Miller1988] G. Miller, The motion dynamics of snakes and worms. Computer Graphics, 1988, 22(4): 169-173
    [Minsky1988] M. Minsky, The Society o Mind, Simon & Schuster, New York, 1988
    [Noser1997] H. Noser, A Behavioral Animation System Based on L-systems and Synthetic Sensors for Actors, Ph.D Thesis, 1997
    [Peachey1986] D. R. Peachey, Modeling waves and surf. In Computer Graphics Proceedings of SIGGRAPH ACM, 1986, 20(4): 65-74
    [Qi1998] 齐东旭,马东华,黄心渊,徐迎庆,李华山编著,计算机动画原理与应用,北京:科学出版社 1998
    [Qing2000] 清源计算机工作室,MATLAB高级应用——图形及影像处理,机械工业出版社,2000
    [Reeves1983] W. T. Reeves, Particle system-a technique for modeling a class of fuzzy objects. ACM Trans. on Graphics, 1983, 2(2)
    [Reeves1985] W. T. Reeves, R. Blau, Approximate and probabilistic algorithms for shading and rendering structured particle system. Computer Graphics, 1985, 19 (3): 313-322
    [Reich1994] B. D. Reich, H. KO, W. Becket and N. I. Badler, Terrain Reasoning for Human Locomotion, Proceedings of Computer Animation 1994, Geneva, 1994: 76-82
    [Reich1997] B. D. Reich, An Architecture for Behavioral Locomotion, Ph.D Dissertation, 1997
    [Reinhard2001] E. Reinhard, M. Ashikhmin, B. Gooch, and P. Shirley, Color Transfer between Images, IEEE Computer Graphics and Applications, September/October 2001,34-40
    [Renault1990] O. Renault, N. M. Thalmann, D. Thalmann. A vision-based approach to behavioral animation. The Journal of Visualization and Computer Animation 1990,1(1): 18-21
    
    
    [Reynolds1987] Craig W. Reynolds, Flocks, Herds, and Schools: A Distributed Behavioral Model, Computer Graphics, 1987, 21(4): 25-34
    [Reynolds1988] Craig W. Reynolds, Not bumping into things, Proceedings of SIGGRAPH 1998, course, 1-13
    [Ruderman1998] D. L. Ruderman, T. W. Cronin, and C. C. Chiao, Statistics of Cone Responses to Natural Images: Implications for Visual Coding J.Optical Soc. Of America, 1998,15(8): 2036-2045
    [Ruprecht1995] D. Ruprecht, H. Muller Spatial free-form deformation with scattered data interpolation. Computer & Graphics, 1995, 19(1): 63-71
    [Schachter1980] Schachter, Long crested wave models. Computer Graphics and Image Processing 1980,12:187-201
    [Sederberg1986] T. W. Sederberg, S. R. Parry, Free-form deformation of solid geometric models. Computer Graphics. 1986, 20(4): 151-160
    [Steketee1985] S. N. Steketee, N. I. Badler, Parametric key-frame interpolation incorporating kinetic adjustment and phrasing control, Computer Graphics, 1985, 19(3): 255-263
    [Sun1998] 孙家广等编著,《计算机图形学》,北京,清华大学出版社,1998
    [Takala1992] T. Takala, J. Hahn, Sound Rendering, Computer Graphics, proceedings of SIGGRAPH 1992,26(2): 211--220
    [Tan1996] 谭立萍,伏劲松,张莫成,计算机三维动画的发展与应用,计算机应用研究,1996
    [Tansley1965] K. Tansley, Vision in Vertebrates. London: Chapman and Hall, 1965
    [Yerzoploulos1987] D. Terzopoulos, J. Platt, A. Barr, Elastically deformable models, Computer graphics, 1987, 21(4):205-214
    [Thalmann2002] D. Thalmann, Simulating a Human Society: The Challenges, Proc. CGI 2002, 21(4):767-775
    [Tinbergen1950] N. Tinbergen, The study of Instinct. Clarendon Press, Oxford, 1950
    [Ts'O] P. Y. Ts'O, B. A. Barsky, Modeling and rendering waves: Wave-tracing using beta-splines and reflective and refractive texture mapping. ACM Transactions on Graphics, 1987,6(3),191-214
    [Tu1994] Xiaoyuan Tu, D. Terzopoulos, Artificial Fishes: Physics, Locomotion, Perception, Behavior, Proceedings of Sigraph1994, 1994, 28(3): 43-50
    [Tu1996] Xiaoyuan Tu, Artificial Animals for Computer Animation: Biomechanics, Locomotion, Perception, and Behavior, A Thesis for the degree of Doctor of Philosophy, Graduate Department of Computer Science, University of Toronto, 1996
    [Tu2000] 涂晓媛,人工鱼—计算机动画的人工生命方法,清华大学出版社 2000
    [Waters1987] K. Waters, A muscle model for animating three-dimensional facial expression. Computer Graphics, 1987,21(4): 17-24
    [Wejchert1991] J. Wejchert, and D. Haumann 1991. Animation aerodynamics. ACM Computer Graphics, SIGGRAPH, 1991, 25(4): 19~22
    [Willherlms1987a] J. Willherlms, Using dynamics analysis for animation of articulated bodies. IEEE Computer Graphics & Applications. 1987,7(6): 2-27
    [Willherlms1987b] J. Willherlms, Towards automatic motion control. IEEE Computer Graphics and Applications. 1987,7(4): 11-22
    [Witkin1988] A. Witkin, M. Kass, Space-time constraints, Computer Graphics, 1988, 22(4): 159-168
    [Wu2003] 吴学龙,张明敏,潘志庚,一种基于图像相位变化的动画算法,计算机工程与应用,2003,39(23):68—52
    
    
    [Xu2002] 许威威,面向智能虚拟环境的人体动画技术研究,浙江大学博士学位论文,2002
    [Yang1995] 杨四亦,计算机动画的发展历史和展望,电子出版,1995年第5期