Board index FlightGear Development Scenery

Can a mountain tip be flattened ?

Questions and discussion about enhancing and populating the FlightGear world.

Can a mountain tip be flattened ?

Postby TheEagle » Mon Aug 02, 2021 11:34 pm

Consider this mountain:
Image
In my custom scenery, built from USGS 1 arc-second BIL files, the mountain has a sharp tip, as you can see above. This causes the Objects copied from TerraSync to be sunken into the ground. How can I make that tip look like below (with a flattened tip) ?
Image
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Can a mountain tip be flattened ?

Postby wkitty42 » Tue Aug 03, 2021 12:19 am

this is where you would use QGIS and edit the mountain's terrain to have a flat top... basically what happens is that you edit the mesh... how and when this is exported for use by other tools, i don't know... i still haven't completed the QGIS tutorial(s) i started back in 2015 or 2016 when i dug into scenery stuff back then... maybe this is the shape files? i never figured that part out... my definition of "shape" may be different, though...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Can a mountain tip be flattened ?

Postby TheEagle » Tue Aug 03, 2021 1:25 am

I tried opening the elevation BIL file for that tile. but QGIS wouldn't let me edit the file … I could just view it …
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Can a mountain tip be flattened ?

Postby wlbragg » Tue Aug 03, 2021 4:00 am

QGIS is for shapefiles, not mesh. three is a blender tool that I know people use for editing the mesh. The airport Lukla was edited using this tool box I believe. Maybe see:
https://forum.flightgear.org/viewtopic.php?f=5&t=38532&p=379888&hilit=Lukla+Airport#p379888
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Can a mountain tip be flattened ?

Postby frtps » Tue Aug 03, 2021 11:45 am

The terrain is constructed out of triangles, so the only points at which height is calculated are the corners of the triangles. The starting set of points will include the boundary points of the shapefiles, after they have been overlaid on top of one another, plus the points that terrafit considers need to be added in the interior to maintain fidelity with the actual terrain, and a few other points on the boundary for geometrical purposes. So the point at the top of the hill likely comes from one of those sources. One strategy might therefore be to adjust the boundary of the shapefile that covers the top of the hill to move the boundary away from the actual summit, if a shapefile runs across the hill. Another strategy would be to change the terrafit parameters to increase number of points and maximum deviation.
frtps
 
Posts: 145
Joined: Sun Aug 05, 2018 10:58 am

Re: Can a mountain tip be flattened ?

Postby TheEagle » Tue Aug 03, 2021 11:49 am

@frtps: Thank you, but I think the simplest solution will be to use the FGBlenderTools ! They seem to be just the right thing.
@wlbragg: Thank you - that was the right pointer ! I wouldn't have never dreamed of editing BTG files in Blender … Just one little thing: How do you export your changes on the BTG file ? :?
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Can a mountain tip be flattened ?

Postby wkitty42 » Tue Aug 03, 2021 4:06 pm

wlbragg wrote in Tue Aug 03, 2021 4:00 am:QGIS is for shapefiles, not mesh.

oh... opps... my bad... no wonder i didn't understand so many things back when i was trying to wade through this particular swamp... there's so many parts and no decent map to follow... oh well... i'm still learning! :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Can a mountain tip be flattened ?

Postby wlbragg » Tue Aug 03, 2021 4:18 pm

How do you export your changes on the BTG file

Sorry, I don't know. I never used the tool. But I do remember hearing something about that question and believe there is a solution out there. You may have to ask around. Dig through that entire thread and maybe even ask there.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Can a mountain tip be flattened ?

Postby wkitty42 » Tue Aug 03, 2021 4:29 pm

might be easier to use that WIP tool that someone (Tim?) wrote? the one they used to adjust the mesh of TNCM where the craft fly meters above the beach and some people (used to?) hang onto the fence in the jet wash... i don't remember who wrote the tool or what it is called but this looks like a job that it would be useful for...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Can a mountain tip be flattened ?

Postby TheEagle » Tue Aug 03, 2021 4:41 pm

@wkitty: Then please try hard to remember ! ;)
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Can a mountain tip be flattened ?

Postby D-ECHO » Tue Aug 03, 2021 5:25 pm

wkitty, what you might mean is the HGTEditor by SurferTim: viewtopic.php?f=5&t=37404&p=367252&hilit=HGTEditor#p367252
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Can a mountain tip be flattened ?

Postby SurferTim » Tue Aug 03, 2021 5:43 pm

Here is the HGT editor for both low and high res hgt files.
https://github.com/SurferTim/HGTEditor
It requires some additional programs installed to run.
numpy and silx.

Edit: LandSerf helps visualize the landscape.
http://www.landserf.org/
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Can a mountain tip be flattened ?

Postby wkitty42 » Wed Aug 04, 2021 1:28 am

yes! that's it! the HFTEditor... thanks guys for covering me on that :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Can a mountain tip be flattened ?

Postby wlbragg » Wed Aug 04, 2021 2:13 am

FGBlenderTools
...
Just one little thing: How do you export your changes on the BTG file ?

Just out of curiosity. if you can't export the work, what is FGBlenderTools used for?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070


Return to Scenery

Who is online

Users browsing this forum: No registered users and 5 guests