摘要
为模拟油田生产过程中的意外情况,应急仿真系统应运而生,而在系统的场景中特效模拟的真实感是应急仿真系统中非常重要的一环。随着硬件的不断发展,GPU(graphics processing unit,图形处理单元)性能的大幅度提高及其可编程能力的快速发展,开发人员可以通过可编程着色器(Shader),开发出更加具有高质量、高真实感的效果。文中针对漏油应急培训中石油泄漏现象进行模拟,设计并制作了三维模型来模拟石油泄漏部分的主体。在Unity平台上,使用Unity中对于可编程着色器(Shader)进行封装的Unity Shader,首先采用纹理切换方法模拟石油泄漏的流动效果,然后针对纹理切换无法模拟出反射折射效果的问题,设计了基于噪声方法,既模拟出石油的流动效果,又模拟出流动过程中的反射折射效果,大大提高了真实感。
In order to simulate the unexpected situation in the process of petroleum production,the emergency simulation system comes into being. The reality of simulation in the scene of the system is quite important in the emergency simulation system. With the continuous development of hardware,significant improvement in performance and rapid development in programmable ability of GPU(graphics processing unit),developers can use the programmable Shader to develop more high-quality,realistic effects. Aiming at petroleum leakage phenomenon to simulate in petroleum spill emergency training,we design and construct a three-dimensional model to simulate the main body of petroleum spill. In the Unity platform,the Unity Shader encapsulating Unity for programmable Shader is applied. Firstly,the texture switching method is used to simulate the flow effect of petroleum leakage. Then,aiming at the problem that the texture switching method cannot simulate the reflection and refraction effect,a noise-based method is designed to simulate not only the flow effect of petroleum,but also the reflection and refraction effect in the flow process,which greatly improves the sense of reality.
作者
刘贤梅
葛昊天
赵娅
LIU Xian-mei;GE Hao-tian;ZHAO Ya(School of Computer and Information Technology,Northeast Petroleum University,Daqing 163318,China)
出处
《计算机技术与发展》
2020年第7期145-149,共5页
Computer Technology and Development
基金
国家自然科学基金(61502094)
黑龙江省自然科学基金(F2016002)
东北石油大学研究生创新科研项目(YJSCX2015-033NEPU)。