摘要
基于流体动力学模拟技术提出了一种新的水墨效果渲染方法,利用高级着色器语言(HLSL)通过图形处理单元(GPU)就纹理的顶点与像素进行处理。通过交互,计算出逐像素的外力及其所引起的加速度,将其作用于待处理纹理中,从而实现对该纹理实时水墨效果的渲染。实验结果表明,该方法具有较好的水墨动态特性的仿真效果,可以对渲染过程进行控制和干预,并能够实时显示。
An approach of Chinese Ink Rendering based on the fluid dynamics simulation is presented in this paper. Using the High Level Shader Language (HLSL) and Graphics Processing Unit (GPU), the multiple vertices and pixels in the texture is processed.By computing the acceleration caused by external forces interactively and applying them to the textures and the Chinese ink rendering through the simulating of the dynamic fluid is accomplished. Finally, the experimental results show that the simulating of the Chinese ink dynamic effects is realized successfully, controls and interventions can be done during the rendering process, and the rendering process can be displayed in the real-time.
出处
《微型电脑应用》
2010年第3期42-43,53,共3页
Microcomputer Applications
基金
上海市教育委员会科学发展基金重点项目(04AA02)