Preview of the upcoming X-Wing module v5.2.0 for Vassal

By Mu0n729, in X-Wing

who's a SVG hero?

so far, I'm having no success making the simplest 40 degree wedge shapes on the left part of arcs. This is my xml:

<?xml version="1.0" standalone="no"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">

<rect x="711.14" width="94" height="847.5" fill="red" style="fill:red;fill-opacity:0.5" />
<rect x="711.14" y="282.5" width="94" height="565" fill="red" style="fill:red;fill-opacity:0.5" />
<rect x="711.14" y="565" width="94" height="282.5" fill="red" style="fill:red;fill-opacity:0.5" />

<path d="M0,198.277 A847.5,847.5 0 0,1 711.14,0 v847.5,0 Z" style="fill:red;fill-opacity:0.5"/>
<path d="M237.05,414.68 A565,565 0 0,1 711.14,282.5 V847.5 Z" style="fill:red;fill-opacity:0.5"/>
<path d="M474.09,631.09 A282.5,282.5 0 0,1 711.14,565 V847.5 Z" style="fill:red;fill-opacity:0.5"/>
</svg>

and this is what it does, bulbous arcs:

http://screencast.com/t/lCWaEnQjKFn

The endpoints for the angled edge of the template are in the wrong places, making the entire angled edge too long. The arcs should work properly once the endpoints are moved, but I don't know the precise coords to move them to.

nm, found my mistakes.

* performance degrading by a lot when fire arcs are toggled (even when it's only one) Is this only on my side? Am I right in assuming fire arcs are just an image overlay? (calculated with your C# code?)

I finally figured out a pipeline of manipulations that allowed me to test small ship firing arcs using SVG graphics.

I notice no difference at all in performance. It's nice to reduce the footprint of arc graphics from around 20k to 2k, but it has no noticeable gain so I won't adopt this route.

However, I might do them for the huge ships, especially since I have to redo the CR90 main turret graphic.

* performance degrading by a lot when fire arcs are toggled (even when it's only one) Is this only on my side? Am I right in assuming fire arcs are just an image overlay? (calculated with your C# code?)

I finally figured out a pipeline of manipulations that allowed me to test small ship firing arcs using SVG graphics.

I notice no difference at all in performance. It's nice to reduce the footprint of arc graphics from around 20k to 2k, but it has no noticeable gain so I won't adopt this route.

However, I might do them for the huge ships, especially since I have to redo the CR90 main turret graphic.

Pity that it's not faster.