In recent years,with the continuous development of science and the abundance of aircraft,the field that people use aircraft has expanded,so the country's demand for general aviation control is also growing.The three-dimensional air control module is an integral part of general aviation management,it can provide a more intuitive and more comprehensive three-dimensional management for general aviation,so it is critical to develop a three-dimensional air control module.The main research is design and develop a three-dimensional air control module which based open source three-dimensional rendering engine OsgEarth.Analysing the characteristic of OsgEarth and the basic data used in project,using LOD(Level of Detail)model reduction technique based on four fork tree cache to split large capacity map data into more tiny data then cache to disk.When we build three-dimensional virtual earth scene,we can used this tiny terrain cache data to rendering the scene.And based on analyzing the requirement of three-dimensional scene interaction,we discuss event handling mechanism and update callback mechanism,than we propose two important interactive algorithm which using two interactive mechanism,one is called collision detection algorithm,another is called deflection angle real-time update algorithm.The core of collision detection algorithm is the realization of intersection operation.While deflection angle real-time update algorithm is based on the conversion between rotation matrix and four tuple.Than we desing and implement a three-dimensional model of air control,including spatial model,route model,air track model and three-dimensional measurement tool by using the two interactive mechanism.In the end,we solve the difficulty of embedding between the module and human-machine interface framework by modifying the source code,making the whole module embed into general aviation management software and making the system run well. |