XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone


Chapter 20 - Making Fire

So I finished the HLSLFireDemo but it doesn't seem to be working properly. It seems like just the "hot spots" are drawing at the bottom of the screen and nothing else. I ran the code thats on the CD and it runs the exact same way that mine does.  My fps also says its running at like 30 fps, which is half the speed so I dont know if that has something to do with it? Is my computer just too slow or is there something just a little off with the code?

taterville - Tuesday, September 8, 2009 @ 7:04 PM

Re: Chapter 20 - Making Fire

The fire demo only fills the bottom of the screen. It doesn't fill the entire window. On 3 of my test machines it runs at 60 fps. Even if it is running slow, it should still work, just the flames will be more choppy than expected. I did want to make sure you knew that the entire window is not filled up with fire. In fact, probably just the bottom 1/4 of the screen is. The code on the CD is how I intended the effect to work. If your results are matching the CD, then it is working as expected (minus the slower fps due to the GPU).

Hope this information helps,


Chad Carter - Wednesday, September 9, 2009 @ 4:48 PM