Jump to content

Recommended Posts

Hi!  Can anyone explain the differences between using a JPG file verses a BMP file for skins or terrains etc?  I have a feeling that JPGs are better and work smoother but I really don't know

Share this post


Link to post
Share on other sites

JPGs far less space and hold a lot of detail...my 2048x2948 jpgs for the mig29,smaller in size and better detail than a 1024x1024 bmp

  • Like 1

Share this post


Link to post
Share on other sites

jpeg takes way less space.

the C-17 i skinned recently originally had a universal bmp for 13 skins(skin in the main aircraft folder with nothing in the skin folders). it took less file space to use jpeg in all 13 folders instead.

Edited by daddyairplanes

Share this post


Link to post
Share on other sites

JPGs take up a lot less space on your hard drive than BMPs, and I also think they load faster in the sim than BMPs.

  • Like 1

Share this post


Link to post
Share on other sites

Ah ok thanks guys that's confirming my suspicion!  I tried converting an entire terrain to JPG's and it works remarkably well my frame rate skyrocketed!  I would totally recommend this! 

Share this post


Link to post
Share on other sites

Let's see, a typical 1024x1024 BMP is always 3MB, the JPG version with the lowest compression (100% quality) is around 600-700kB, the DDS version with MIP images is around 650-750kB.

 

The more complex the skin is, the heavier the JPG will be (conversely, a 1024x1024 skin consisting only of pixels of a single colour would be around 20kB), BMP and DDS however always have the same file size for the same spatial dimensions.

 

BMP is frankly the worst format, it takes more space on disk and it takes longer to load (because nowadays it's faster to decompress a JPG/DDS than read a BMP, this hasn't always been the case).

JPG is a nice intermediary, it takes the least space and it's fast to load, however it requires a bit more processing to load than DDS and takes up more VRAM than DDS (NB: with Kerbal Space Program, I'm not sure it holds true for Strike Fighters 2, I'll have to check).

DDS are the best, they take only marginally more space than JPG in typical situations, they load the fastest and use the least amount of VRAM (see the NB above).

 

 

P.S. : "Lossless" JPG produced by some graphic software as well as the one included as stock by ThirdWire may actually be larger than DDS in many cases.

 

P.P.S. : Take into account that DDS is an accepted format only for skins, your best bet for mass conversion is JPG (and even then, there are a few instances where only BMP are read, demonstrating how "sub-optimal" some parts of the code are).

Edited by Gunrunner

Share this post


Link to post
Share on other sites

One thing I forgot to mention, there is a HUGE difference between JPG and BMP.

 

You can put BMP at a plane or ship root directory and they'll be used unless there is a file with the same name inside a skin directory, the same thing does not work with JPG.

 

Let's say I have a plane with 2 image files constituting a skin, it has 2 skins, but those skin only differ on the second skin file.

 

With BMP I can set things up as follow :

 

Aircraft\Plane\Skin_1.bmp

Aircraft\Plane\Skin1\Skin_2.bmp

Aircraft\Plane\Skin2\Skin_2.bmp

 

And it will work, but if you want to do the same thing with JPG you have to do :

 

Aircraft\Plane\Skin1\Skin_1.jpg

Aircraft\Plane\Skin1\Skin_2.jpg

Aircraft\Plane\Skin2\Skin_1.jpg

Aircraft\Plane\Skin2\Skin_2.jpg

 

So depending on the number of skins and the commonality between them, it might make a huge size difference (because one 3MB BMP file is smaller than 12 600kB JPG files).

 

It also means that converting BMP in place might end up with broken textures.
 

 

Keep in mind though that you can mix and match file types, making :

 

Aircraft\Plane\Skin_1.bmp

Aircraft\Plane\Skin1\Skin_2.jpg

Aircraft\Plane\Skin2\Skin_2.jpg

 

possible and probably most efficient in cases of a large number of skins with high commonality.

Edited by Gunrunner

Share this post


Link to post
Share on other sites

Thats been referred to as universal skin Gunrunner. But depending on texture size it may still be smaller overall to use jpeg in skin (shocking when its the case even with 15 skin folders!)

Share this post


Link to post
Share on other sites

You can put BMP at a plane or ship root directory and they'll be used unless there is a file with the same name inside a skin directory, the same thing does not work with JPG.

 

It depends on what format the lod calls for. If it calls for jpg files, then you can put jpg files in the plane root folder.

Share this post


Link to post
Share on other sites

BMP is frankly the worst format, it takes more space on disk and it takes longer to load (because nowadays it's faster to decompress a JPG/DDS than read a BMP, this hasn't always been the case).

 

Would it be possible to get some data to back that up, please? I've been under the impression that the time/processing power to decompress a JPG negated any advantage of smaller file size.

 

 

I've experimented with DDS textures for smaller ground objects before, using DXT1 compression, but I'm wondering if there are more optimal settings for this sim. What's the best compression scheme to mimimize loss of quality?

 

