Sign in to follow this  
wsieffert

New version of AutoAsm released

Recommended Posts

I've released Version 0.6 of AutoAsm. This is still very much a work in progress and there are still problems to fix. Here's a short introduction from the manual: AutoAsm is a program that creates LWM polygons (water or land) and VTP lines (roads, streams etc), as well as other scenery objects for use in FS2002 and FS2004. It can also generate water for CFS2. In most cases the input data is in the form of a colour bitmap image. The following scenery objects can be created: 1. LWM polygons for water or land. 2. VTP lines for roads, streams, railways etc. 3. VTP areas. 4. Terrain mesh together with user-defined generic textures. 5. Objects such as trees or buildings linked to VTP lines (similar to vector autogen). An installation of Airport 2.60 or 3.0 is required for this. (end of quote) There is a list of known problems, for example there are small discontinuities on VTP lines on the edges of LOD8 squares, problems with islands smaller than a LOD13 square when formed from solid polygons. I just found a little whoopsee - if you want to make terrain you'll have to install the program into c:autoasm. As always, I ran out of time so it's a bit rushed but it should work okay. Fortunately I'll be able to compile the program myself next week, so I'll have an update on Wednesday to fix the terrain problem, and possibly any other problems that arise. Get it here: http:www.kline.demon.co.uk/autoasm.zip Meanwhile, have fun.... Best regards, Chris

Share this post


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

First -- THANKS!The program seems to loop on inserting dummy points on my Terrascene bmp file. Looking at the Taskmgr on Windows XP the cpu is high and the memory used never changes. Suggests tight loop. Leaving it in that loop for about a minute results in a Run Time error 9, Subscript out of range error.The bit map is 1.2mb. Memory used during the loop is 35mb. I have 512mb with 1ghz AMD. edit:FIXED problem. Had some residual TS textures popping up. Made them black and now all ok.Dick Boley KLBE

Share this post


Link to post
Share on other sites

Dick, glad to hear you fixed it! At the moment there's only a small amount of error checking on the input read process, so it does require the input bitmap to be relatively 'clean'. Not so bad for a simple image, but it can be a bit of a pain for a complex TS image with perhaps thousands of lines and polygons. It was nice to get some feedback. I hope to put out an update on Wednesday. Best regards, Chris

Share this post


Link to post
Share on other sites

Hi Chris,Noticed in the V06, you are using the older TDFHeaders.inc and TDFMacros.inc. Dick updated and distributed new ones about one week ago for use with LWMViewer.Since you are probably going to release a new package in a couple of days, thought you might want to update the files.W. Sieffert

Share this post


Link to post
Share on other sites

Any harm using the latest BGLC born fom the FS2004 SDK? No issues with FS2002 version.What si the proper procedure for determining the center of an image? Just add the NS and divide by 2. Same for EW. ???Dick Boley KLBE

Share this post


Link to post
Share on other sites

Dick, I've tried it and it doesn't seem to work. That's right - and to get the X and Y sizes, just subtract. I've thought of having the program read in the text that TS produces so that the centre position and sizes would be set automatically. Best regards, Chris

Share this post


Link to post
Share on other sites

Probably an error on my part but the placement of the set of VTP objects (roads in this case) are about a lilometer too far to the West. I add the lat values in the text file produced by Terrascene and divide by two. Same for lon values. Have tried different size areas but same result of other problems. I have used Terrascene to produce conventional textures and roads as photo-real textures and their placement is within a few meters of an airport I use as a mark (original FS2004 airport)I had FS2004 loaded and tried to load AuroASM but received out of memory error #7. Killed FS2004 and had 324mb free but same error.Dick Boley KLBE

Share this post


Link to post
Share on other sites

Dick, that's odd - I'll take a look at the position accuracy. I assume you used the text file that TS produces for the positioning. You could check the memory setting - AutoAsm displays the memory setting in the STATUS slot when you first run it. For TS I use 1,000000 - that's the dim size of the arrays. That setting might use up 20 megabytes or so. To change the memory setting, change the setting on the TOOLS panel and then click on SAVE and LOAD on the MAIN panel. After loading an image the array size readout (just above the map) tells you what memory setting you actually need - if it shows 100,000 then a memory setting of 120,000 would be safe. I just loaded FS and changed the AA setting to 10,000,000 and that locked up. I'll do some checks to get a better idea of the actual memory consumption. Best regards, Chris

Share this post


Link to post
Share on other sites

