| With the development of computer graphics and computer hardware,virtual scenes are playing an increasingly important role in the fields of multimedia games,geographic information processing,virtual reality,and three-dimensional simulation.However,as the scale of virtual scenes continues to increase,modeling of virtual scenes has gradually been restricted by the manual implementation.The emergence of a system that can programmatically generate these contents will greatly improve the work efficiency of users.To meet the above requirements,an automatic construction system based on procedural content generation of virtual scenes is completed,which realizes the functional modules of user interaction,terrain,vegetation,roads,and cities.The system uses the Unreal Engine to render the graphics content,and Houdini implements the programmatic generation method.Firstly,the system uses Perlin random noise to generate multi-style terrain of the virtual scene and calculates it combined with terrain information to realize cliff style generation.Then,the main roads in the scene are generated by combining the path planning algorithm,and the hierarchical road network in the scene is generated by combining the Space colonization algorithm.At the same time,the Poisson disk sampling algorithm and relaxation algorithm are realized to generate the vegetation point cloud information in the virtual scene,and the Unreal Engine is used to instantiate to generate the vegetation ecological community in the scene.Then,the foundation of the urban area is divided to realize the building generation function to generate the building community of the virtual city.Finally,the data files generated in the system are structurally designed to export point cloud,voxel,geometry,and other information files.Combined with the database,the data is persistently saved to realize version control and iteration.It is verified that the system is completed in terms of function realization by the functional test of the system.Through random seeds and a series of control parameters,an almost unlimited number of virtual scenes can be modeled,and the combination of terrain,vegetation,roads,and urban content is well-realized.This is indicating that the system can achieve the expected development goals. |