计算机工程与设计
計算機工程與設計
계산궤공정여설계
COMPUTER ENGINEERING AND DESIGN
2014年
8期
2831-2835
,共5页
张艺衡%李晓峰%刘小玲%杨智宇
張藝衡%李曉峰%劉小玲%楊智宇
장예형%리효봉%류소령%양지우
可交互水波%粒子系统%高度场%图形处理器%实时绘制
可交互水波%粒子繫統%高度場%圖形處理器%實時繪製
가교호수파%입자계통%고도장%도형처리기%실시회제
interactive water wave%particle system%height map%graphic processing unit (GPU)%real-time simulation
针对在基于波动方程的水波模拟中存在计算量大的问题,分析大规模场景中的可交互水波实时模拟的特点,提出对波动方程进行近似建模,进行水面高度场建模;采用离散化的构建方式,设计垂直偏移函数和水平偏移函数,结合粒子系统,根据波浪的运动规律进行水面高度场更新。对粒子系统属性进行合理设计,使其可以在GPU上进行属性更新;对粒子进行二维组织,加快粒子系统的遍历速度;设计一组具有4个绘制遍的GPU绘制管道,利用GPU的并行计算能力进行水面高度场的构建。实验结果表明,该算法能够模拟出具有高真实感的可交互水波,绘制效率较高,达到了实时模拟的效果。
針對在基于波動方程的水波模擬中存在計算量大的問題,分析大規模場景中的可交互水波實時模擬的特點,提齣對波動方程進行近似建模,進行水麵高度場建模;採用離散化的構建方式,設計垂直偏移函數和水平偏移函數,結閤粒子繫統,根據波浪的運動規律進行水麵高度場更新。對粒子繫統屬性進行閤理設計,使其可以在GPU上進行屬性更新;對粒子進行二維組織,加快粒子繫統的遍歷速度;設計一組具有4箇繪製遍的GPU繪製管道,利用GPU的併行計算能力進行水麵高度場的構建。實驗結果錶明,該算法能夠模擬齣具有高真實感的可交互水波,繪製效率較高,達到瞭實時模擬的效果。
침대재기우파동방정적수파모의중존재계산량대적문제,분석대규모장경중적가교호수파실시모의적특점,제출대파동방정진행근사건모,진행수면고도장건모;채용리산화적구건방식,설계수직편이함수화수평편이함수,결합입자계통,근거파랑적운동규률진행수면고도장경신。대입자계통속성진행합리설계,사기가이재GPU상진행속성경신;대입자진행이유조직,가쾌입자계통적편력속도;설계일조구유4개회제편적GPU회제관도,이용GPU적병행계산능력진행수면고도장적구건。실험결과표명,해산법능구모의출구유고진실감적가교호수파,회제효솔교고,체도료실시모의적효과。
For the problem of huge computation derived from the simulation of water wave based on wave equation ,characteris-tics of large-scale and complex virtual scene were analyzed .An analysis solution to approximate wave equations was proposed , and the water height field was constructed .According to the discretization idea ,a pair of local vertical and horizontal deviation function was designed ,together with the particle system to simulate the waves .Further more ,a group of reasonable attributes were given ,with which the updating of particle system was done mostly on GPU .And the particles were organized into two di-mensions to make the particle system iterating quickly .The GPU rendering pipeline was designed with four passes ,and the wa-ter height field was designed on GPU .The experiment results show that the algorithm can simulate the real time interactive wa-ter w aves realistically and efficiently .