Note that alterations to the YSFlight .EXE is forbidden
-
Flake
- VFA-49

- Posts: 4358
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 838 times
- Been thanked: 1248 times
-
Contact:
Post
by Flake » Wed Jun 21, 2017 8:54 am
Png2Ter v1.0

About
Similar to Grigors AutoHotKey based elevation grid generator, this program converts a greyscale PNG to a YSFlight Elevation Grid file (TER). This program does NOT use AHK and only relies on .NET 3.5, so users of WinXP+ should be able to use this program without issue!
Instructions
- BACK UP YOUR CURRENT FLD FILE! I am NOT responsible if this program breaks and you lose ALL your work! You've been warned!
- Draw a Grid Plan PNG file in such a way that a 0% brightness pixel, that is #000000 would be elevation 0 meters and a 100% brightness pixel, that is #FFFFFF would be the maximum height of the grid. See included Example folder for a demo of this.
- Open Png2Ter and set the desired parameters, this may require some experimentation on your part!
- DRAG AND DROP your PNG representation of the desired elevation grid onto the program, it will generate the grid for you.
- Import generated grid into SceneryEditor, set Zero Elevation Faces to be invisible, and apply color gradation as desired.
- Save your new FLD - You're done!
Notes
Please adjust colors, face visibility etc. in Scenery editor!
Also note grids are quite large - you should make many small grids rather than one large grid, so please use multiple PNG files of each mountain rather than blobs of mountains!
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
Flake
-
Zack
- Contributor

- Posts: 397
- Joined: Wed Mar 21, 2012 10:34 pm
- Favorite Aircraft: F-16C Fighting Falcon
- Location: Northern California/Bay Area
- OS: Windows 10
- Has thanked: 44 times
- Been thanked: 155 times
Post
by Zack » Wed Jun 21, 2017 9:41 am
Flake wrote: ↑Wed Jun 21, 2017 8:54 am
ou should make many small grids rather than one large grid, so please use multiple PNG files of each mountain rather than blobs of mountains!
You can't tell me what to do!
Great work flake, you're making me want to do maps more often now! Thanks for this.

Zack
-
Flake
- VFA-49

- Posts: 4358
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 838 times
- Been thanked: 1248 times
-
Contact:
Post
by Flake » Wed Jun 21, 2017 11:40 pm
That looks promising. I tried other programs already but never found this. Hopefully it's good!
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
Flake
-
u2fly
- Senior Veteran

- Posts: 1349
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 889 times
- Been thanked: 296 times
-
Contact:
Post
by u2fly » Thu Jun 22, 2017 9:29 am
There are many ways how do same task in Blender -
https://www.versluis.com/2017/06/how-to ... n-blender/
One issue that not solved for do it usable for Blender - there no scripts for export terrain mesh to TER-file for YSFlight.
I will try make this script for both YSFS 1.x (for Blender 2.49b) and YSFS 2.x (for Blender 2.7X) add-ons as soon as possible.
u2fly
-
Barr
- Veteran

- Posts: 1012
- Joined: Wed Mar 28, 2012 8:49 pm
- Favorite Aircraft: The Boeing 757
- Location: Providence, Rhode Island
- OS: Windows 10/Gentoo
- Has thanked: 272 times
- Been thanked: 205 times
Post
by Barr » Thu Jun 22, 2017 10:07 am
You could also rewrite this to make a png2fld or pc2


Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.
Barr
-
Deleted User 1872
Post
by Deleted User 1872 » Thu Jun 22, 2017 11:36 pm
u2fly wrote: ↑Thu Jun 22, 2017 9:29 am
One issue that not solved for do it usable for Blender - there no scripts for export terrain mesh to TER-file for YSFlight. I will try make this script for both YSFS 1.x (for Blender 2.49b) and YSFS 2.x (for Blender 2.7X) add-ons as soon as possible.
Hey, making this would actually be a serious improvement and advancement in making scenery. I'd want to try it out once it's done
Deleted User 1872
-
Nodoka Hanamura
- Veteran

- Posts: 927
- Joined: Thu Apr 07, 2011 8:01 pm
- Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
- Has thanked: 515 times
- Been thanked: 266 times
Post
by Nodoka Hanamura » Thu Jun 22, 2017 11:38 pm
Impressive. I can see it being used to import Heightmaps into YS sometime down the line.
█████████████████████████████████████████████████████████████████████
Nodoka Hanamura
-
Flake
- VFA-49

- Posts: 4358
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 838 times
- Been thanked: 1248 times
-
Contact:
Post
by Flake » Fri Jun 23, 2017 6:10 am
Quoting OP wasn't necessary, removed...
Yeah that's sort of the goal actually.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
Flake
-
Dragon_Mech
- Veteran

- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Post
by Dragon_Mech » Sun Jun 25, 2017 9:49 am
this could be very helpful in making canyon maps and setting most of the foundation work for tunnels and caverns. i may have to learn to make maps and play with this.
Owner, Dragonic Machine Industries

Dragon_Mech
-
Welshy
- Staff

- Posts: 2043
- Joined: Thu Feb 24, 2011 4:53 pm
- Favorite Aircraft: Sea Jet
- Location: Wales
- OS: Windows NT
- Has thanked: 249 times
- Been thanked: 250 times
-
Contact:
Post
by Welshy » Sun Jul 16, 2017 1:19 pm
Flake will this work fine with DEM imported grayscales? If so this could be a game change!
YSFHQ Elected Overlord
Overlord of VMFA-125 (CVW-171)
Previously Supreme Overlord of 323rd CAW
Friendly Neighbourhood Miscreant
Head Honcho at Talking Aero and British Defence
If you see me post like this in a thread pay attention!
Welshy
-
Flake
- VFA-49

- Posts: 4358
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 838 times
- Been thanked: 1248 times
-
Contact:
Post
by Flake » Sun Jul 16, 2017 1:41 pm
It measures based on the luminosity value of the pixel. Greyscale is what I personally use.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
Flake
-
Welshy
- Staff

- Posts: 2043
- Joined: Thu Feb 24, 2011 4:53 pm
- Favorite Aircraft: Sea Jet
- Location: Wales
- OS: Windows NT
- Has thanked: 249 times
- Been thanked: 250 times
-
Contact:
Post
by Welshy » Sun Jul 16, 2017 2:48 pm
This therefore means real world Digital Elevation models can be used. As a note to all scenery devs, NASA distributes files of the earths terrain which can be broken down and converted to TIFFs easily which then converting to grayscale PNGs will be perfect
YSFHQ Elected Overlord
Overlord of VMFA-125 (CVW-171)
Previously Supreme Overlord of 323rd CAW
Friendly Neighbourhood Miscreant
Head Honcho at Talking Aero and British Defence
If you see me post like this in a thread pay attention!
Welshy
Users browsing this forum: No registered users and 1 guest