I am Drawing a lightning effect animation using this image:
Below the result:
As you can see the outcome is not a continuous purple color as I wanted it to be, but it has black spaces in between some parts.
The way i am drawing this animation is that i am drawing two LightningBolts
every frame in Additive mode.
Every LightningBolt
is drawn with the help of 21 random points across the width of the animation which makes 20 lines
of various angles.
So I rotate the texture I have to match each angle I calculated for each of those 20 lines for the two LightningBolts
I am drawing in every frame in Additive mode.
What are your suggestions to overcome this problem ?
skew
instead ofrotate
. But that's an interesting idea. \$\endgroup\$skew
in XNA is really expensive (especially for a particle system like this one) and it needs to be done with a dynamic vertex buffer for performance which I haven't done yet. \$\endgroup\$