March 26, 201016 yr I was just wondering if this will help the frame rates at Cloud9's KLAX? Mods...I hope this is not overstepping my bounds here and if I am I apologize in advance. I did borrow/modify the code from a batch file that FSDreamTeam wrote and applied it to KLAX but I still am not sure if it will help. If anyone knows better then please chime in.Mark@echo offecho .if not exist lax_001.bmp goto wrong_folderif not exist nconvert.exe goto no_convertersif not exist imagetool.exe goto no_convertersgoto ok_start:no_convertersecho ERRROR = Place nconvert.exe and Imagetool.exe in this folderpausegoto end_file:wrong_folderecho ERROR = Please execute this script from the Cloud9\LOSANGELES\Texture folderpausegoto end_file:ok_startecho Resizing to 512x512 TGA...nconvert -quiet -out tga -resize 512 512 -yflip lax_01.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_01_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_02.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_02_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_03.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_03_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_04.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_04_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_05.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_05_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_06.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_06_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_07.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_07_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_08.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_08_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_09.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_09_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_10.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_10_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_11.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_11_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_12.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_12_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_13.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_13_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_14.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_14_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_15.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_15_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_16.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_16_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_17.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_17_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_18.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_18_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_19.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_19_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_20.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_20_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_21.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_21_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_22.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_22_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_23.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_23_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_24.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_24_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_25.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_25_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_26.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_26_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_001.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_001_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_003.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_003_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_013.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_014.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_015.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_016.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_023.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_026.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_031.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_031_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_034.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_035.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_042.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_042_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_048.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_048_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_057.bmpnconvert -quiet -out tga -resize 512 512 -yflip lax_057_lm.bmpnconvert -quiet -out tga -resize 512 512 -yflip VEICOLI_AEROLAX.BMPdel lax_01.bmpdel lax_01_lm.bmpdel lax_02.bmpdel lax_02_lm.bmpdel lax_03.bmpdel lax_03_lm.bmpdel lax_04.bmpdel lax_04_lm.bmpdel lax_05.bmpdel lax_05_lm.bmpdel lax_06.bmpdel lax_06_lm.bmpdel lax_07.bmpdel lax_07_lm.bmpdel lax_08.bmpdel lax_08_lm.bmpdel lax_09.bmpdel lax_09_lm.bmpdel lax_10.bmpdel lax_10_lm.bmpdel lax_11.bmpdel lax_11_lm.bmpdel lax_12.bmpdel lax_12_lm.bmpdel lax_13.bmpdel lax_13_lm.bmpdel lax_14.bmpdel lax_14_lm.bmpdel lax_15.bmpdel lax_15_lm.bmpdel lax_16.bmpdel lax_16_lm.bmpdel lax_17.bmpdel lax_17_lm.bmpdel lax_18.bmpdel lax_18_lm.bmpdel lax_19.bmpdel lax_19_lm.bmpdel lax_20.bmpdel lax_20_lm.bmpdel lax_21.bmpdel lax_21_lm.bmpdel lax_22.bmpdel lax_22_lm.bmpdel lax_23.bmpdel lax_23_lm.bmpdel lax_24.bmpdel lax_24_lm.bmpdel lax_25.bmpdel lax_25_lm.bmpdel lax_26.bmpdel lax_26_lm.bmpdel lax_001.bmpdel lax_001_lm.bmpdel lax_003.bmpdel lax_003_lm.bmpdel lax_013.bmpdel lax_014.bmpdel lax_015.bmpdel lax_016.bmpdel lax_023.bmpdel lax_026.bmpdel lax_031.bmpdel lax_031_lm.bmpdel lax_034.bmpdel lax_035.bmpdel lax_042.bmpdel lax_042_lm.bmpdel lax_048.bmpdel lax_048_lm.bmpdel lax_057.bmpdel lax_057_lm.bmpdel VEICOLI_AEROLAX.BMPecho Creating DXT textures...imagetool -batch -nogui -dxt3 *.tgaecho Doneecho Removing temporary TGA files...del *.TGAecho Doneecho Renaming .MIP files to .BMP...ren *.MIP *.BMPecho Done
March 26, 201016 yr Commercial Member I've used nconvert and some derivative of those batch files to convert just about everything in my FS installation. I even used a derivative of it to walk through my WOAI installation converting all the AI textures to 512 x 512, DXT3 with mips. How did you come up with your file list? Obviously if you run the command on a .bmp that's already 256 x 256 nconvert will scale it up rather than down using the '-resize 512 512' switch, and the result probably won't look too good in the sim so I'd suggest making sure that all the files in your batch are 1024x1024 to begin with if you haven't already. Note that you can also use '-resize 50% 50%' (or -resize 50%% 50%% if you're running the command from a batch file) and I've also found that adding '-sharpen 15' to the command line brings back some of the clarity that's typically lost when you resize an image. BTW, there is a 5.31 version of nconvert available, where typically only v5.3 is included with the FSDT converter utilities. I don't know if there's any difference between the two for our purposes, but I've been using the later version for everything I've done with it.Nconvert is the best kept secret out there for anyone who does anything with raster images. Type 'nconvert -help > nconvert_help.txt' to make yourself a "help file" and you'll be able to see exactly what this amazing freeware app is capable of. Have fun, I think I get more enjoyment out of messing with stuff like this than I do actually flying the sim. :( Jim
March 26, 201016 yr Author I've used nconvert and some derivative of those batch files to convert just about everything in my FS installation. I even used a derivative of it to walk through my WOAI installation converting all the AI textures to 512 x 512, DXT3 with mips. How did you come up with your file list? Obviously if you run the command on a .bmp that's already 256 x 256 nconvert will scale it up rather than down using the '-resize 512 512' switch, and the result probably won't look too good in the sim so I'd suggest making sure that all the files in your batch are 1024x1024 to begin with if you haven't already. Note that you can also use '-resize 50% 50%' (or -resize 50%% 50%% if you're running the command from a batch file) and I've also found that adding '-sharpen 15' to the command line brings back some of the clarity that's typically lost when you resize an image. BTW, there is a 5.31 version of nconvert available, where typically only v5.3 is included with the FSDT converter utilities. I don't know if there's any difference between the two for our purposes, but I've been using the later version for everything I've done with it.Nconvert is the best kept secret out there for anyone who does anything with raster images. Type 'nconvert -help > nconvert_help.txt' to make yourself a "help file" and you'll be able to see exactly what this amazing freeware app is capable of. Have fun, I think I get more enjoyment out of messing with stuff like this than I do actually flying the sim. :( JimI came up with the list using XnView...its a pretty cool utility actually. You can select all of the graphics files in a folder and then use its Menu Create -> File Listing... which will output all of the file information to Notepad using a number of different output parameters. I wanted the Filename, Size, and File Type. Since I only wanted to resize the 1024x1024 graphics to 512x512, I only selected those files. Then borrowed FSDreamTeam's resizer.bat and modified it for KLAX. I used what Umberto wrote as a road map and this is what I came up with. He did all of the hard work and I simply plagiarized him :)Mark
Create an account or sign in to comment