Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to create beams of electricity between two points very similar to this video: The effect is so dynamic, with varying lengths and pseudo-random movement in-between the points, that I'm having trouble imagining how I'd accomplish such a thing. Is there any helpful information that might point me in the right direction?

I should note that I'm using the XNA 4.0 Reach profile, but custom shaders are okay because I'm not targeting the Windows Phone.

share|improve this question
up vote 3 down vote accepted

and for XNA 4.0:

share|improve this answer
This is even closer to what I was looking for, so I'm moving the accepted answer to here. – Christopher Horenstein Jun 1 '11 at 0:39

My friend is working on a side-scrolling shooter in XNA that uses similar effects (here's a video of an early test). He wrote a blog post about the technique that you might find helpful.

He's also usually hanging out in the #graphicschat IRC channel on (name's Drilian) and could probably help you out.

share|improve this answer
That is an excellent blog post; thank you! Exactly what I was looking for! – Christopher Horenstein Jan 21 '11 at 17:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.