Special Aircraft Service

Please login or register.

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

Author Topic: CARSMASTER_MIRROR_SD (HD)_1024  (Read 9457 times)

0 Members and 1 Guest are viewing this topic.

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 731
CARSMASTER_MIRROR_SD (HD)_1024
« on: December 01, 2021, 01:49:40 AM »

GIF ANIMATION




Hello everyone.
It took a long time to find a place in the code and a way to influence
image quality of mirrors.

This work allows the use of a mirror resolution of up to 1024 pixels.
Attention, do not use textures higher than 1024 pixels.

This version is for the clean, standard version 4.12.2
with the classic "mods" folder.

Installation:
1. Place the "CARSMASTER_MIRROR_SD (HD) _1024" folder in your "mods" folder

2. Inside the folder "CARSMASTER_MIRROR_SD (HD)_1024" there are folders
    "256_DEFAULT_MIRROR_TEXTURE"
    "512_MIRROR_TEXTURE"
    "1024_MIRROR_TEXTURE"
 
   These folders contain textures "MIRROR.tga" standard 256 pixels,
   512 pixels, 1024 pixels. Also there is the material "MIRROR.mat"
   This material has increased the brightness of the image.
   [LightParams]
   Ambient 0.7
   Diffuse 0.7

3. Select the size of the texture "MIRROR.tga", place it in all folders
   aircraft cockpits that have mirrors.

!!!!! If you don't put the texture in some cockpit of an airplane that has
       mirrors, the mirror will not work on this plane !!!!!!!!!!!!!


4. In the Conf.ini file, write the lines of text:

    [MODS]

    mirrorWidth=1024

    mirrorHeight=1024

5. Attention. mirrorWidth and mirrorHeight must be equal to the size of the texture,
   which you put in all aircraft cockpits that have mirrors

6. In the folder "CARSMASTER_MIRROR_SD (HD)_1024" there is a source file "Main3D.java"

   changes in the code can be found by keywords

   // my cod add /////////////////////////////////////////// /////////////////

DOWNLOAD MOD: https://www.mediafire.com/file/d6m5ffkoebh93nt/CARSMASTER_MIRROR_SD%2528HD%2529_1024.7z/file

Enjoy your flight.









Update post:
Put in the mods folder, these are standard aircraft cockpits in clean version 4.12.2, which have mirrors.
There are two options, with 512 pixel mirrors and with 1024 pixel mirrors. All the necessary folders have already been put in textures and materials.
  Cockpit mirror 1024
https://www.mediafire.com/file/rar3yx4wtzuy1rc/1024_MIRROR_COCKPIT_4_12_2.7z/file
  Cockpit mirror 512
https://www.mediafire.com/file/ewypm6soy91vjtv/512_MIRROR_COCKPIT_4_12_2.7z/file



Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #1 on: December 01, 2021, 02:21:31 PM »

Neat stuff! And astonishingly simple. Just alter the two relevant lines of code in Main3D.class, from fixing the mirror resolution at a 256 pixel sized graphic to forcing a reading of values specified in the [Mods] section of conf.ini. That makes it dead easy to adapt to all game versions.

What's remaining to do is generate a list of all cockpits using mirrors. This could be done via a 'search in files' operation on the "cockpit" folder of the dumped and decompiled classes. Then the list of cockpits thus identified would be turned into folders and collected together in a ready-made mod pack.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #2 on: December 01, 2021, 02:34:24 PM »

Ibstead of having to put the new mirror texture in all those cockpit folders, might it be possible to put just one texture in some folder, and have whichever is the appropriate load operation be directed there to retrieve it?
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 731
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #3 on: December 01, 2021, 02:58:55 PM »

Ibstead of having to put the new mirror texture in all those cockpit folders, might it be possible to put just one texture in some folder, and have whichever is the appropriate load operation be directed there to retrieve it?
Unfortunately, I have not found an easy way because:
1. The name of the material is written in the mesh file
2. The path to the texture is written in the material file
3. In java classes I have not found an easy way to redirect to another path to the MIRROR texture.
4. Maybe someone else will do it.
5. The list of standard aircraft that have mirrors is very short.
6. For this short list, just manually sort everything out.

