| A lot of 3D virtual scenes based on 3D modeling and 3D simulation technology are displayed on 2D display plane,so how to realize the 3D display of virtual scenes with the existing 3D display equipment and software control method is of great significance in the application and development of both 3D virtual simulation and 3D display technology.Based on the control technology and algorithm used in the virtual scenes rendered by OpenSceneGraph(OSG),this thesis studied and realized the off-axis stereo camera structure,the interactive control and tracking control of the virtual scene,and also realized the virtual scene’s different 3D format output and display.The main work and results of this thesis are as follows:1.By studying OSG programming and the virtual camera matrix in OSG,the off-axis stereo camera structure was realized.Compared with other structure,the scene captured by off-axis stereo camera array has large public area without distortion.2.On the basis of off-axis shooting,3D ground projection display of building models was achieved.By introducing the tracking method,real-time control of the virtual camera was realized,which can solve the problem of scene distortion when the viewer moves.3.2D+D format output of the virtual scene was realized.By studying the process of OpenGL projection and the relationship between the near clip plane and far clip plane,the output depth image can be controlled.4.Realized the 3D frontal projection display of the virtual scene.Off-axis camera structure was used to obtain 30 parallax contents.Synchronous control,trapezoidal distortion correction of the system were also achieved.With the OSG interactive control method,the stereo camera parameters can be changed and the parallax can be adjusted. |