S3 Series
http://squadselectseries.com/s3forum/

Compass Rose
http://squadselectseries.com/s3forum/viewtopic.php?f=1&t=1364
Page 1 of 2

Author:  Hawk [ Mon May 04, 2015 2:37 pm ]
Post subject:  Compass Rose

Does anyone know how to add a Compass Rose to the map? I would like to put one over the target area.

Thanks for the help.

<S>

Author:  phenix [ Mon May 04, 2015 3:24 pm ]
Post subject:  Re: Compass Rose

You have 2 options that I am aware of. Put it on the map image, ie the DDS file. Or, write dotfile code to do it.

Author:  Hawk [ Mon May 04, 2015 3:30 pm ]
Post subject:  Re: Compass Rose

I never modified a DDS before. I know how to create a DTF file, but not sure how to do a compass rose on it.

Does anyone have a cool compass rose I can use or an example how to do it in a DTF file?

Author:  phenix [ Mon May 04, 2015 4:14 pm ]
Post subject:  Re: Compass Rose

Here's a simple one that you can put a formula to.

.mapcolor {red} {green} {blue} 255
.mapcircle {X} {Y} {R}
.mapline {X} {Y-2R} {X} {Y+2R}
.mapline {X-2R} {Y} {X+2R} {Y}
.mapline {X-R} {Y-R} {X+R} {Y+R}
.mapline {X+R} {Y-R} {X-R} {Y+R}

replace {} with numeric values
on .mapcolor use values 0-255 to generate the color you want. 255 0 0 would be red for example
Let X, Y be the grid location of your target. Go offline and note the location in the HUD.
R is the radius of the compass rose circle. 20 miles would be a value of R=105600

Author:  Hawk [ Mon May 04, 2015 6:10 pm ]
Post subject:  Re: Compass Rose

Here's what I did with no results. I use F199 and my test field.

.mapcolor @green@
.mapcircle {113388} {761254} {105600}
.mapline {113388} {761254-2105600} {113388} {761254+2105600}
.mapline {113388-2105600} {761254} {113388+2105600} {761254}
.mapline {113388-105600} {761254-105600} {113388+105600} {761254+105600}
.mapline {113388+105600} {761254-105600} {113388-105600} {761254+105600}

Author:  zinhwk [ Mon May 04, 2015 7:13 pm ]
Post subject:  Re: Compass Rose

Take the brackets out Hawk and put the total values in for your math functions.

Author:  Hawk [ Mon May 04, 2015 7:21 pm ]
Post subject:  Re: Compass Rose

I get the cir and some lines, but not sure about the "2R" call. I have some weird lines showing up.

.mapline {X} {Y-2R} {X} {Y+2R}
.mapline 113388 761254-2105600 113388 761254+2105600


.mapcolor @green@
.mapcircle 113388 761254 105600
.mapline 113388 761254-2105600 113388 761254+2105600
.mapline 113388-2105600 761254 113388+2105600 761254
.mapline 113388-105600 761254-105600 113388+105600 761254+105600
.mapline 113388+105600 761254-105600 113388-105600 761254+105600

Author:  zinhwk [ Mon May 04, 2015 7:33 pm ]
Post subject:  Re: Compass Rose

I edited my post later, sorry its not easy to set up a math function typing on a phone.

Map lines need two coordinates to draw. Point A(Xa,Ya) and Point B(Xb,Yb)

So the command is looking for 4 numbers, not functions

The end result should be.

.mapline Xa Ya Xb Yb

You know this from other dtfs, all phenix was giving you were functions to plug into excel/calculator, whatever to give you a number to put in for the coordinate values based on your origin to pump out a neat, accurate compass.

Author:  phenix [ Mon May 04, 2015 8:40 pm ]
Post subject:  Re: Compass Rose

Sorry math stuff. :)

X+2R means X + ( 2 x R )

The nice thing about using an equation to map out the numbers is you can move it as needed.

Author:  drdart [ Mon May 04, 2015 9:52 pm ]
Post subject:  Re: Compass Rose

Compass image ... I am not sure if it is large enough for you but its all I have.


Attachment:
compass.png
compass.png [ 57.06 KiB | Viewed 6733 times ]

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/