Put in the mods folder, these are standard aircraft cockpits in clean version 4.12.2, which have mirrors.
There are two options, with 512 pixel mirrors and with 1024 pixel mirrors. All the necessary folders have already been put in textures and materials.
  Cockpit mirror 1024
https://www.mediafire.com/file/rar3yx4wtzuy1rc/1024_MIRROR_COCKPIT_4_12_2.7z/file
  Cockpit mirror 512
https://www.mediafire.com/file/ewypm6soy91vjtv/512_MIRROR_COCKPIT_4_12_2.7z/file
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #4 on: December 01, 2021, 03:58:18 PM »

If the number of cockpits having mirrors was large enough to make it worthwhile, one could have each of the mod cockpit folder's mirror.mat point to, e.g., 3do/cockpit/mirror/mirror.tga.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 731
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #5 on: December 01, 2021, 04:08:56 PM »

If the number of cockpits having mirrors was large enough to make it worthwhile, one could have each of the mod cockpit folder's mirror.mat point to, e.g., 3do/cockpit/mirror/mirror.tga.
Quite possible.
There is such a wisdom: "Do not feed a man with fried fish, it is better to teach him how to fish and give him a fishing rod. Then he will catch a fish for himself."
This mod = fishing rod. ;)

Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #6 on: December 01, 2021, 04:55:37 PM »

The version of your nugget of wisdom I first encountered decades ago goes something like, "Give a man a fish and he will eat for a day. Teach him to fish and he will never go hungry."  ;)
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

-=MaD=-

  • member
  • Offline Offline
  • Posts: 91
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #7 on: December 01, 2021, 10:49:02 PM »

My PC is not ready after moving to a new home... But I'm very excited about this mod. Hope I can try it soon! I hope you'll find a way to use this automatically for the planes with mirrors, because it's a little work to search them all. Is there a way to find these planes via a batch file?

Gesendet von meinem Bügeleisen mit Tapatalk

Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #8 on: December 02, 2021, 12:51:16 AM »

My PC is not ready after moving to a new home... But I'm very excited about this mod. Hope I can try it soon! I hope you'll find a way to use this automatically for the planes with mirrors, because it's a little work to search them all. Is there a way to find these planes via a batch file?

Gesendet von meinem Bügeleisen mit Tapatalk

I haven't downloaded these yet, but I *suspect* (clearer wording would have removed doubt   ;)  ) that in reply #3 Carsmaster has done this work for stock planes, in a mod each for 512 and 1024....
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 731
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #9 on: December 02, 2021, 01:07:59 AM »

  ;)  ) that in reply #3 Carsmaster has done this work for stock planes, in a mod each for 512 and 1024....
Exactly.
1.  If  selecting 1024 textures, then put the folder "1024_MIRROR_COCKPIT_4_12_2" in your "mods" folder

2.  If selecting 512 textures, then put the folder "512_MIRROR_COCKPIT_4_12_2" in your "mods" folder

Cockpit mirror 1024
https://www.mediafire.com/file/rar3yx4wtzuy1rc/1024_MIRROR_COCKPIT_4_12_2.7z/file
  Cockpit mirror 512
https://www.mediafire.com/file/ewypm6soy91vjtv/512_MIRROR_COCKPIT_4_12_2.7z/file

Both the first and second options are for the standard clean version 4.12.2.
For additional aircraft, including modified ones, the user performs additional work independently.



Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #10 on: December 02, 2021, 01:37:00 AM »

I'm not certain here, but in numerous cases 4.12.2 files are OK for B.A.T. up to 4.1.1., meaning before mission triggers have been incorporated. For B.A.T. 4.1.2 and later, the chances of compatibility decrease...
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6029
Re: CARSMASTER_MIRROR_SD (HD)_1024
« Reply #11 on: December 02, 2021, 02:31:59 AM »

I just adapted the necessary couple lines of code to the B.A.T. 4.0 version of Main3D.class, and it works a treat! Awesome to zoom right in to the mirror and still see a nicely sharp image. And the 1024 texture doesn't seem to impose any more of a hit to frame rates than did the old 256 standard.

A keeper!

Now to check to see if Main3D.class is used by any other mod I might have; I wonder about NG_MAP, and or NG_HUD... I'll report back...
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)
Pages: [1] 2 3 4 5   Go Up
 

Page created in 0.04 seconds with 26 queries.