sh4rkman / SquadCalc

A Complete Mortar Calculator for Squad
https://squadcalc.app
Other
39 stars 8 forks source link

More contour lines? #205

Open Jadowo opened 1 month ago

Jadowo commented 1 month ago

Ok I accidentally entered but Having more the lines of ranges in between would allow for quicker target accquisition. Lets say I'm targeting Building A at 300 degree and 1200 mils and my next target Building B is at 120 degrees and also at 1200 mils I could get that information quickly just by following the line I'm on. If the target was closer or futher by lets say 100 meters I could see that the target isn't on the line and probably closer to a different line lets say 1300 mils entirely letting me quickly adjust and estimate without having to select a target. It's kind of similar to what squadmortar XYZ had for it's grid for a dispersion of mortars in an area but over a larger area.

Jadowo commented 1 month ago

It would be nice if the circle for the radius also shows the proper max ranges instead of a generic circle.

sh4rkman commented 1 month ago

Hi ! Thanks for your interest

Do you mean this kind of concentric circles ? image

If yes it would either be not taking elevation into account and be imprecise (like the maxrange circle) or taking elevation into account and be very CPU intensive, probably crashing the browser. Achieving this kind of circles means reading the heightmap in every direction (360 times at least to draw a decent circle) and that is heavy, specially when dragging a weapon around the map.

@Devil4ngle wrote the code adaptating maxrange circle to real range distance you can observe it live in this chinese clone. I'm still wondering if i want to do the same because i don't find it that usefull and on a purely cosmetic point of view i find it horrible.

The right approach to this kind of thing is the xyz way. local grid on each mortar arbitrary drawn without taking elevation into account. But it can be hard to read considering squadcalc is way more complex with weapons using degrees (i might find myself drawing line for 10mil and 0.6° ?)

I might think about it but idk where even to start like what leaflet object to use to draw this kind of grid

Jadowo commented 1 month ago

Yeah so something like Devil4ngle's max range but for more lines like you show in the picture. But yeah having a full circle is more than likely excessive, doing it like xyz would probably make sense