摘要
带有虹彩效果的肥皂泡及其运动的模拟是真实环境模拟或电影游戏的重要组成部分,在具体应用中由于光干涉现象的复杂度影响了模拟的速度和效果。几何结构方面采用基于余弦定理和相似三角形的方法,计算任意半径的肥皂泡合并后中间薄膜所在球的半径及位置,公式更具有普遍性;颜色渲染方面利用基于动态纹理的反射光线计算方法,并引入精确光学折射算法,绘制肥皂泡表面的虹彩颜色;与风场交互运动方面,通过计算基于三角面片的肥皂泡上每个点的受力方程,控制整体运动。实验在保证肥皂泡真实度的前提下,提高了模拟速率和可视化效果。
The simulation of soap bubbles and their movements is an important part in the simulation for the real environment and the entertainment, such as movies and games. But the complexity of the optical interference affects the speed and the effect of the simulation in a specific application environment. For the geometric structure, an improved solution based on the cosine rule and the similar triangles is proposed to compute the radius and the location of the sphere where the mutual wall belongs to. For the color rendering of a soap bubble, an accurate refraction is imported to draw the color of the surface. The soap bubbles are represented by triangular meshes, and their dynamics are simulated by solving the motion equation of each particle on triangular meshes. The experimental results show the improvement of the simulation efficiency and the visualization effects for the soap bubbles.
出处
《燕山大学学报》
CAS
2011年第6期544-548,555,共6页
Journal of Yanshan University
基金
国家自然科学基金资助项目(60970073)
关键词
肥皂泡
余弦定理
精确光学折射
风交互
soap bubbles
the cosine rule
precise optical refraction
wind interaction