>=Creating real 3D terrain in real time based on the elevation data is often required in visual simulation. A kind of modeling method is proposed based on weighted average algorithm. The elevation of a random point in the known point mesh is calculated according to its near two layers of mesh vertices. The distances between the pending point and the mesh vertices are taken aa the weights. To rectify the model, the linear extension elevation of mesh vertices is inducted into the formula. Then, the mesh is subdivided... >=Creating real 3D terrain in real time based on the elevation data is often required in visual simulation. A kind of modeling method is proposed based on weighted average algorithm. The elevation of a random point in the known point mesh is calculated according to its near two layers of mesh vertices. The distances between the pending point and the mesh vertices are taken aa the weights. To rectify the model, the linear extension elevation of mesh vertices is inducted into the formula. Then, the mesh is subdivided through double third-order spline interpolation, and the terrain is generated by using OpenCL triangle instruction. The model is fit for the smooth terrain. The results show that the terrain model is calculated in real-time and the 3D terrain accords with the real topography. |