Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Soft Particle demo

Soft Particle demo

mytre
mytre's Blog · · 1 min read
2,075 0
Since I really don't know is this right place (I meant t[font="Arial"]he journal) to post this I'll just post it here.
This code demonstrate soft particles in case anyone needs it, and is based on Frank Luna's "Fire Ring" demo from his book [size="2"]"[size="2"]Introduction to 3D Game Programming with Direct X 9.0c: A Shader Approach". In "particles.fx" there is demonstration of these calculations based on depth difference between object and particle, same shader [size="2"]also demonstrate billboard with scale matrix, "sky.fx" demonstrate projection on hemisphere to avoid "pinching" of texture on poles, and "FireRingDemo.cpp" besides usual setup contains setup for rendering targets and rendering itself. Since I'am not comfortable with distribution of someone else code, although [size="2"]I have [size="2"]permission from Frank Luna, in zip file bellow are included exe, shaders and art, and [size="2"][size="2"]"FireRingDemo.cpp" wich must be included since setup is done there.
[/font][size="2"][font="Arial"]Is should work if you have code from his book and paste[/font][font="Arial, Helvetica, sans-serif"] these files in "Fire Ring" demo, if not you can always study code.[/font]
[font="Arial, Helvetica, sans-serif"][size="2"]Movement is W_A_S_D + cursor.[/font]
[font="Arial, Helvetica, sans-serif"] [/font]

Link to screenshots: https://www.gamedev.net/gallery/album/168-soft-particle-demo/

[font="Arial, Helvetica, sans-serif"] [/font][font="Arial, Helvetica, sans-serif"][size="2"]P.S. code (written by me) is free to whatever purpose you like.[/font]

Discussion

Loading comments...