Sign in to follow this  
Guest mtom

LWMViewer2

Recommended Posts

Hi all,I've been absent for quite some time now - real life stuff - but I think it's about time to let people see what I've been up to. LWMViewer2 has been in progress for ages but still isn't as polished as I want it to be. It should be mostly usable though so if you're feeling adventurous, feel free to [a href=http://www.jimkeir.co.uk/FlightSim/LWMViewer2.zip]download[/a] it and give it a go.You'll need a reasonably powerful machine, with at least a GForceFX or Radeon 9x00 graphics card. Let me know either here or by email what you think, what needs most attention etc.There's no manual yet, just a very brief readme, but there will be. In the meantime, just click stuff :)Thanks,Jim Keir

Share this post


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

Many, many thanks, Jim. This is sure to cause a sensation.Some people may not have followed the progress of LWMViewer up to now. The previous version is an essential utility, certainly one of the most important programs to have. It allows viewing all terrain and various AFD elements, so it is extremely useful for checking any modifications without launching FS. In addition, the educational value of LWMViewer is priceless, letting you see how things are done.This new version is something totally different. Not a simple map viewer at all, it is The Ultimate Scenery Tool!, the one we have all dreamt of. It will load and display all terrain as if you were seeing it in FS!, also the entire airport with all its buildings with the correct textures displayed on the buildings!, also all objects with all their textures correctly mapped! You can move about, pitch and bank, close and far, zoom in and out. Is that pesky building in the wrong place? Just grab it with the mouse and move it to the right place. Don't like it at all? Just select it and hit the Delete. Place other objects, change the terrain, do just about anything with this new version of LWMViewer.Incredible!Best regards.Luis

Share this post


Link to post
Share on other sites

