Font Size: a A A

Scripting In 3D Simulation Engine:From Interactive Programming To A Paradigm Shift In Exploring Visualization

Posted on:2020-05-14Degree:MasterType:Thesis
Country:ChinaCandidate:Y J ShenFull Text:PDF
GTID:2392330599958541Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
China's space engineering has entered a stage of rapid development.Since 2010,the number of space launches has ranked among the top three.The number of space launches in 2018 is even more frequent,reaching 39,ranking first in the world.In many space engineering tasks,the space 3d visualization system plays a vital role.However,the existing domestic space 3d visualization system is generally targeted at specific projects or specific tasks,and a set of universal space 3d visualization system is not developed according to the commonness of the whole space engineering.As space missions proliferate,creating a separate system for each one will be time-consuming and laborious.This visualization pattern is not flexible and easy to extend.On the other hand,Microsoft stopped providing technical protection and automatic update for the computer of Windows XP system,and "prism gate" event happened,which aroused the attention of the country to the domestic operating system.However,problems exist in the promotion and use of domestic operating systems.The problem lies not in the operating system itself,but in the lack of supporting application software with domestic operating systems,which cannot form a complete industrial chain.According to the above problems,a method of introducing Lua script control into 3d virtual simulation engine is proposed.The real-time compilation and embeddable features of Lua scripting language are utilized to solve the problem of poor flexibility and difficulty in extension of hard coding.And through the interaction between simulation engine and scripting language,realize the plug-in development of space 3d visualization task.In this paper,the interaction between Lua and C++ is taken as an example to deeply analyze the interaction principle between Lua and host language.Based on this,XLua is selected to solve the interaction between Lua and Unity3 D,and finally realize plug-in development of three-dimensional space visualization tasks.On the other hand,transferring the space 3d visualization system that has been embedded in script language to the domestic operating system NeoKylin will be conducive to the promotion of the application of the domestic operating system in the national major projects,and help the country to achieve autonomy and control in the major projects related to the state's high secrets.By transferring the space 3d visualization system to the domestic operating system,the application layer software of the domestic operating system can be added,which is beneficial to the popularization of the domestic operating system in the whole people.In this paper,the project was transplanted from both model and code.The model was successfully transplanted through Blender,the replacement software,while the code was partially transplanted.The reason the code didn't work was that it was developed under Windows using C# and Lua,whereas Blender supports Python scripts and doesn't support C#.The final solution is to build an operating system compatibility layer for migrating projects through VirtualBox.
Keywords/Search Tags:Space 3d visualization, Lua language, simulation engine, NeoKylin
PDF Full Text Request
Related items