• Advertisement

Archived

This topic is now archived and is closed to further replies.

Particle System Demo

This topic is 6499 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just created a particle system demo. I wondering what I should do to make it better, and also what FPS everyone got and what you though of it. Please go to http://asylumentertainment.cjb.net to get it. Thanks in advance. BTW You move the mouse, the particle system follows, and click the mouse for an explosion of particles. Kind of like in Nox. Edited by - ziplux on 3/19/00 6:04:49 PM

Share this post


Link to post
Share on other sites
Advertisement
Really cool stuff. I got around 40 FPS. The weird thing is that the more particles there were on the screen, the higher the FPS got

Share this post


Link to post
Share on other sites
It wouldn''t work on mine,

you click on it - it seems to attempt switching
to fullscreen and then it bombs out back to the
desktop - no error or anything, it just quits.

-Mezz

Share this post


Link to post
Share on other sites
Cool demo. It ran at 70-75 FPS on my Pentium 3 700 w/ GeForce. One thing though. I switched away from the program and couldn''t get back into it. You should write a little code to handle the WM_ACTIVATE message (sent to the app when the app is switched to or away from).

Share this post


Link to post
Share on other sites
Thanks for all the replies. About WM_ACTIVATE, what do I call in that, lpddsprimary->Restore()?

Share this post


Link to post
Share on other sites
This is something like what I''d put in:

case WM_ACTIVATE:

BOOL app_active = LOWORD(wParam);
if (app_active && ddraw)
{
//ddraw is the IDirectDraw7 object
ddraw->RestoreAllSurfaces();
}

break;



Share this post


Link to post
Share on other sites
Mezz: You need DirectX 7. That may be the problem.

Thanks for all the responses. I''ll be posting an improved version soon.

Share this post


Link to post
Share on other sites
Great work! I have a P2 450 Mhz with and Nvidia card. It maintained an FPS of 60, no matter how many particles there were on the screen.

Share this post


Link to post
Share on other sites
I''ve got DX7, and a good enough system (600/GeForce)

Thoughts?

-Mezz

Share this post


Link to post
Share on other sites
Mezz: Do you have the .bmp file in the same directory as the .exe?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You can''t restore your primary surface or your attached back surface
because these are part of video memory (your screen) and were wiped
out totally when modes switched. If you try to restore them, your
program will most likely crash. RestoreAllSurfaces() does not
restore these surfaces. It only restores the ones that are not
*touched* by mode switches.

Share this post


Link to post
Share on other sites

  • Advertisement