XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

This Blog

Syndication

Twitters

RandomChaos

Generic XNA - 3D Fire Sample

Hope the music is acceptable this time...

http://www.youtube.com/v/y-txtVQ7rUU <p><a href="http://www.youtube.com/v/y-txtVQ7rUU">http://www.youtube.com/v/y-txtVQ7rUU</a></p>

Sorry about the quality of the clip, it was a 20MB clip, but I think youtube has crunched it up adn so it has lost some quality....

OK, here is the code sample for the flame shader I have adapted from NVIDIA's Volumetric Flame shader. The emitter class is pretty much the same as the billboard particle samples in my earlier posts, the real work is in the shader. I took the original NVIDIA flame shader and merged it with my billboard shader resulting in the sample you see here.

Now the emitter given in this sample is very basic, but I am sure you will be able either derive from it or use it as a template for your own flame emitter.

I have had a few requests regarding a 2D version of the shader so I am going to look at applying it to a 2D context.

Solution can be located here.

Comments

 

Hergonan said:

Nice work!

And I like the music as well ;P

May 9, 2008 9:47 PM
 

Nemo Krad said:

Good :)

Will have to dig out another unused tune for the next one....

May 12, 2008 11:26 AM
 

GameDevKicks.com said:

You've been kicked (a good thing) - Trackback from GameDevKicks.com

May 12, 2008 1:04 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Nemo Krad

Have been a professional developer since 1995. My skill set ranges from C/C++, VB6,MSSQL, Java Script, VB Script, HTML/ASP, Java, C#, ASP.NET as well as others. I started 3D and games development when the first release of XNA came out in December 2006 and have become addicted to it.