missioncommand / mil-sym-java

(RETIRED) MIL-STD-2525 B and C rendering library and web service
Apache License 2.0
67 stars 36 forks source link

Central icon display problem #100

Open ValentinD45 opened 4 years ago

ValentinD45 commented 4 years ago

Hi,

I just started to develop with this library (version 1.38). I recovered the method "Draw Unit" from sample code to add it to my code, I just changed the display PNG method because I'm using JavaFX but nothing from the core.

When i click on the button to generate a symbol (code SSSCCLBB----), I get this

Capture

But I should get this

Capture1

On all other symbols it's the same, I have no icon inside the symbol. I can only generate the outside and not the inside.

Is this normal, how can I solve the problem?

My code : Capture Capture1

michael-spinelli commented 4 years ago

Just to check, above you said you used "SSSCCLBB----". The symbol ID needs to be 15 characters.

Using "SSSCCLBB----" I got an empty symbol like you. Using "SSSCCLBB--*****" I got the icon inside the symbol. Now if you are using a 15 character symbol ID I'll have to look at it some more as I'm not having any problems with that.

ValentinD45 commented 4 years ago

Thanks ! I did not even notice the number of characters now I understand.

I just have another quick question for when is the 2525D and APP-6 D support planned?

Thanks

michael-spinelli commented 4 years ago

Short answer is no further development is planned.

The renderer is not being actively developed right now. Until there is a deadline for 2525D support for the Army, I don't see any further development getting funded. The only open source renderer that supports 2525D that I'm aware of is in JavaScript and is located here: https://www.spatialillusions.com/

They have a library that does 2525D single points. They started a library for multipoints but I believe that work as stalled.

We did some mapping of 2525D codes for multipoints but that's not officially supported and only works via the web service and doesn't have any of the checks to make sure what you're sending in is good.

I made a post here: https://groups.google.com/forum/#!topic/mission-command-milstd-renderer/Gy_rtD2ZDro

2525D still not supported in any capacity and there is no current plan to.

However, I created a branch where I unlock what 2525D functionality we do have: https://github.com/missioncommand/mil-sym-java/tree/unlock_limited_2525D_support

-Unblocked 2525D in the renderer -only multipoints supported -you must pass in 2 for your symbology standard. the 2525D constant is still set to 1 which is 2525C -you must pass in a line color or you'll just get black every time. -no checks are done due to lack of Symbol Definitions and support functions for 2525D -this is just to play around with. Implemented the majority of 2525D multipoint symbology as most of it existed in 2525C already -This is all just to play around with, I DO NOT RECOMMEND using this in any official capacity. -I just did a quick test using an html page against the web service. Using the JARs directly should work as well but again I only did light testing. -Expect Issues

michael-spinelli commented 4 years ago

Here's a build of the branch I referenced above for anyone that is interested.

mil-sym-renderer-0.1.38D.zip

mil-sym-service-0.1.38D.war.zip