Hi,Hey, you missed out the scenery database editor }( (You can drop a folder on the scenery db list, disable/enable stuff, change the order etc. and it'll edit the FS config files for you).Thanks! Nice to hear I was going in the right direction. Do remember there's lots of stuff, particularly the XML related things, that are very new and will almost certainly not work entirely yet. However, got to start somewhere and it'll be much easier to spot problems with more people trying it out.Cheers,Jim

Share this post


Link to post
Share on other sites

Hi Jim,The program does not start at all on my computer.Just locks Windows XP in the "scanning databases - North America 10 of ???" phase.I have put all supplied files in a folder on the desktop and tried to start the application from that folder.Standard WIN XP Pro equipped machine.Any clues why this?Best,Bjorn

Share this post


Link to post
Share on other sites

Hi,It can take a while to start up the first time, when it goes through and creates its own scenery database much like FS does. If it's going OK you should see a lot of system activity in task manager (Ctrl-alt-delete) . North America is a particularly big one with thousands of files which need to be opened, parsed, indexed etc. The database stuff is obviously working, because it's already done 10 scenery areas.Try again and just leave it for a while. If it still locks there and there's no system activity showing, can you email me your system specs? Also, there's a tool called 'Filemon' available from [a href=http://www.sysinternals.com]here[/a] which will show you exactly what files are being accessed, if you were to try that and limit it to reporting *.bgl files it may show which one is causing a problem. It'd also show more detailed file-by-file progress. HTHJim

Share this post


Link to post
Share on other sites

I am not clear about the following info. I have a Radeon 9800SE card.==================================If you're using an ATI card (i.e. Radeon) you will very probably have to edit the two .fx files in this folder.They're plain text files, and all you need to do is change the first two linesFrom : #define [PV]X_MODEL [pv]s_2_aTo : #define [PV]X_MODEL [pv]s_2_?These are the possible combinations:VX_MODEL vs_2_0, vs_2_aPX_MODEL ps_2_0, ps_2_a, ps_2_b=============================================I do not see any .FX files in the "folder". I assume that is the folder that I created to contain the 9 files from the ZIP. ???Dick Boley @KLBE

Share this post


Link to post
Share on other sites

Hello,Let the LWMViewer do the job!c.a. 1,5 hour on my machine! (I do not stopped the time)@ JimkeirWOW!Thank you very much!Kind regardsHorst

Share this post


Link to post
Share on other sites

LWMV 2 abended while building the data base.http://forums.avsim.net/user_files/130352.jpgI am open posting this, due to the nature of the problem. The file it is choking on is from Shez' KSNA and is an XML taxisign file SNAtaxisign.bgl. This file also chokes NewBGLAnalyze and BGLXML, but works in FS9 and SGX44. It appears the problem is that the file in the Airport element is setting the ident attribute (KSNA) but the name, city, state, and country attributes are not set (or maybe set to a null string). SGX44 was able to import the file and generate an XML file. When I edited to fix the airport element, all other utilities were happy with it.AFAIK, it is not required to set the airport attributes, other than lat/long/alt/ident. There are actually 2 versions of this taxi file. This one was provided as an "update" with a readme that said it was changed to avoid an unspecified problem with AFCAD.Removing this file allowed LWMV2 to complete the database process, but like I said, I think this is a legal file.Is there a preferred way to place taxisigns in scenery? I had to help another user who was getting problems from Shez' KBUR taxisigns.scott s..

Share this post


Link to post
Share on other sites

I am getting a similar error when processing the FlightScenery FlightZone 01 Rhode Island scenery. It is choking on the taxi signs.Tony=http://www.flightsim-bevs.com]BEVBetaSig.jpg

Share this post


Link to post
Share on other sites

Jim,Thanks for releasing this!I'm having trouble getting started with it though - I'd like to edit the landclass around Tucson, AZ. I open up the FSG mesh file for Arizona, but all I see is white on the screen - are there other things I need to load in to do this?Thanks,

Share this post


Link to post
Share on other sites

Hi,OK, a few things to sort :)Scott and Tony, any chance you can send me a copy of an XML file that causes problems? I suspect it's failing on one of the missing attributes but it'll be much easier to spot if I've got the file to test with.Dick, that reference to the FX files shouldn't have been there. They are shader programs for the graphics card and are built in to the program anyway. I made it check on disk for newer versions, in case updates are needed, but for now the standard ones should be fine. As far as I know they work on ATI cards too. I can post the shaders if anyone's interested.Ryan, I suspect you've just not moved to the loaded area - you need to do this yourself for now. In the list of open files (F7) double-click on the mesh file you loaded and it should get drawn. Having the white background means it's loaded the mesh OK but there's nothing to display on screen.Robin, that file (ATL71.DLL) is one of Microsoft's standard libraries so I thought it would be part of Windows. It's redistributable so I'll include a copy in the archive tonight - I can't guarantee the copy I have here is the correct version, and the laptop I use at work doesn't have powerful enough graphics to run it :)Horst, 90 minutes? Whoa! Takes about 10 for me. FYI it's scanning the FS scenery library, then going into each file it finds to suck out some basic information about what's in it, what area it covers etc. All of this is put into an mdb database which you can read using Access, or anything that uses ODBC. Might be useful for other programs. Unfortunately ODBC connections can be rather slow - I'll try and find a way of making it more efficient. How long does it take to start after the initial build? Also, can you give me you machine spec?Everyone, thanks for giving it a go, and it seems having the patience to wait for the initial load! Cheers,Jim

Share this post


Link to post
Share on other sites

Only the atl70.dll was present on my machine, but does it come with Windows or did some unknown program place it there behind my back?Anyway, a search of my hard disk turned up atl71.dll in an old install folder of Jasc - lucky because I uninstalled PSP a long time ago!http://forums.avsim.net/user_files/130386.zipPlace it in your Windows/system32 directory, I guess.Here is a screenshot of the loaded scenery at the location of my house - this is what I see from the back porch:http://forums.avsim.net/user_files/130387.jpgExcept for the "Hollywood Hills"-type sign that I made so that I can find my way back home.I repeat, this is not a screenshot of FS, it is LWMViewer. Incredible!Best regards.Luis

Share this post


Link to post
Share on other sites

I get very much the same error message as Scott reports above.The app starts but aborts almost immediately with the following message:Visual C++ Runtime Library - Runtime Error.-"The app requested the Runtime to terminate in an unusual way."I have downloaded and installed the latest MS "VC Toolkit" also the 2 dll:s referred to above are in my system.Best,Bjorn

Share this post


Link to post
Share on other sites

Hi,Looks like a great program,But here's new one for you.I got the program started after finding 4 dll's that the prog needed, not a problem, found them on the internet. Then it went through its start up procedure fine, took about 20 minutes. Then the program was on, I thought great, clicked open by co-ords, enter my lat and lon, clicked ok and out of no where the computer restarted itself, I thought thats strange, its never done that before (btw, the computer I'm using is my brothers, my comp isnt powerful enough to run the prog) anyway. It restarted and got a 'your computor has recovered from a serious error message'. I though possible a one off so tried it again done the same and again the computer restarted itself. mmm I thought. Next I tried starting FS2004 and going to the Airport I wanted so view, then started LWMViewer2 and instantly, the second I pressed the .exe the computer restarted itself again.I asked my brother and he said the computers never done that before. Its a new computer only a few months oldIts a Fujitsu Siemens Scaleo P3.2Ghz P41gb RamNvidia Geforce 6200 TurbocacheI cant see any reason why the computer should restart using your program, it doesnt do it with any other prog, we've been playing Medal of Honor Pacific Assault and Halflife2 without any problems, quite strange, Its not even a fluck it happens every time.Any help would be great, Im itching to try it outThanksStevo ;-)

Share this post


Link to post
Share on other sites

Hi all,I think the unexpected abort errors are related to the initial database load. I took a look at one of the taxiway sign BGLs and found that it was specifying an ICAO code without also giving the airport name, city etc. I use the name as a primary key, so that failed. I've fixed that and also made the startup considerably faster. Should be no more than a few minutes now, if that. I've also included atl71.dll.I'm not sure what's causing the system crash. My first guess would be something related to the 6200TC. Can you check first if you've got the latest drivers from NVidia? If you have, I'll probably need to put together a modified version for you to try and work out exactly where it's failing.Anyone else using it successfully with a TurboCache and/or 6x00 card?Cheers,Jim

Share this post


Link to post
Share on other sites

I am getting a Can't Create a DirectX Device error when accessing the Model Picker. Occurs on both generic and library items. Otherwise the display works when showing top down and horizontal views of landscape.Radeon 9800SE 2.6ghz 512mbDick Boley @KLBE

Share this post


Link to post
Share on other sites

Hi Dick,How much graphics memory do you have on the 9800SE card? Sounds like it could be running out. I think I can get the reason for a failure from DirectX, I'll look at doing that to try and get a definitive message.Try switching Antialiasing off if it's on, that can take a lot of memory. Can you also try going into the model window without having loaded any scenery, to see if it works then?Cheers,Jim

Share this post


Link to post
Share on other sites

I'm sorry for the stupid question, but, how do you tell if your card supports Shader Model 2? I have a laptop with 64 MB 4200 Go graphics. I'm assuming at this point it doesn't support Shader Model 2 because it doesn't appear to work on my system. Let me qualify that. It loads fine, I get all the menus, the graphics just look like a gray slate. So I think the program is working properly, my graphics card just doesn't support it. But I want to make sure.Thanks,Thomas

Share this post


Link to post
Share on other sites

Jim - thanks for your prompt response. Indeed the problem (or the new word "challenge") was the use of Anti-Aliasing. The Model Picker works ok now.I noticed that if you start LWMViewer and you use a coordinate set that there is in invitation to delete existing files. If I click Yes, a very long time (by PC standards) is spent in disc activity when there are probably no existing files to remove.Dick Boley @KLBE

Share this post


Link to post
Share on other sites

Jim, the new download today creates the database just fine.I have noticed that when I load an area, it won't display anything behind the open dialog boxes. If I close them, it will draw in the entire screen and then I can reopen the boxes. Nvidia 6600GT with current reference drivers from Nvidia's site.Now if I can just figure out how to work this thing. :)Tony=http://www.flightsim-bevs.com]BEVBetaSig.jpg

Share this post


Link to post
Share on other sites

Hi,It should complain if it can't find SM2 support but it seems as though it isn't. There's a website [a href=http://d3dcaps.chris.dragan.name]here[/a] which will tell you all about your card.Select:- 'D3DCAPS9', Next.- Groups, then add 'Shader Caps' to the left-hand list. Next.- 'By Vendor' or 'Selected' then your vendor or card model. Next.- Finish.You're looking for the 'VertexShaderVersion' and 'PixelShaderVersion' to be at least 2.0 .If your card isn't listed you can download a small program which will scan our card and give you a full report. You can also email the report to Chris who will add it to his website.In your case, it doesn't list the 4200 Go but I believe it's the mobile version of the GForce 4200 which doesn't support SM2.0 . Sorry. I did spend quite a long time trying to get it to work in SM1 but didn't manage it, there's just too much stuff happening on the graphics card now.I know this does hit the graphics card harder than you might expect. All I can say is that I have rather less resources available than most 3D-engine developers (i.e. Microsoft, Valve :) ) and that it'll get more efficient over time.Cheers,Jim

Share this post


Link to post
Share on other sites

Hi,OK, one down, sort of. I've added a message box to give a failure reason for the device creation part so if it happens again, you should get a specific reason for it. There's no other changes, so no point in downloading again unless you're getting the device creation errors.I'm not sure what would be causing that activity. Removing already loaded files probably isn't causing too much of a problem, I suspect it's more related to loading the new set.Can you tell me what's in the set you're loading, and how much memory you have in your PC *and* on the graphics card? When you load a file it has to be parsed, converted to internal data structures from the BGL, then loaded onto the card for display. There's even more going on if you load mesh, it all takes rather a lot of memory to to.Cheers,Jim

Share this post


Link to post
Share on other sites

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