Dick, I've just done some tests and it looks to be pretty accurate. I used the TS1.bmp included with the installation. The TS text is:textures.lowerLeft.latitude=32.635600000000004textures.lowerLeft.longitude=-99.15060000000001textures.upperRight.latitude=33.2515textures.upperRight.longitude=-98.4275 from which I calculate centre long: -98.78905 centre lat: 32.94355 size long: 0.7231 size lat: 0.6159 I added a square in each corner and measured the square position in FS. The results were pretty accurate. The largest error was 0.00016 degree, which I estimate at 15 meters, while the others were out by about 7 meters. These errors were for the LWM water and VTP shoreline. The image is 8000*8000 approx, so the pixel resolution is approximately 8 meters. Out of the eight measurements, the error for half of them was therefore about equal to the resolution. This implies that AutoAsm is not introducing any error at the edges, but I'm wondering if a linear interpolation for all the points inside the image is valid. I'll have to think about that! Best regards, Chris

Share this post


Link to post
Share on other sites

Confession - I was forgetting to enter the size values!Once I did that the the roads came within about 50meters of where I wanted them. I use TDFCalc to accurately define a point in FS2004. Then used the lat & lon differences between TDFCalc values and thoese of AutoASM for the same point to adjust the AutoASM center lat/lon. Came quite close but had to do some final tweaking to places everything releative to the airport.I did find that sometimes the Read Dat function would hang in a tight loop (98% cpu) for about 20 seconds and then fall back to operation of AutoASM (regained control) If all I do at that time is to reclick on Raed Data it works ok. Seems triggered by changes to Center and Size. Not all the time. About 75% of the time.Dick Boley KLBE

Share this post


Link to post
Share on other sites

Chris;I was wondering if you could send me a copy of a 1 degree .TSP file, based on colors/texture you use. What is the limit of road types in FS9? Do you use solid colors or texture, or they just used to define VTP lines, like shorelines for rivers/lakes, and highways? I have printed the LWM viewer and AutoAsm documentation, and plan on doing your Tutorial tomorrow, thewase are just some questions I have.richardlhll@wmconnect.comRichard;

Share this post


Link to post
Share on other sites

>Chris;>>I was wondering if you could send me a copy of a 1 degree .TSP>file, based on colors/texture you use. Hi, Richard, I included three .trp files in the zip. Copy them into the TS textures directory. First, create your TS project in the usual way. Then select options / load render options and select one of the autoasm files. If you select autoasm_vtp then it will just do roads etc. >>What is the limit of road types in FS9? AutoAsm has all the FS2004 road textures built- in, but not the new textures for FS2004. The new types are listed in terrain.cfg in the main FS directory, though I haven't got round to using them.>>Do you use solid colors or texture, or they just used to>define VTP lines, like shorelines for rivers/lakes, and>highways? The output from TS should be just lines for shorelines, lakes, roads etc. The .trp files I mentioned will do this, all other types of output are disabled (e.g. solid polygons and textures). In TerraScene everything should be disabled in the options except some of the items under lines (day). The only items that are enabled under lines (day) are roads, streams and the water (land side). Hope you had a great Christmas! Best regards, Chris

Share this post


Link to post
Share on other sites

Chris;Had a great ChristmasThanks, I will have to do some more work. Will you be making the main menu setup easier? I have a hard time setting up for my paticular drives, 2 drives with 4 partitions of 20GB each, it always says C: and I have Flight Simulator on K: and AutoAsm on M: Also how can one enter Western Hemisphere Cords all the Input Image file displays is N and E. As I have only used TerraScene I guess It will take some time for my 57 year old brain to get the hang of things.Thanks for the reply;Richard;

Share this post


Link to post
Share on other sites

Hi, Richard, I'm not quite sure what the setup problem is. Don't forget, once you've set up the paths etc, click on SAVE and that makes it permanent for the project. I'm not sure what you mean when you say 'it always says C:' To enter western or southern coordinates, use a negative value. There is a bit of a learning curve but after you try out the tutorials hopefully it will get a lot easier! Any problems, don't hesitate to ask. Best regards, Chris

Share this post


Link to post
Share on other sites

Chris;I had made TerrAscene scenery FOR FS8 FS2002 at 4.7 pixel and except for the ground texture and slow loading I was very pleased. If you wish I can send you a DVD of my FS2002 Scenery.1. Is there a reason why you have limited texture to one pixel? To get true effects of river varying widths, one pixel will not do FS9 justice2. Why have you limited the TRIP resolution to 15.0 and 7.5, I would think 4.7 setting as used in FS9 would be better. If one uses 4.7 Meter Pper Pixel there is very little missing river and no missing roads.3. You said you had thought of having the program reading the text that TS produces, do you still plan on doing this? Richard;

Share this post


Link to post
Share on other sites

