计算机应用 ›› 2011, Vol. 31 ›› Issue (01): 289-292.

• 典型应用 • 上一篇    

基于粒子约束的布料实时模拟

陆忠华1,陈定方2   

  1. 1. 武汉理工大学物流工程学院
    2.
  • 收稿日期:2010-08-27 修回日期:2010-09-27 发布日期:2011-01-12 出版日期:2011-01-01
  • 通讯作者: 陆忠华
  • 基金资助:
    高等学校博士学科点专项基金

Real-time cloth simulation based on particle constraints

  • Received:2010-08-27 Revised:2010-09-27 Online:2011-01-12 Published:2011-01-01
  • Contact: Zhonghua Lu

摘要: 采用修改的质点—弹簧模型对布料进行了物理模拟。弹簧不产生粒子间的内力,而是提供粒子间的相关约束。根据这些约束,在满足物理模型的相关条件下不断地调整粒子的位置,实现布料的实时模拟;利用空间哈希表,实现布料的自身碰撞检测;使用Nvidia显卡的统一计算架构(CUDA)技术,对布料模拟进行了硬件加速,使布料模拟的帧速得到了数十倍的提高。

关键词: 粒子约束, 实时模拟, 空间哈希, 自身碰撞检测, 硬件加速

Abstract: A physicsbased cloth simulation using modified massspring model was presented. There was no force generated by springs between particles, but a set of constraints was built between particles. And realtime cloth simulation was achieved according to physical rules to continually adjust the positions of the particles to satisfy these constraints. Based on the spatial hash function, the cloth selfcollision detection and response were solved. Using NVIDIA video’s CUDA technology, hardware acceleration on cloth simulation was implemented and its frame rate was increased about several times.

Key words: particle constrain, real-time simulation, spatial hash, self-collision, hardware acceleration