Friday, May 11, 2018

graphics programming - Creating an electricity/lighting/tesla coil effect in a 2D XNA game?


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.



Answer




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


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


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...