Special Aircraft Service

Please login or register.

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

Author Topic: Widened FoVs for tube sights  (Read 1517 times)

0 Members and 1 Guest are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 3783
Widened FoVs for tube sights
« on: December 16, 2021, 11:44:58 AM »

NOTE, Nov 7, 2022: The Ki-43-Ia and -Ib now have a fully new tube sight implementation. If you use the new mod (available in the thread below), the 4 cockpit classfiles here will be superseded, and you will be instructed in the new mod's readme.txt on how to deal with them. The new Ki-43 mod is available in this thread:

https://www.sas1946.com/main/index.php/topic,69779.0.html

------------------------------------------------------------------------

UPDATE, Dec 17, 2021: Second release, adding two more cockpits and after checking out/refining ALL cockpits that are present in my BAT 4.0 game. There were several sights overlooked and not altered in their FOV setting; they're correct now. Updated readme contents below.

------------------------------------------------------------------------

This mod widens the field of view for the telescopic/tube sight view, suitable for the wide screens of today (optimized for 16:9). Note that this does not widen the FOV of the sight picture itself; its true field of view remains unchanged. Rather, the whole screen FOV is widened, which shrinks the image scale as a whole, the purpose being to not clip off the top and bottom of the circular field of view.

There are a few planes not present in my BAT 4.0 game, and hence not tested. If you find any problem, let me know so that a fix can be issued in short order. I managed to compile the R_5 and R_5_SKIS cockpits, but the new 6dof limits appear to remain unchanged, leading me to suspect these 'pits are not being 'seen' by my game.


Get it here:

https://www.mediafire.com/file/rkl0pktn1hb9bu1/%2521_%2521_%2521_Tube_Sight_Cockpits.7z/file


From the included, updated readme file:


Tube Sight FoV fixes (plus VSI and 6dof limits, while I'm at it), by WxTech

Second release, after checking out and refining all cockpits I can. There are a few that are not in my BAT 4.0 game, and hence cannot be tested by me.


This mod does not address any model or texture issues. ONLY the classfiles have been worked on.

The B.A.T. 4.1.3 code is the basis of this work. It should be OK for 4.12 through the latest B.A.T.

Most players these days use 16:9 aspect monitors--if not wider still. Virtually no one uses the outmoded 4:3 screen format. The tube sight FoV values of 31 degrees from the old days are no longer appropriate, because the top and bottom portions of the sight view become clipped. This mod alters the cockpit classfiles for those cockpits having telescopic/tube sights. Where appropriate, which is in almost all cases, the FoV has been widened from the typical 31 degrees to 45 degrees. Now the full circular field of the sight is visible for 16:9 displays. For monitors of wider aspect, there will still be clipping at the top and bottom, but at least it will be reduced.

Listed below are the cockpit class names where tube sights are in use. In the great majority I added anew the code for the setting of the 6dof limits in translation (fore-aft, side-to-side and up-down). Formerly this was absent, with the defaults specified in another base class being used. For some number of Japanese planes, the formerly far-too-crisp VSI (vertical speed) gauge response has been slowed down, bringing them into line with other such gauges. For the SBD the too-slow VSI response has had hysteresis halved.

The R_5 and the R_5_SKIS do not appear to be 'seen' by my game, the updated 6dof limits not reflecting my changes. And so I can't be sure if my alterations are as refined as I'd like.

I include in a sub-folder all the Java files. For even non-programmers who are curious, these files are readable with any text editor (like Notepad). Notepad++ is excellent, due to its automatic color formatting for easier readability.)


A5M4         6dof NEW   vspeed
CR32quater      6dof NEW
D1A1         6dof NEW   has BAD sight aiming problem
D3A1               vspeed
D3A2         6dof NEW   vspeed
D4Y2               vspeed
D4Y3               vspeed
DuckFront      6dof NEW   sight view compromised by cowl scoop
DXXI         6dof NEW
DXXI_SARJA3_EARLY   6dof NEW
DXXI_SARJA3_LATE   6dof NEW
F1M         6dof NEW   vspeed  (seems to be no such plane in BAT 4.0)
F1M2_P         6dof NEW   vspeed
F2A2
Fokker_DXXIII      6dof NEW
FokkerCX      6dof NEW
FokkerG1      6dof NEW
Hawk_3         6dof NEW
He45         6dof NEW   (seems to be no such plane in BAT 4.0)
I_15Bis
I_16TYPE5      6dof NEW
I_16TYPE6      6dof NEW   (in BAT 4.0 has a reflector sight!)
KI_27KO         6dof NEW   vspeed
KI_27OTSU      6dof NEW   vspeed
KI_43         6dof NEW   vspeed
KI_44_II_ko      6dof NEW   vspeed
KI_51_I               vspeed
Ki10         6dof NEW   vspeed
Ki30A         6dof NEW   vspeed
Ki51         6dof NEW   vspeed
Koolhoven_FK51      6dof NEW
M33         6dof NEW   (seems to be no such plane in BAT 4.0)
M33_F         6dof NEW   (seems to be no such plane in BAT 4.0)
M33_F_Front      6dof NEW   (seems to be no such plane in BAT 4.0)
[Me_410_Tubesight]         not present due not being altered
Naka_A2N      6dof NEW   vspeed
OS2U         6dof NEW
P_26         6dof NEW
P26         6dof NEW
PWS_10         6dof NEW
R_5         6dof NEW   not sure if modded class being read
R_5_SKIS      6dof NEW   not sure if modded class being read
R_10         6dof NEW
SB2U         6dof NEW
SBD3         6dof NEW   vspeed made a bit less slow
Shavrov_2      6dof NEW   (seems to be no such plane in BAT 4.0)
TBD1
VildebeestL      6dof NEW
VildebeestLIII      6dof NEW
VildebeestLIV      6dof NEW
VildebeestS      6dof NEW


