摘要
简述了模拟水波的原理,使用面向对象方法对水波3D实时模拟系统进行了结构设计,给出了设计模式的结构图,提出了一个可复用的系统框架。详细介绍了使用HLSL对Gerstner水波进行编程的方法,实现了水波实时渲染的模拟并给出了关键的程序代码。最后分析了使用Gerstner波进行水波模拟存在的不足并提出了改进建议。
The theory of water wave simulation is outlined briefly, and the ideas and methods of constructing 3D real-time water wave simulation system are introduced by using object-oriented method. The method of using HLSL programming on Gerstner wave is introduced to achieve real-time rendering of water wave with some key procedure codes given. Finally, the shortcomings of using Gerstner wave to simulate water wave are analyzed and some suggestions of improvement are put forward.
出处
《工程图学学报》
CSCD
北大核心
2009年第5期53-57,共5页
Journal of Engineering Graphics
基金
国家自然科学基金资助项目(50775047)