So I've been working on a code to take a .dnm file and convert it to a .fld.
There are obviously limitations, but my goal is to provide a method to trace larger images in blender and create a .fld from the generated polygons.
I'd like to see if can create some different and simple features that would go a long way to handle the basics of map making. I think that I could make map regions easily enough by assigning CLA numbers to regions.
- Elevation grids - CLA & 3D mesh
- Child Sceneries - Maybe parent-child relationships
- Different map regions (taxi/runway/etc) - CLA number
- Handle IFFs for some components - Maybe STAs or different CLA numbers?
Original Test DNM to work on the FLD rotations and handling quads and triangle faces.
Result of a modified DNM transcribed to .fld.
I was able to handle over-lapping map elements by using the height of the elements in blender.
Test of tracing some islands for a more complex shape:
For those of you who are better at Map Making than myself, is it lower lag to have each map element share the same central point (as in the above image) or is it worth making each elemnt's center at the center of the geometry. I'm thinking it would be best, especially for large maps where the center could be hundreds of kilometers from the actual polygons. I could probably put in a simple modifier to see if the .pc2 component is centered at 0,0 and then calculate the average x and z positions to get a centroid of the polygon.