15
\$\begingroup\$

I'd like to create beams of electricity between two points very similar to this video: http://www.youtube.com/watch?v=eMJ8-56L3Lc. 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.

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

http://www.catalinzima.com/samples/12-months-12-samples-2008/lightning-sample/

and for XNA 4.0: http://www.hatchingdisaster.com/LightningSampleXNA4.zip

\$\endgroup\$
1
  • \$\begingroup\$ This is even closer to what I was looking for, so I'm moving the accepted answer to here. \$\endgroup\$ Commented Jun 1, 2011 at 0:39
16
\$\begingroup\$

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 irc.afternet.org (name's Drilian) and could probably help you out.

\$\endgroup\$
1
  • \$\begingroup\$ That is an excellent blog post; thank you! Exactly what I was looking for! \$\endgroup\$ Commented Jan 21, 2011 at 17:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .