植物作为自然景物中最常见的现象之一,模拟的方法是应用数学和图形学领域的一个重要课题。迭代函数系统IFS是分形理论的重要分支,由于植物结构的自相似性,利用IFS(Iterated Function System)可以逼真地模拟各植物形态,简述几种模拟植物的方法,主要研究迭代函数系统IFS模型,并在VC++6.0环境下基于IFS模型构造出静态蕨叶和树木,详细讨论利用带参量的IFS随机系统实现动画的过程,并利用双缓冲技术,形象逼真地模拟随风摇摆的蕨叶和生长树木的动画效果。实验结果表明,带参数的IFS可使图像发生预期的变化,如果让参数在适当的范围保持连续变化,则动画效果良好。
As one of the most common phenomena in natural landscape,plant simulation is an important topic in applied mathematics and graphics field.Iterated function system,IFS,is an important branch of fractal theory.Due to the plant's own self-similar structure characteristics,IFS can help realistically simulate different plants morphology.This paper briefly describes several methods for plant simulation,mainly studies IFS model and constructs a static fern leaf and tree based on IFS model in VC+ + 6.0 environment.It discusses the process to achieve animation by using IFS stochastic system with parameters,and uses double-buffering technology to simulate realistic animation effects of the swaying fern leaves and the growing tree.Experiment results show that IFS with parameters can bring about expected changes with images.When parameters continuously keep changing within an appropriate range,good animation effects are produced.