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 wrote: ↑Wed Jun 21, 2017 8:54 amou 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.
I'm just a random passerby, but if anybody around here is interested in creating a .ter of real location, QGIS might help you make a grayscale height image. http://qgis.org
Note: I can't test whether the method described in the site above works (I'm a Mac user, so I can't run this program. I hope I could!), so just take it as a random idea. If this method doesn't work please tell me. I will delete this post.
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!
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.
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression” pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
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.
u2fly wrote: ↑Thu Jun 22, 2017 9:29 amOne 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
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!
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.
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!
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!
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!