Rendering lightnings in 3D

Does somebody have links to good tutorials or algorithms for me?