摘要
在游戏和动画的开发应用中,运用L系统生成不同的树的动画时,应用程序员往往要重写代码。提出了一个适合模拟各种树的生长过程的L系统模型,用面向对象的方法来描述和实现。同时为达到实时渲染的要求,在对树的生物学特性简化的基础上,对树与环境中光照、空间的信息交换以及动画控制等方面提出了简洁高效的算法。基于这个面向对象的L系统模型,可以通过不同的产生规则和环境信息模拟显示不同的树的生长过程,从而达到代码的复用,缩短开发时间。
In practice, when man develops a game or an animation, one problem encountered is that application programmers usually derive a new code from scratch for each application . In order to simplify the programming, this paper presents an object - oriented L - system model which can simulate a variety of trees growth. For real - time rendering,this paper also introduces some efficient and concise algorithms for animation control and interactions between trees and their environments based on the simplification of tree' s biological properties . Based on this object - oriented L system, the growth of different kinds of trees can be visualized and simulated by inputing different production rules and environmental data. As a result the development time can be shortened with the reuse of the code.
出处
《计算机仿真》
CSCD
2007年第2期183-186,共4页
Computer Simulation
关键词
面向对象
系统
树
动画
模拟
Object - oriented
Systems
Tree
Animation
Simulation