| In recent years,with the development of maritime transportation and national defense under the Belt and Road Initiative,higher requirements have been placed on the safety,reliability and economy of ship navigation.The engine room is the heart of the ship.When the relevant data in the engine room is abnormal and it is not found in the first time,a series of chain reactions may occur,which may cause major safety accidents and endanger the safety of people and property.If the critical data in the cabin can be transmitted to shore in time,and guided by the company’s high-level maintenance personnel,such risks will be greatly reduced.Therefore,it is necessary to study the remote monitoring system of ships.The research of remote monitoring system of ship engine room has become a national key scientific and technological support project.At present,there are relatively few remote monitoring software that can visually and real-time reproduce the scene of the engine room,and the relevant information is relatively scarce.This thesis takes our school’s “Yuming” practice ship as the object,and develops a remote monitoring system for the engine room based on Unity3 D.Through the 3D modeling of the engine room,the engine room roaming software is developed,so that the engine room scenes can be visually displayed on the software to realize man-machine Interactive function.Not only that,but also realized a Unity3D-based method of network communication between client and server to achieve the purpose of remote monitoring.The work carried out is as follows:(1)Three-dimensional modeling of ship’s engine room by region and scene,including main engine room,main engine control room,steering engine room,oil separator room,emergency generator room,etc.Mainly use 3ds Max software and the modeling function unit in Unity3 D as modeling tools,and continue to improve according to requirements on the basis of existing models.(2)Study the communication method between the server and the client,learn the necessary knowledge of TCP network game development,including TCP asynchronous connection,multiplexing processing,how to send complete network data,and how to set correct network parameters.This article studies Socket communication using TCP protocol.(3)Build a framework to study the implementation method of the client network framework.Learn from the method of developing games based on Net Manager in online games,improve the network module,and solve the functions of sticking and subcontracting,sending data completely,heartbeat mechanism,and event distribution.The online notebook is the most basic "online game",including user registration,login,client server communication,data storage and other functions,which can be used to test the network framework.(4)Study the effect display of corresponding lights,instruments and alarms in the 3D scene.After the client receives the data,it can associate with the 3D model through a script file,and use C# programming to realize the linkage of the 3D model.After the script file obtains the data,different nodes perform corresponding actions according to different data to achieve realistic effects.(5)Build UI interface module.Excellent interface will improve user experience and software development speed.Unity3 D has a built-in UGUI system,which provides developers with a wealth of tools.The remote monitoring software studied in this thesis is a virtual reality interactive virtual simulation system.The development of this software is of great significance to the intelligence and safety of shipping. |