KMZ format and multiple models

dave hoeffgen

Resource contributor
#1
Hello,

Out of curiosity I tried to assemble multiple models into a single .kmz file (which is no problem using Google Earth Pro).
I was wondering if it was possible to import that one into MCX to make a library/placement bgl file.
Sadly id didn't import anything.

So my question:
1. How does MCX read the kmz file? Does it depend on the kmz internal folder structure to find the models?
2. Woud it be generally possible to support this by finding models and redirected textures listed in the kml file?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

MCX can read KMZ files. But so you mean the models are not in the KMZ? That's assumed.
 

dave hoeffgen

Resource contributor
#3
Hi,

MCX can read KMZ files. But so you mean the models are not in the KMZ? That's assumed.
Yes they are in the kmz file. There's just a diferend folder structure inside than in kmz files exported by SketchUp or downloaded from the warehouse.
I'm attaching it below. It's renamed to .zip to be allowed here.
 

Attachments

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
OK, I'll check. Probably I need to add support for this structure then.
 
#5
FYI:

When I export a multi-object "scene" from Sketchup with all objects set to not be "hidden", they all import to MCX in their Geo-referenced positions ...relative to the central Geo-location of the very first imagery tile downloaded into Sketchup, or the otherwise manually assigned Geo-location for the Sketchup project file (saved as either a *.SKP or a *.KMZ).

All objects are successfully exported from MCX as a "Scenery" BGL with both the (Geo-locked) 3D MDLs and their placement info inside the resulting 'hybrid' BGL

As in some GIS applications, greatest accuracy of Geo-referencing is maintained when all objects are within (1) Kilometer of the central point position within the multi-object "scene" of the project that is assigned the Geo-location coordinates inside the *.KMZ file.

GaryGB
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#6
Hi,

I had a look at the KMZ file and there are two issues:

  1. At the moment MCX only searches on Folder keep in the KMZ structure, but it seems you have objects in sub folders as well. I'll modify that in the next build.
  2. With that fixed the textures still not show, the KMZ seems to contain some aliases for the texture names, I'll see if I can have that supported as well.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#7
Got it all working now, it will be in the next development release.

1547323986178.png
 
Top