Unity舰船虚拟火灾训练系统船舶子模型设计

我的课题是在Unity环境中实现船舶防火训练系统中船舶子模型的编码设计和系统的用户管理。


摘  要:在当前VR火热流行的大背景下,船舶行业也紧跟时代潮流,决定使用基于VR技术的虚拟船舶火灾训练系统。由于我校在船舶领域具有很强的科研能力,故我们决定在毕业设计时研究开发一个《舰船虚拟火灾训练系统》,希望对我校的船舶研发工作提供支持。

由于系统过于庞大,故将系统拆分为几个子模块,由多位同学共同开发。我的课题是在Unity环境中实现船舶防火训练系统中船舶子模型的编码设计和系统的用户管理。

编码设计,就是将船舶拆分成各种独立的子模型,设置各种船舶子模型组件的id编码,通过id把各种子模型组合成船舶。实现原理就是:通过模型的id把独立存在的子模型关联起来,加载系统各部分子模型场景。功能体现就是:用户可以使用不同的子模型创建出不同的船舶,进入不同的船舶场景。

用户管理,就是对注册的多个用户可以进行增删查改操作,并且设置用户权限。实现原理就是:对用户表的记录进行增删查改,用户表添加一个设置用户权限的字段,根据字段值的不同用来区分管理员和普通用户。功能体现就是:普通用户登录,只可以进行“组建船舶”操作,而管理员登录后,还可以进行“用户管理”操作,对用户进行增删查改。

关键词:Unity3d,虚拟现实,编码设计,用户管理

Abstract:Under the current background of VR's fiery popularity, the shipbuilding industry is keeping up with the trend of the times, and decided to use the VR technology based virtual ship fire training system. Because our school has a strong ability of scientific research in the field of ship, We decided to make the research and development of a "virtual fire ship training system" in the graduation design, hoping to provide support for our research and development work of ship.

As the system is too large, the system is split into several small parts, developed by several students. My topic is to realize the coding design of ship sub model and the user management of the system in the unity environment.

Code design,that is, to split the ship into a variety of independent sub models, set up various ship sub model components of the ID coding, through the ID to each seed model into a ship. The implementation principle is that the independent model of the sub model is associated with the model's ID to load each part of the molecular model scene. The function is: users can use different sub models to create different ships and enter different ship scenes.

User management, that is, a number of registered users can add and delete, check, change operations, and set user permissions. The implementation principle is: the user table record additions and deletions to check, change the user table to add a user permissions set of field, according to the different values of the field, used to distinguish between administrators and ordinary users. Functional embodiment is: ordinary users login, can only be "set up ships" operation, and the administrator login, but also can be "user management" operation, the user additions and deletions, check change.

Key Words:Unity3d, virtual reality, coding design, user management

目  录

第一章 绪论 1

1.1 课题背景、目的及意义 1

1.1.1 课题背景 1

1.1.2 课题目的和意义 1

1.2 国内外研究现状 3

1.2.1 国外的研究现状 3

1.2.2 国内的研究现状 3

第二章 系统技术--平台--运行环境 5

2.1 系统的技术介绍 5

2.1.1 Unity 5

2.1.2 C# 5

2.1.3 SqLite 5

2.1.4 Javascript 6

2.1.5 JQuery 7

2.1.6 MVC 7

2.2 开发平台 9

2.3 运行环境 10

第三章 系统分析 11

3.1可行性分析 11

3.1.1 社会可行性 11

3.1.2 技术可行性 11

3.1.3 操作可行性 12

3.2需求分析 12

3.2.1 系统功能模块分析 12