|
With virtual reality technology and the development of three-dimensional animation , three-dimensional simulation of the dynamic effects scene has become a research hotspot in games, animation, film , advertising, visual simulation, military and other fields , has an urgent application requirements. Currently, research in this area mainly uses Direct3D-based method, the resulting scene interactivity is poor, and the model file is large, can not be achieved on a home computer . In this paper the problem, based on common scenarios OpenGL simulation of dynamic effects have been studied and applied. This article is based on OpenGL features in the physical object to be constructed on the process, breaking the traditional construction method, proposed classification structure ideas, successfully achieved the physical object's constructor : For terrain simulation and propose a triangular mesh representation DEM terrain model generation ; through OpenGL library , use double-buffering , texture mapping technology to achieve a vivid animation ; OpenGL-based research , through the use of Quick Time7SDK, and by calling StartMovie () function in the scene to achieve a sound. This article in the Windows environment , the application of the C language library functions to achieve the desired combination of OpenGL programming algorithm , and achieved good results.
|