Skip to content

Flat mesh #226

Description

@mmaechtel

Hi,

I only get totally flat meshes out of 1.4. I'm sure I changed something, since it worked about 2 weeks ago, but I've run out of ideas what the cause could be. Maybe someone could help me out of my 'flat world' :) Tnx Mike

Batch build launched for a number of 1 tiles.
Dealing with tile 1 / 1 : +47+008

Step 1 : Building vector data for tile +47+008 :

-> Dealing with airports
* Recycling OSM data from .\OSM_data+40+000+47+008+47+008_airports.osm.bz2
EDSI Segelflugplatz Binningen 1 runway , lat= 47.80, lon= 8.72
EDSL Flugplatz Blumberg 2 runways, lat= 47.84, lon= 8.56
EDSN Neuhausen ob Eck Airfield 1 runway , lat= 47.98, lon= 8.90
EDSR Flugplatz Stahringen-Wahlwies 1 runway , lat= 47.80, lon= 8.98
EDTD Verkehrslandeplatz Donaueschingen-Villingen 2 runways, lat= 47.97, lon= 8.52
LSMD Militärflugplatz Dübendorf 2 runways, lat= 47.40, lon= 8.64
LSME Militärflugplatz Emmen 1 runway , lat= 47.09, lon= 8.30
LSPF Sportflugplatz Schmerlat 1 runway , lat= 47.69, lon= 8.53
LSPH Flugplatz Hegmatten 1 runway , lat= 47.51, lon= 8.77
LSPN Flugplatz Triengen 1 runway , lat= 47.23, lon= 8.08
LSPV Flugplatz Wangen-Lachen 1 runway , lat= 47.20, lon= 8.87
LSZF Flugplatz Birrfeld 2 runways, lat= 47.44, lon= 8.23
LSZH Zürich Airport 4 runways, lat= 47.46, lon= 8.56
LSZK Flugplatz Speck-Fehraltorf 1 runway , lat= 47.38, lon= 8.76
LSZN Hausen am Albis Airfield 2 runways, lat= 47.24, lon= 8.52
LSZO Flugplatz Beromünster 2 runways, lat= 47.19, lon= 8.20
LSZT Flugplatz Lommis 1 runway , lat= 47.52, lon= 9.00
LSZU Flugplatz Buttwil 1 runway , lat= 47.26, lon= 8.30
**** Segelfluggelände Bohlhof 1 runway , lat= 47.65, lon= 8.38
**** Segelflugplatz Hilzingen 1 runway , lat= 47.76, lon= 8.77
**** Segelflugplatz Reiselfingen 1 runway , lat= 47.85, lon= 8.37
**** **** 1 runway , lat= 47.19, lon= 8.09
**** **** 1 runway , lat= 47.56, lon= 8.20
**** **** 1 runway , lat= 47.20, lon= 8.96
Loading elevation data and smoothing it over airports.
Downloading .\Elevation_data+40+000\N47E008.hgt from Viewfinderpanoramas (J. de Ferranti).
Downloading .\Elevation_data+40+000\N47E007.hgt from Viewfinderpanoramas (J. de Ferranti).
Downloading .\Elevation_data+40+000\N47E009.hgt from Viewfinderpanoramas (J. de Ferranti).
Downloading .\Elevation_data+40+000\N46E008.hgt from Viewfinderpanoramas (J. de Ferranti).
Downloading .\Elevation_data+40+000\N46E007.hgt from Viewfinderpanoramas (J. de Ferranti).
Downloading .\Elevation_data+40+000\N46E009.hgt from Viewfinderpanoramas (J. de Ferranti).
* Min altitude: 0.0 , Max altitude: 1147.0 , Mean: 7.854457
Patching LSZH.patch.osm
Auto-patched 29 runways and 173 pieces of taxiway.
Flattened 76 helipads.
Number of edges at this point: 22635
-> Dealing with roads
* Recycling OSM data from .\OSM_data+40+000+47+008+47+008_big_roads.osm.bz2
* Checking which large roads need levelling.
* Buffering banked road network as multipolygon.
Encoding it.
Number of edges at this point: 47080
-> Dealing with coastline
* Recycling OSM data from .\OSM_data+40+000+47+008+47+008_coastline.osm.bz2
Number of edges at this point: 47080
-> Dealing with inland water
* Recycling OSM data from .\OSM_data+40+000+47+008+47+008_water.osm.bz2
* Building water multipolygon.
* Bodensee will be masked like the sea due to its large area of 532 km^2.
Cleaning it.
Encoding it.
Separate treatment for larger pieces requiring masks.
Encoding them.
Number of edges at this point: 108532
-> Inserting edges related to the orthophotos grid
-> Inserting additional boundary edges for gluing
-> Transcription to the files C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.poly and .node

Final number of constrained edges : 152483

