Jump to content

  • Log In with Google      Sign In   
  • Create Account

Particle Effects


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Blake   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 August 1999 - 06:15 PM

After playing DXBall and DXBall2, I've noticed that particle effects can really make your game look snazzy. However, I've noticed that particle effects really deal with single pixels and DirectX has no function for single pixel plots. Andre LaMothe covers this in his Dummies book but I don't quite much like how he implements plotting pixels... is there a better way - preferably using RGB(##,##,##) values? Also, does anyone have some simple, straightforward, overdocumented, sesame street code for a particle effect - say for explosions, fireworks, or comet trails?

Thanx

[This message has been edited by Blake (edited July 21, 1999).]


Sponsor:

#2 Funkymunky   Members   -  Reputation: 645

Like
Likes
Like

Posted 28 July 1999 - 07:10 PM

Well, for starters, pixel effects do not deal soley with pixels. A particle engine itself is just a physics engine that tells the game it is adding numerous particles, and then updates those particles by affecting them with gravity, heat, deterioration, etc. For example, the DirectX 6 sdk comes with a fireworks example that uses little translucent spheres through alphablending and a particle engine. It looks really cool. Particle Engines are really cool, by the way. Anyway, if you really want it, I do happen to have an example I downloaded long ago and dropped on a zip disk that contains a directx fireworks display, which I have taken the liberty to mail to you.

#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 11 August 1999 - 05:58 PM

You might want to check out some articles on www.angelic-coders.com. There was code on their about 16 bit pixel plotting in DirectX
. For 256 color blits for pixels you can lock your surface mem.. then just go to the memory location of the pixel..do your color change and unlock the surface.

-Dl


#4 Khawk   Senior Staff   -  Reputation: 1362

Like
Likes
Like

Posted 11 August 1999 - 06:15 PM

Why go to another site when that same info is available here? :-)

Check out the Resources section. Programming->DirectX (on the left side of the main page)
You should find the pixel plotting stuff you need. Also, for particle effects, I believe there is some stuff in the Programming->DemoFX section. Please, remember to search through the resources. :-) We've been working hard to add stuff to them lately.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS