Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Textures size 4096 pixels format ".JPG" for texturing maps.  (Read 2484 times)

0 Members and 1 Guest are viewing this topic.

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 735
Textures size 4096 pixels format ".JPG" for texturing maps.
« on: February 13, 2020, 06:01:01 PM »

Hello.

These are all from old designs.

Everything written below is a purely personal opinion and does not claim to be true.

When I was working on DLL-4096, I studied the possibility of using textures in the JPG format
in texturing maps.
While we used textures with a resolution of 1024x1024 pixels, this did not make sense, since
The texture of 1024x1024 pixels in TGA format with an alpha channel has a size of about 4 MB.
The texture of 4096x4096 pixels with alpha channel has a size of 64 MB.
The texture of 4096x4096 pixels without alpha channel has a size of 48 MB.
Alpha channel is not needed for texturing maps; therefore, you can use a texture
Texture 4096x4096 pixels without alpha channel size of 48 MB.
When using a large number of textures 4096x4096 pixels on the map, it is desirable
Reduce the size of the entire texture pack for convenience.
This is solely for the convenience of storing and transmitting the texture package.
In the engine IL-2, when loading a map, anyway any textures
will be converted to full color TGA format.
If the textures were originally compressed and of poor quality, then the quality will remain poor,
only inside IL-2 will they become larger in full color.
Therefore, you do not need to use a texture translation of 4096x4096 pixels in indexed colors, for example,
as the quality is very much lost and the color palette disappears.
Moreover, there are few tools that can correctly translate the TGA format of 4096x4096 pixels
to indexed textures for IL-2.
When converting the TGA format to JPG format with a maximum quality of 100%, it seems to me that the quality is lost acceptable.
Quality stays better than indexed colors.

FACTS:

1) TGA texture 4096x4096 pixels without alpha has a size of 48.0 MB

2) Texture JPG 4096x4096 pixels has a size of 20.1 MB

3) The difference is 2.4 times.

4) Texture INDEX TGA 4096x4096 pixels without alpha has a size of about 16 MB and its quality is poor.

The IL-2 game is very old and there are problems in understanding the image formats it has.
JPG format IL-2 does not understand directly (directly).
We will ship the JPG format to IL-2 in a tricky way, through the internal IL-2 format in the form of TGB.
Therefore, we will save from TGA to JPG format through the free GIMP 2.10 program.

!!!!!!! Texture JPG saved in Photoshop will not work in IL-2 !!!!!!!!!!!!!!!!!!!!!!

Procedure:
1. You already have a good TGA texture of 4096x4096 pixels without alpha
2. You have already made the shadow file of the BumpH format you need from it.
3. Open the texture TGA 4096x4096 pixels without alpha in the program GIMP 2.10.
4. Export to JPG format. See pictures.
5. After the export, force the hands to change the file extension
   from .jpg to the .tgb extension.

6. Install the DLL DLL-4096-2017year into the game
   link: https://www.mediafire.com/file/c5lzpslwnjjcx54/DLL-4096-2017year.7z/file
7. Use the textures in the game.


Also in the game I use my Noise.tga shadow file 4096x4096 in size.
It mimics the best shade in the form of grass.
Download: https://www.mediafire.com/file/pr2ekd9vq0z6sa2/Noise_4096.7z/file

You can download a test version to compare the standard Slovaka Summer card
On the map of application there is only one texture 4096x4096 pixels.
For visual comparison, there are two versions with a TGA texture and a JPG texture.

Download: https://www.mediafire.com/file/5tzmkkqrth22n00/PUT_IN_FOLDER_MODS.7z/file
(The 4096 Noise.tga and NoiseTL.tga textures are inside.)

Visual comparison of textures 4096 pixels JPG and TGA on the presented GIF.
There is practically no difference in quality.













Logged

vpmedia

  • Modder
  • member
  • Offline Offline
  • Posts: 6652
  • www.vpmedia.hu/il2
    • VPMEDIA SKINS
Re: Textures size 4096 pixels format ".JPG" for texturing maps.
« Reply #1 on: February 14, 2020, 12:32:08 AM »

Jpg filesize is ~20% of tga, which is a real advantage when using 4096 textures.
I did a test and I see no noticeable quality difference between max quality jpg and 32bit tga.

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 735
Re: Textures size 4096 pixels format ".JPG" for texturing maps.
« Reply #2 on: February 14, 2020, 12:36:24 AM »

...
I did a test and I see no noticeable quality difference between max quality jpg and 32bit tga.
I also came to this conclusion.

Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 26 queries.