Pix4D models can be imported into TerraExplorer, by exporting them in Pix4D Mapper to OSGB format, and then importing the OSGB in TerraExplorer. In the import process, the OSGB layers are converted to Skyline's stream-optimized, 3DML mesh layer format. This enables them to be efficiently displayed and streamed by SkylineGlobe Server to TerraExplorer desktop, web, and mobile clients, and other clients, such as Cesium and Esri.
Use the following workflow to export your mesh from Pix4D Mapper and import it to TerraExplorer.
In Pix4D - Export the Mesh to OSGB
1. After completing the full mesh creation cycle, export the mesh: In Pix4D Mapper, on the sidebar under Triangle Meshes > Right-click the mesh and select Export Mesh. The Export Mesh dialog box is displayed.
2. Select the following settings:
- 3D Textured Mesh – Export 3D Textured Mesh, OBJ format
- LOD Mesh – Generate LOD Mesh and Export, OSGB format. Save the OSGB model in the following path: pix4d\project\2_densification\3d_mesh\lod\osgb
3. Click OK.
Prepare the OSGB Project for Import into TerraExplorer
4. Set the layer's XYZ pivot coordinates in the *.xyz file, located at: pix4d\project\1_initial\params\project_offset.xyz
5. Set the output's coordinate system in the *.prj file, located at: pix4d\project\1_initial\params\project_wkt.prj
6. Create a metadata.xml file to georeference the OSGB model in TerraExplorer that includes the following:
- Full WKT of the model's coordinate system (<SRS> tag)
- Pivot coordinates (<SRSOrigin> tag)
Download sample metadata.xml file.
7. Save the metadata.xml file next to the OSGB folder created above, in the following location: pix4d\project\2_densification\3d_mesh\lod\metadata.xml
In TerraExplorer - Import the OSGB File
8. In TerraExplorer Pro, on the Layers tab, click the arrow next to Load 3D Mesh, select Import OpenSceneGraph Layer, and select the main OSGB file (for example, lod_0.osgb).
9. At the end of the conversion, the output 3DML will be added to the TerraExplorer 3D Window in its correct geographic location.