beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
220 stars 102 forks source link

Re-design Lightning Cannon for better/pro AAA effect #387

Open icexuick opened 2 years ago

icexuick commented 2 years ago

So the idea is to make the most awesome lightning effect. The current fast changing lines do convey lightning, but it could look much better / more realistic.

The idea is to try to achieve something like this: https://youtu.be/U8skz484Ctk?t=195 https://youtu.be/psoLXEBmfRg?t=35 or even something close to Ashes like here: https://www.youtube.com/watch?v=crPoyVGbNfQ

Current effect looks like this: https://discord.com/channels/549281623154229250/551411485901979659/1020802807181348985

https://user-images.githubusercontent.com/23189106/190877055-b532d4fe-5b0e-4d8f-a0fd-486e3b75247f.mp4

sprunk commented 1 month ago

Copied from #161:


Add more configurability and control to lightningcannon weapon (used by armzeus, armclaw, armthor). This is for using the texture1 property - though it might also help with no texture 1 lightning arcs

In order of importance:

  1. Texture1 length should be configurable and be a fixed length globally, not based on distance of the lightning-arc.

2 Random rotation over length-axis, to give a lot more variety to the arc looks This can probably be just a one-time spawn rotation of -180 r 360, but if possible, having it rotate over time could possibly be extra awesome. This weapon fires in burst, so it should apply random rotation for each separate shot in burstfire. 2B. Optionally also (on/off-able) random flipping/mirroring of texture1 in length, for even more variety/realistic looks

  1. Get control over amount of 'iterations' of the lightning 'forks' (how many, and how far they can bend outwards)

concept of what to achieve image

instead of: image