NOTE! The F2A2 cockpit version here is, naturally, the original that has the basic tube sight. If you prefer to use my "New F2A-2 Tube Sight Mod" (available at https://www.sas1946.com/main/index.php/topic,65876.0.html), here are the 4 cockpit classfiles you MUST disable/remove here for CockpitF2A2.class:
  2A53A980634FCFE6
  03EF6498B75EE724
  5ED691C890D2BF50
  AC47259A93F4E89A



As always, this work is offered for use by any and all, for any purpose, without restriction.


WxTech
Dec 17, 2021
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 7967
  • a million fixes
Re: Widened FoVs for tube sights
« Reply #1 on: December 16, 2021, 11:35:28 PM »

That's definitely a worthwhile undertaking I'll keep an eye on :)

You are building on cockpit classes from BAT, correct?
That's quite important to know since a lot of cockpits have been manipulated by me in regards of the NormZNs values, to avoid or reduce clipping. It's a thing with a lot of early war open cockpits and biplanes, which also often have the tube sight.
Also, quite a few have been touched 3d wise. So if you use any other sources, there may be incompatibilities - the other way around as well.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 3783
Re: Widened FoVs for tube sights
« Reply #2 on: December 17, 2021, 05:05:57 AM »

As the foundation, I used the decompiled 4.13 (or is it 4.13.4?) classes Mike has made available. You could peek at the Jave I've supplied to see if there is any difference in respect of known and latest alterations...
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: 3783
Re: Widened FoVs for tube sights
« Reply #3 on: December 17, 2021, 06:36:51 PM »

UPDATE, Dec 17, 2021: Second release, adding two more cockpits and after checking out/refining ALL cockpits that are present in my BAT 4.0 game. There were several sights overlooked and not altered in their FOV setting; they're correct now
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: 3783
Re: Widened FoVs for tube sights
« Reply #4 on: December 17, 2021, 09:23:38 PM »

Yet another little update, later on Dec 17.

I neglected to include the CockpitF2A2.class files because of the existence for a while now of my improved tube sight mod for this plane (available at https://www.sas1946.com/main/index.php/topic,65876.0.html).

But upon reflection, I figured that some folk might prefer the simpler stock sight, with its treatment as commonly implemented. And so I now include those classfiles here for the stock sight in the F2A-2. If you use my newer, more sophisticated mod, instructions on the 4 files to remove from this mod are given in the included readme file.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 7967
  • a million fixes
Re: Widened FoVs for tube sights
« Reply #5 on: December 19, 2021, 07:47:48 AM »

As the foundation, I used the decompiled 4.13 (or is it 4.13.4?) classes Mike has made available. You could peek at the Jave I've supplied to see if there is any difference in respect of known and latest alterations...

You say this as if anyone had the history of it in their head...

So it is indeed a potentially conflicting mod.
Such bit-by-bit comparison is as much work as doing it myself in the end.

You could just as easily use unhashed BAT classes. They aren't even delivered hashed anymore.
4.13 is a base for not very much around here, mod wise.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 3783
Re: Widened FoVs for tube sights
« Reply #6 on: December 19, 2021, 10:31:31 AM »

All planes in BAT 4.0 tested out fine. At least, no conflicts occurred that I could discern. Maybe there are some different values here and there, or a lacking feature?

To allay any fears, if someone could pack up the latest BAT classes so I could download 'em, I'll do it all over again using those.
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: 3783
Re: Widened FoVs for tube sights
« Reply #7 on: December 22, 2021, 10:23:02 PM »

Vamps,
I just realized that I incorrectly stated that I used the 4.13 classes as the basis for this mod. Actually, I DID use the classes from B.A.T. 4.1.3.

The darned similarity in numbering has tripped me up a couple or more times!

Anyway, You can trust the classes here in this mod, provided the B.A.T. 4.1.3 stuff is still relevant. I edited the text accordingly in the first post. (As I write this, the readme text in the mod archive still reflects the version error, as I've not done an update just for this.)

Sorry for the confusion!

Glenn
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 7967
  • a million fixes
Re: Widened FoVs for tube sights
« Reply #8 on: December 23, 2021, 04:09:35 AM »

Now that also makes a lot more sense overhead version wise :)

Just be careful with any cockpit classes. Take the latest ones from 4.2.x, as I continuously edit around in them whenever I encounter a fixable clipping issue.

Not so much a problem in stock planes with original cockpits, but with many modded plane slots - these may share a stock cockpit class which then may carry the edit necessary for a modded slot.
Pages: [1]   Go Up
 

Page created in 0.344 seconds with 24 queries.