Sign in to follow this  
Guest jimkeir

LWMViewer update - terrain files added

Recommended Posts

Hi all.I've added support for terrain data to LWMViewer. There are still a few problems, but if anyone wants to play with it the latest one is on my website as usual - http://www.jimkeir.co.uk/LWMViewer.htmlThe outstanding stuff is:- Flattens are displayed in blue instead of red (duh)- TMF drawing, especially with both lightsourcing and colour-coded elevation, is still too slow.- Memory management is poor. Terrain data can take *lots* of memory, and if it runs out wierd stuff happens. As a rough guide, multiply the size of the BGL on disk by 40. In general, most of the default terrain is fine but third-party BGLs over 15-20Mb will struggle. If you have problems, zoom in and toggle one of the TMF drawing options (but not the master switch) to clear the bitmap cache.- Palette improvements needed for both the displayed data, and particularly bitmaps saved with TMFs on.- Terrain isn't autoloaded yet, you need to manually open the appropriate file from FSSceneryWorldSceneryD*.BGL .- Altitude from loaded terrain isn't shown numerically on the status bar. This isn't difficult, but because of the amounts of memory needed to store both rendered *and* raw elevation data, I need to think of a way round it.I've separated the TMF drawing stuff into a DLL, and I'll post an SDK for it (for VC) soon, once it's been tested a bit more and the API has stabilised. If someone knows how to create appropriate information for VB or other languages, I can give you any extra information you need.Comments are welcome, as usual, and if you have any suggestions for the colour scheme used to show altitude in TMFs then please let me know.Regards,Jim Keir.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this