| Plant simulation is an important part for natural scene modeling. Among the applications of virtual reality and computer animation, the accuracy of the plant models and authenticity of the exterior effects exert direct influence upon the faithfulness of the outdoor scene models.This paper builds a window system simulating the spatial shapes of trees, based on OpenGL and VC++6.0with integration of relevant algorithms of fraction geometry. This system is capable of simulating thousands of various types of trees and the trunks, leaves and fruits are comparatively close to their real counterparts. In this system, we can also shift angles to see the modeled tree from different angles and in different directions.The fraction recursion algorithm is used in this paper to produce the trees. For practical implementation, we make relevant modifications with respect to real considerations, thus enhancing the growth effect. In programming, we use the display listing technique to optimize the rendering speed of trunks and leaves and improve its authenticity by blending textures. |