Hi Richard,1. Of course, for roads and shorelines one pixel is appropriate as AutoAsm requires a single pixel-width line to read in. It could be different for streams (which is what I assume you're referring to). However, I'm sure TS regards a stream as just a line and it has no width information. But if you set the stream width to, say, 10 then it does work. TS draws a polygon ten pixels wide and AutoAsm can read in the polygon. But of course the width will always be the same. Unfortunately the polygons produced by this method are not very good and I had to edit them to get it to work properly. But after editing the VTP streams did indeed show up as LWM water, which of course is far more realistic. I have been thinking of adding this feature: to automatically convert VTP stream lines to LWM water with a defined width.2. There's no arbitrary limit in AutoAsm. You can set any resolution you want in TerraScene (though when I tried a number smaller than 7,5 in TS it immediately reverted to 7.5).3. I just got that feature working so it'll be in the next release! Best regards, Chris

Share this post


Link to post
Share on other sites

Chris;I produced my entire state of West Virginia, using TerraScene, and found only one place less than 2 miles long that did not produce a river polygon, narrow with lots falls and fast water. The only place I had to do much editing was for Stonewall Jackson Lake opened in 1988 near me that is not in USGS DLG or LULC Data, and thus I had to use Shape files for it. Two sections highways also had to be added each less than two miles. If you wish I can send you a CD of the Clarksburg area at no cost, to fly over and see the rivers and lakes if you send me your address. richardlhll@wmconnectRichard;

Share this post


Link to post
Share on other sites

I've been learning Ground2k for a while, and find it to work well at doing my limited understanding of the list of functions listed for your tool. It seems that users of terrscene are showing great interest in your work. Is that what the main difference is, some connection to terrascene, or perhaps I don't understand the list of functionality well enough..Bob Bernstein

Share this post


Link to post
Share on other sites

Bob, that's an interesting question. Ground2k is an excellent program. I think there is one fundamental difference between G2k and AA, and that's the method of data input. With G2k you would import a map as background and use that to construct your polygons by clicking along the map lines. With AA, you don't create the polygons in the program. Instead, you create a bitmap and import it. AA reads the bitmap and converts the lines to LWM and VTP lines. In your paint program you could load a map or FS screenshot etc and draw lines on it to define LWM and VTP lines. You then read the prepared bitmap into AA. Finally you would set the various parameters (height, width, shoreline texture etc) and then create the scenery files. Because AA reads in bitmaps it naturally lends itself to importing bitmaps created by TerraScene. One TS bitmap could define a million points (the asm files can easily exceed ten megabytes), so the reading-in process really has to be automatic (though in practice the TS bitmap may need some editing to remove TS defects, such as breaks in line polygons). As AA uses bitmaps you can use all the power of the paint program to edit the polygons. If you draw solid polygons you can edit thousands of points with a few sweeps of the mouse. But, because of the relative complexity of the process, there is a bit of a learning curve. I included several tutorials that should make it a bit easier. In addition AA can also create terrain mesh and add objects linked to VTP lines (not unlike vector autogen!) I hope that clarifies it. Best regards, Chris

Share this post


Link to post
Share on other sites

Hi Richard, to be honest I'm not exactly sure what your concern is. You first raised the issue by mentioning the single pixel-width. This does *not* affect the accuracy of the water polygons - in fact a single pixel-width line is essential for maintaining accuracy. Of course, I'm assuming the TS bitmaps have the same accuracy as the input data. By the way, I'm not a TerraScene expert as I don't use it for my own scenery work (for some strange reason, finding coastline data or maps for the Karakam peninsula is impossible!) If you still have concerns, state them as specifically as you can and I'll do all I can to address them. By the way, I found a fix that works quite nicely (subject to further testing!). I set the stream width to 5 pixels and AutoAsm read the streams in as LWM polygons instead of VTP lines. Streams with real water look much more realistic! Best regards, Chris P.S. thanks for the very kind offer, but I won't take you up on it for now.

Share this post


Link to post
Share on other sites

Chris,I fiddled with Terrascene when I put FLY-II on my computer about a year ago (long since removed). It is amazing the bitmaps you can get from the data.I did several in Northwest Pennsylvania area were I was born. Comparing the finished bitmaps to satellite data was neat.W. Sieffert

Share this post


Link to post
Share on other sites

Chris;I have two questions. I have been trying to do a 1/4 tile of NW Morgantown West Virginia with no sucess.1. Everytime I attempt to create a BMP I get a Runtime Error 9 Subscript out of range.2. In TerraScene 2 two autoasm_lwm texture options although there is only one autoasm_lwn.TRIP file listed. Which do I use? Richard;

Share this post


Link to post
Share on other sites

W. Sieffert;I live in Clarksburg, WV and made TerraScene 4.7 M texture for my entire state and sourrounding area, almost 7 CD full, yet I have not been sucessful with Autoasm.While I have used TerraScene from it's birth when I used Fly! and I also Converted TerraScene Texture to FS2002, I have yet had any luck with AutoAsm. If you could or would you send me one of your Project files .TSP, and step you take after you get your TGA files. I have edited missing stream/river areas, yet everytime I get a runtime error 9 Subscript out of range. I work with 1/4 tiles and run an AMD 2800+ 128MB Nvida AGP and 512 400 DSR RAM, under Windows XP.richardlhll@wmconnect.comThank You;Richard

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