Skip to main content
Commonmark migration
Source Link

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this

[![][1]][1]
(source: wikimedia.org)

If anyone knows of an algorithm that this may work for, help would be greatly appreciated! [1]: https://i.sstatic.net/BHQt5.jpg

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this

[![][1]][1]
(source: wikimedia.org)

If anyone knows of an algorithm that this may work for, help would be greatly appreciated! [1]: https://i.sstatic.net/BHQt5.jpg

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this


(source: wikimedia.org)

If anyone knows of an algorithm that this may work for, help would be greatly appreciated!

broken image fixed (click 'rendered output' or 'side-by-side' to see the difference; image retrieved via Wayback Machine); for more info, see https://gist.github.com/Glorfindel83/9d954d34385d2ac2597bbe864466259f
Source Link

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this

http://upload.wikimedia.org/wikipedia/commons/b/b1/Lightning_hits_tree.jpg [![][1]][1]
(source: wikimedia.org)

If anyone knows of an algorithm that this may work for, help would be greatly appreciated! [1]: https://i.sstatic.net/BHQt5.jpg

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this

http://upload.wikimedia.org/wikipedia/commons/b/b1/Lightning_hits_tree.jpg

If anyone knows of an algorithm that this may work for, help would be greatly appreciated!

Is there an algorithm to generate a lightning bolt?

I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start point parameter, along with an endpoint. The bolt should have random branches coming off it, and zig-zag at random intervals. The result will be a random lightning effect that would look somewhat like this

[![][1]][1]
(source: wikimedia.org)

If anyone knows of an algorithm that this may work for, help would be greatly appreciated! [1]: https://i.sstatic.net/BHQt5.jpg

deleted 114 characters in body; edited tags; edited title
Source Link
user1430
user1430
Loading
Grammar fix
Source Link
Geoffroi
  • 485
  • 1
  • 5
  • 8
Loading
Tweeted twitter.com/#!/StackGameDev/status/441023823866249216
Source Link
Geoffroi
  • 485
  • 1
  • 5
  • 8
Loading