-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flat mesh #226
Comments
Please zip and attach C:/X-Plane Enhancement/1.4/zOrtho-Experiments\zOrtho4XP_+47+008\Data+47+008.mesh |
Does it work with OrthoXP 1.3? |
Yes, with 1.3 no problem at all |
When i use a custom_dem it's also working but not with the default 'custom_dem' (e.g. empty) settings |
I would suggest to delete the tmp folder and copy the Elevation_data folder of your 1.30 installation over to 1.40 (overwriting existing files and folders). |
ok, will try it. Many thanks 👍 |
Same error here. But also with a fresh 1.3. Update (same effect for 1.3 and 1.4): but the downloaded elevation data directory does not contain file N47E008.hgt. Also, if I understood the code correctly, for +47+008 the download should request the 1° version. But the filesize is 2.8MByte and not 25MByte - so it seems to be the 3° version. |
IMO the cause is similar to what I wrote in #228 (comment). Not much you can do apart from selecting a different DEM source or manually downloading the lower res 3" DEM from https://viewfinderpanoramas.org/dem3/L32.zip and extracting the missing .hgt's to the appropriate subfolder(s) in Elevation_data. |
However, for Europe in particular I highly recommend manually downloading and installing the much superior LiDAR DTMs provided by Sonny (and consider making a donation while at it). |
Now works great again with Lidar DTMs from Sonny. Many thanks for this great link to more precise data :) |
See comment: |
Following the install guide for MacOS I also have flat terrain as a result. I found the following error in the logs, but the named config field is not available in the config window:
The elevation data seems to be downloaded correctly. Any idea how to solve this issue? |
The error message is unrelated to the topic discussed here and possible workarounds were already mentioned earlier. |
With Lidar DTMs from Sonny, is it required to select for each tile a new .hgt file and start the process for a single tile only? |
Alright, I've created a new issue for the error message above. |
If you copy the .hgt files into the right folder(s) under Elevation_data you can leave custom_DEM empty and create tiles in batch mode as usual. If you need help with installing Sonny's DTM I suggest reading/posting here: |
Thanks for the quick and helpful responses, @d41k4n! |
Example for N45E007 ... the files are downloaded and read but +265 max altitude seems not reasonable for that tile. And loading the Sim results in a more or less flat tile in that area.
Replacing the hgt file with the one from https://sonny.4lima.de/, the result is ok:
|
What I am wondering also is that the hgt files are downloaded again on each run for the same tile. |
Elevation data from Viewfinder Panoramas can only be downloaded in chunks of 24 tiles. This part of code is deprecated: if (lat, lon) in ( Above tiles belong to: The correct syntax is: if source == "View":
|
@w8sl Appreciate the feedback. It would be helpful if you could create a pull-request that addresses this issue instead of pasting code in comments. |
@d41k4n Appreciate your feedback as well! |
@w8sl Short question, so I tried to make the tile +47+01, however, like mentioned above, it does not download the .hgt files. I then tried to download the Viewfinderpanoramas manually, entered them, no success. The mesh was flat. I also used Sonny's files, they did indeed make the mesh not flat, HOWEVER: |
For tile +47+1 I get: Min altitude: 52.0 , Max altitude: 258.6667 , Mean: 116.521545 from Viewfinder Panoramas 1" elevation data. What version of Ortho4XP are you using? |
Actually I meant to write +47+09 (with lake of constance) I have no idea how I got to 1 😂 |
Tile +47 +009 is affected by the problem fixed with #272 Update your src/O4_DEM_Utils.py file from the pull request or download from source repisitory: https://github.com/w8sl/Ortho4XP/tree/Fix_download_elevation_data |
Thanks; I got the file and I'm downloading the tile right now. Will give an update |
Okay so I made the tile, it all works but water is still not 3d, I don't know what's causing that. At least it doesn't crash anymore, thank you |
I have done a quick test with: water_tech: XP12 All other settings default. Water is 3D on my end. |
What is the exact location? |
Well I checked my log with a few plugins and removed X-World and there were no errors when I removed that, however the waves still aren't 3d.. Is it possible I've messed up the actual Ortho4XP installation? And here's the XP12 log in case I've missed something |
And this is what I get in the cmd: PS C:\Users\levi_\Desktop\X-Plane\Ortho4XP-master\Ortho4XP-master> Python Ortho4XP.py 7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30 Scanning the drive for archives: Extracting archive: .\tmp+47+009.dsf.7zPath = .\tmp+47+009.dsf.7z Everything is Ok Size: 153756 |
-> Encoding of the DSF file Completed in 3m27sec. wow I'm an unlucky soul??? |
(bDEMN, bDEMS) = extract_elevation_and_bathymetry_data(tile.lat, tile.lon) |
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
-> 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
-> 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
-> 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=[]
The text was updated successfully, but these errors were encountered: