| Computer simulation software has a profound impact on industrial development and academic innovation,and also plays an important role in the field of national defense and military industry.Among them,computer animation is also increasingly being used in national economy,social livelihood and military research.MTSS is a microwave device simulation software independently developed by the Computer Simulation Technology Research Institute of the University of Electronic Science and Technology of China.In order to optimize and enrich the post-processing module of the software and make up for the lack of some functions,the keyframe animation prototype system for 3D modeling and simulation in this thesis has been researched and developed.The main research content of this thesis is as follows:1.Firstly,the relevant background and domestic and foreign research situation of keyframe animation in computer animation are investigated,and the basic theories such as three-dimensional coordinate transformation,keyframe interpolation and collision detection for keyframe animation are studied.2.For the keyframe animation module,research and design algorithms such as piecewise cubic spline interpolation,quaternion spherical linear interpolation and model deformation suitable for this prototype system.Innovatively proposed the method of spline curve polyline resampling optimization and the method of intermediate frame data optimization,which simplifies the interpolation complexity of the spline curve and the storage capacity of the intermediate frame data,improves the algorithm efficiency and reduces the memory usage rate;For the collision detection module studies and innovatively designs a hybrid AABB and OBB hierarchical bounding box algorithm suitable for this system.Through the pre-detection mechanism of these two bounding boxes,the overall calculation amount of detection is reduced,and the algorithm efficiency is improved.3.Developed a keyframe animation prototype system.Build a 3D modeling software framework and develop a feature navigation bar and model operator.Users can perform basic model creation,model import and model editing operations in the framework.Based on the keyframe interpolation algorithm,main animation production functions such as model motion animation,camera animation,color change animation,and model deformation animation have been developed,and animation accessibility such as automatic keyframe addition,loop animation playback,trajectory drawing,interpolation mode setting,etc.have been added.The method of information transfer between the timeline operation panel and the animation system is studied.The developed timeline operation panel can allow users to interact visually with the animation system,and directly control the keyframes and animation information on the operation panel,which improves the efficiency of animation production.The reading and writing of animation data is studied,and the data reading and writing function of animation is developed.Users can save animation information and immediately read the animation file to reproduce the original animation when needed.Finally,to increase the realism of the animation,a collision detection module was developed.Users can use this module to judge whether the model has penetrated during the process of modeling and animation production.4.Through animation production functions such as explosion animation,nephogram animation,model observation demonstration animation,deformation animation,etc.,it is verified that the prototype system has reached the design goal.This prototype system can be applied to the post-processing module of MTSS to solve the problems that it has no dynamic animation effect,cannot make animation to visually display the model composition,cannot use the simulation results to generate dynamic nephogram,and cannot observe the dynamic changes of the model in real time. |