Exploitation of ocean resources must be complemented by using suiatable working ships. Floating crane is one kind of important engineering vessels in ocean engeering. The operation of floating cranes is tremendous and complicated system engineering with severe environment and high cost. Its safety and reliability is one main problem in the guarantee of the ocean engineering projects. Aimed at this issue, research on simulation of revolving floating cranes is carried out with Visual C++ and OpenGL for safety problem during its working in this paper.The technology of 3D modeling has been studied. The modeling method with OpenGL directly is compared with the modeling method of using professional software 3DS Max to get the complex 3D model of crane ship and transforming them into OpenGL programs. Based on the different motion of ship and crane, the 3D geometry model is got by ASE and 3DS model with OpenGL program which are translated from 3DS Max model.The 3D scene of revolving floating crane is established with OpenGL, and the environment illumination, material attributes and texture mapping are studied, which makes the crane ship environment of sky and ocean like real world. Kinds of matrix transform calculation and no coupling theory are used in the crane controlling of the simulation system to carry out the roll and pitch motion of ship and rotation of crane.The scene record function, including bmp image capture and avi video capture, is developed for the operator:â‘ the best loading plan can be got by the comparison of the former record based on the working condition,â‘¡the whole simulation working course can be viewed, analysed, assessed repeatedly to avoid the potential danger and provide technical support for the safety ,reliability and efficiency.Finally, taking 1700t revolving floating crane for example, the simulation system of floating cranes is developed. The preconcerted functions of 3D modeling and operation simulation are realized by the calculation of some typical loading conditions. It can basicly show the process of floating crane's movement and reflect changes of parameters during the operation, which demonstrates the system is practical in engineering. |