Also, is there any advantage to using a non-compressed DDS compared to a BMP? Should I generate mipmaps, or does the game auto-generate them?

Share this post


Link to post
Share on other sites

Besides changing the BMP to JPG files in the terrain/map folder, do you have to tell that somewhere? Like changing a log from image.bmp to image.jpg so it will load out.

 

Does the same apply to the objects?

Share this post


Link to post
Share on other sites

This skin for example at 2048x2048...JPG=2mb,BMP=12mb....go figure....lol

post-1981-0-60018300-1444252582.jpg

post-1981-0-34857900-1444252630.jpg

Edited by russouk2004

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  

  • Similar Content

    • By VonBeerhofen
      An error I made working on the city districts drew my attention to the COSTCT tile which only shows a staggering 6 times in the entire EAW world. I'm pretty sure there are hundreds of coastal towns and seaside resorts in Europe, one of which is the one I live in. So I feel I have a choice to make, add more to the EAW coasts or free the tile to be turned into a new city tile to add more diversity to the limited set in use. Personally I think that a village or city tile one coastal tile away from shore will work just as well, after all the entire coast and beach are merely app. 1 or 2 KM deep. The question though is what is a better use in a 64 small tileset?
      Furthermore with a universal tile border there is also a much better use for the river city tiles as they can now also function outside the cities and add more diversity, as was done with other nature's in EAWPRO. Besides that industries predominantly happen on river banks, so it adds to realism too. Vice versa there's also no reason not to use other bridges inside cities like London when borders are uniform, which had 5 at the time of the blitz. EAWPRO already uses dozens of instances of the unused stock rail bridge and a much higher number of any other bridge. They're even used as piers on coastal tiles too, making fun targets to destroy!
      Here's Londen Thames with added bridges, of course the fake crossing can be removed now too.

      VonBeerhofen
    • By VonBeerhofen
      or bringing order to the chaos. I've applied a previously described algorithm of grouping tiles on the Italian cities which forms them more into what one might call 'districts', i.e. more organized then what was shown in the previous thread. The fractal algorithm can create many different layouts using various parameters, one of which is determined by looking at an entire region and the neighboring tiles surrounding a particular tile. It then randomizes smaller groups it creates and adds an occasional seed between them so the group isn't just echoing a certain tile. In the below calculation groups are created from the outside inward, taking the city's shape into account, after all the surrounding tiles influence the outcome of the calculation. As part of the fun 1/2 of the tile map uses an inverted calculation as can be seen in the last 3 pictures which is Munich, hence it's border and center differs from the  other pictures shown. The other 5 are London.









      You heard it first in www.combatace.com
      VonBeerhofen
    • By JamesWilson
      Hi,
      a couple of months ago i discovered this gorgeous total conversion called "Yankee Air Pirate", and that the "REVAMP" edition for SF2 (the original one was for WOV) existed, and other awesome total conversions like "Drug Wars" and "Flight School" too, so i got ready to download them, but since i hadn't enough space at the time, i waited.
      Now i come back on the website to find out all the links and pages about the revamp are gone, there's only the original ones for SF1 series.
      Do anyone of you know why they're gone? Will they come back? They're maybe updating the mods?
      Thanks
    • By JamesWilson
      Hi everyone,
      I recently got into weapon modding and wanted to edit some missiles.
      I went for the Weapons Folder with the Weapons Editor, and some weapons were missing, even tho i can see them and equip them in-game.
      I wanted to edit the AA-2D Atoll for my Su-22M3, but there's no AA-2 folder inside Weapons folder, nor inside plane folder, even tho the missile is equippable and i can see it/use it in-game.
      Since there's no Atoll folder, i have no idea how is it possible for me to have it in-game, and even less i know on how am i supposed to edit it through Weapons Editor, since i can't select the folder.
      I thought it may be a sort of "built-in-game" missile and for this reason not showing in weapons folder (idk i just made an hypothesis).
      So i tried using the CAT Extractor, but seems like not working... no matter which CAT file i select, it says "error opening this .CAT file, no files can be extracted", how's that? How do i fix it? Am i doing something wrong?
      Thank you in advance for helping me fixing all these issues or helping me find what i'm doing wrong
    • By VonBeerhofen
      No more repetitive borders or center tiles and more different villages. With this randomization all village and city tiles can be used at will where ever in the game  in any possible rotational state, and it's a lot less mapping work. I already showed the idea some time ago but not with the Harvest City Set. There is still some work to be done to narrow some borders and create the right impression I'm after but I think it's slowly getting there.
      Here's a few screen shots, as an experiment a few village tiles were replaced with breaker field tiles and two different city/village layouts were tried, which means that the randomization for each layout is entirely different while the cities and village sizes and positions weren't changed. 





      You heard it first on combatace.com
      VonBeerhofen
×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..