计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2013年
9期
241-244
,共4页
陈建刚%徐守祥%黄国伟%何涛
陳建剛%徐守祥%黃國偉%何濤
진건강%서수상%황국위%하도
粒子系统%Direct3D 10%几何着色器%实例化
粒子繫統%Direct3D 10%幾何著色器%實例化
입자계통%Direct3D 10%궤하착색기%실례화
particle system%Direct3D 10%geometry shader%instancing
粒子系统是3D技术中模拟不规则运动物体的一种有效方法。为了模拟出具有实时性和逼真效果的烟花,文中利用硬件加速绘制技术和粒子系统进行烟花模拟,在Direct3D 10的着色器中实现粒子系统的类型变换和属性更新过程。利用几何着色器、流输出、实例化和布告栏等技术,结合曲线数学模型,使用两个technique,分别用于更新粒子系统并进行流输出处理和用于绘制粒子系统到屏幕,模拟出具有三叶草、四叶草和8字形等不同形状及这些形状叠加效果的烟花。实验表明,该方法达到了实时性要求。
粒子繫統是3D技術中模擬不規則運動物體的一種有效方法。為瞭模擬齣具有實時性和逼真效果的煙花,文中利用硬件加速繪製技術和粒子繫統進行煙花模擬,在Direct3D 10的著色器中實現粒子繫統的類型變換和屬性更新過程。利用幾何著色器、流輸齣、實例化和佈告欄等技術,結閤麯線數學模型,使用兩箇technique,分彆用于更新粒子繫統併進行流輸齣處理和用于繪製粒子繫統到屏幕,模擬齣具有三葉草、四葉草和8字形等不同形狀及這些形狀疊加效果的煙花。實驗錶明,該方法達到瞭實時性要求。
입자계통시3D기술중모의불규칙운동물체적일충유효방법。위료모의출구유실시성화핍진효과적연화,문중이용경건가속회제기술화입자계통진행연화모의,재Direct3D 10적착색기중실현입자계통적류형변환화속성경신과정。이용궤하착색기、류수출、실례화화포고란등기술,결합곡선수학모형,사용량개technique,분별용우경신입자계통병진행류수출처리화용우회제입자계통도병막,모의출구유삼협초、사협초화8자형등불동형상급저사형상첩가효과적연화。실험표명,해방법체도료실시성요구。
Particle system is an effective method in irregular moving object simulation in 3D technology. In order to simulate real time and realistic fireworks effect,firework simulation is realized by using hardware accelerated rendering technology and particle system. The type and attribute alternation of particle system is finished in Direct3D 10 shader. Using the technology of geometry shader,stream output,in-stancing and billboard,combined with the mathematical curve models,through two technique,one for updating and stream output of parti-cle,the other for rendering particle,the firework is realized with various of shapes such as clover-shaped,four-leaf-shaped,8-shaped and the blended effect. Examples illustrate that the method can meet the requirement of real time.