Completed in 46.20sec.


Step 2 : Building mesh for tile +47+008 :

-> Modifying curv_tol weight map according to runway locations.
-> Modifying curv_tol weight map according to coastline location.
* Recycling OSM data from .\OSM_data+40+000+47+008+47+008_coastline.osm.bz2
-> Start of the mesh algorithm Triangle4XP.
Loading altitudes from DEM file.

Loading curv_tol geographic weights.

Computing curvatures from altitudes.

Constructing Delaunay triangulation by divide-and-conquer method.

Recovering segments in Delaunay triangulation.

Spreading regional attributes.

Adding Steiner points to enforce quality.

Looking for bad triangles.

Computing altitude and normal maps.

Node file C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.1.node written to disk.

Tri file C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.1.ele written to disk.

Statistics:

Input vertices: 128548

Input segments: 152483

Input holes: 0

Mesh vertices: 169,248

               -----------------

Mesh triangles: ---> 329,863

               -----------------

Mesh edges: 499110

Mesh exterior boundary edges: 8631

Mesh interior boundary edges: 157230

Mesh subsegments (constrained edges): 165861

-> Loading of the mesh computed by Triangle4XP.
-> Post processing of altitudes according to vector data
Smoothing inland water.
Smoothing of sea water.
Treatment of airports, roads and patches.
-> Writing output nodes file.
-> Writing final mesh to the file C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.mesh

Completed in 3.72sec.


Step 2.5 : Building masks for tile +47+008 :

-> Deleting existing masks
-> Reading mesh data
-> Deleting existing masks
-> Reading mesh data

  • C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.mesh
    -> Construction of the masks
    Created 11424_17184.png
    Created 11408_17200.png
    Created 11408_17184.png
    Created 11424_17200.png
    Created 11440_17184.png
    Created 11440_17200.png

Completed in 4.57sec.


Step 3 : Building DSF/Imagery for tile +47+008 :

-> Initializing providers with potential data on this tile.
-> Checking airport locations for upgraded zoomlevel.
-> Reading mesh file
-> Adapting water triangles to XP12 requirements
-> Computing bathymetry depth ratio bounds based on distance masks
-> Computing point pools and texture requirements
-> Encoding of the DSF file
Final nbr of nodes: 393846
Extracting some rasters from X-Plane's Global Scenery
DSF file encoded, total size is : 16789809 bytes (16.0M)
*Activating DSF file.

Completed in 16.99sec.


Step 4 : Extracting overlay for tile +47+008 :

-> Making a copy of the original overlay DSF in tmp dir
-> The original DSF is a 7z archive, uncompressing...
-> Converting the copy to text format
Converting .\tmp+47+008.dsf from DSF to text as .\tmp+47+008_tmp_dsf.txt

 File .\tmp\+47+008.dsf had 167 ter, 0 obj, 187 pol, 12 net.

 Converted .\tmp\+47+008.dsf to .\tmp\+47+008_tmp_dsf.txt

-> Selecting overlays for copy/paste
-> Converting back the text DSF to binary format
Converting .\tmp+47+008_tmp_dsf_without_mesh.txt from text to DSF as .\tmp+47+008_tmp_dsf_without_mesh.dsf

 Scanning for dimension properties...

 Got dimension properties, establishing file writer...

 Got entire file, processing and creating DSF.

 Converted .\tmp\+47+008_tmp_dsf_without_mesh.txt to .\tmp\+47+008_tmp_dsf_without_mesh.dsf

-> Coping the final overlay DSF in .\yOrtho4XP_Overlays\Earth nav data+40+000

Completed in 9.26sec.


Batch process completed in 1m20sec


apt_smoothing_pix=8
road_level=1
road_banking_limit=0.5
lane_width=4.0
max_levelled_segs=200000
water_simplification=0.0
min_area=0.05
max_area=200.0
clean_bad_geometries=True
mesh_zl=19
curvature_tol=2.0
apt_curv_tol=0.5
apt_curv_ext=0.5
coast_curv_tol=1.0
coast_curv_ext=0.5
limit_tris=3.0
min_angle=10.0
sea_smoothing_mode=zero
water_smoothing=10
iterate=0
mask_zl=15
masks_width=100
masking_mode=sand
use_masks_for_inland=False
imprint_masks_to_dds=False
distance_masks_too=False
masks_use_DEM_too=False
masks_custom_extent=
cover_airports_with_highres=True
cover_extent=1.0
cover_zl=18
water_tech=XP12
ratio_bathy=1.0
ratio_water=1.0
overlay_lod=25000.0
sea_texture_blur=0.0
normal_map_strength=1.0
terrain_casts_shadows=True
use_decal_on_terrain=True
custom_dem=
fill_nodata=True
default_website=BI
default_zl=18
zone_list=[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions