Jump to content

Recommended Posts

Hi everyone!

after few miles of scrolling .INI files and testing everything on the game

FINALY:

" Cockpit Shadows " !!

--!  enabling process is same for each plane  ! --

--!  enabling process should apply on each plane you like to have cockpit shadows on 'em  ! --

--!  Be Advised !: This "Cockpit Shadows" has some little BUGs so we all should work on it together to make it better  !-- 

It's better than nothing :D

 

* Q: How to enable Cockpit Shadows?

- A: All you need to do is to make a .INI file with the same name and right at the place your chosen plane cockpit 3D file ( .LOD ) is located.

Example: 

!! [  Cockpit file are located at the folder with the same name (most of the times)  ] !!

SHO to Viper team F-16 BLK 30 to act like a test plane :biggrin:

cpS1.jpg.52adaa3f9864d04de49170ef4599d4b4.jpg

here the plane's Cockpit 3D model is the LOD file named " Cockpit_F-16C_B30.LOD " and above of that, our personally made .INI file;

Now

Inside the .INI file we should drop this :

 

[Shadow]
CastShadow=TRUE
ShadowCastDist=5000
MaxVisibleDistance=800 

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

* you are free to change the numbers  

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

 

here's an example file which you have to change it's name to the plane's cockpit file name !

plane's cockpit file name.INI

 

*with this simple trick you can enable shadows for every .LOD file.

feel free to ask.

 

 alexis99 thanks for that little help

 

sorry for bad English :)

hope ya'll enjoy!

one love.

 

 

plane's cockpit file name.INI

Edited by muhammad
  • Like 3

Share this post


Link to post
Share on other sites

Clever. I never thought of doing that, but after all it's a LOD like everything else. Even for terrain objects the same thing applies, if we want shadows for the 300 custom ground objects, 300 such .ini files are required to be added.

The only major issue about shadow casting is that it would require cockpit 3d models without holes in them. Unfortunately many third-party and even stock cockpit 3d models feature holes, either to the front or back of the cockpit. For proper shadow casting those holes would need to be fixed, but we cannot edit LODs.

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, Menrva said:

Clever. I never thought of doing that, but after all it's a LOD like everything else. Even for terrain objects the same thing applies, if we want shadows for the 300 custom ground objects, 300 such .ini files are required to be added.

The only major issue about shadow casting is that it would require cockpit 3d models without holes in them. Unfortunately many third-party and even stock cockpit 3d models feature holes, either to the front or back of the cockpit. For proper shadow casting those holes would need to be fixed, but we cannot edit LODs.

not really a difficult thing with windows powershell script. consider only variable is the file name.

maybe we can do a script to allow auto generation of all at once

Share this post


Link to post
Share on other sites
4 hours ago, Menrva said:

The only major issue about shadow casting is that it would require cockpit 3d models without holes in them.

Yes; this is the main concern; I guess it's doable but it'll take a lot of work.  I wish we'd known about this earlier cause it has the potential to really make the cockpits look more dynamic.

Great find @muhammad !

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, sophocles said:

Yes; this is the main concern; I guess it's doable but it'll take a lot of work.

Not just that. Site rules do not allow to edit LODs and share them, either third-party and stock ones. I wish we could fix them all one by one, it'd be a game changer. I guess the concern is more about third-party ones. To share a fixed LOD for stock cockpits wouldn't worry me as much. A stock cockpit LOD with no textures is of no use, it would require the users to own the game to experience it as it's meant to be. In any case, it cannot be done so it's case closed.

Edited by Menrva
  • Like 1

Share this post


Link to post
Share on other sites

Alright , just running a quick test,your approach does work,

But as Menrva said, we need cockpit with all faces closed, his F-22 cockpit is nearest one but it still looks like there is a little problem, and for those older cockpit like F-15E's below,the problem looks more serious

For only the front panel alone, I think it is not that bad.

img00216.JPG

img00217.JPG

Edited by simonmiller416

Share this post


Link to post
Share on other sites

Well while i was testing diffrent planes before everything, i noticed that the TMF Parani Saegheh ( Iranian V tailed F-5 ) plane, has cockpit shadows in alternate way!

maybe that trick which TMF used for that plane should be helpful to fix this

in my opinion the problem is like this:

while we're in cockpit views, game can't detect the outer frame ( the plane fuselage and nose ) to make it cast shadow on cockpit 3D model! so that's why we see wrong shadows because light was passed through the outer frame instead of make the outer frame draw its shadow on the pit AND it seems like pit 3D models are some sort of transparent from outside so cockpit 3D model shadow casts from wrong side!
I THINK if we make the external view model cast shadow on the internal view model, the problem is solved then

 

I also noticed that there're some other options for LODs in Shadow section in .INI files but I still don't know much about them

  • Like 2

Share this post


Link to post
Share on other sites
On 19/7/2023 at 4:45 PM, muhammad said:

Well while i was testing diffrent planes before everything, i noticed that the TMF Parani Saegheh ( Iranian V tailed F-5 ) plane, has cockpit shadows in alternate way!

By using OpenCockpit=TRUE, it's a less than ideal solution, as it brings other side issues (with clouds for instance) as it treats the cockpit as open, much like that of a WW1 plane, thus with no canopy glass etc.

I've been thinking out of the box, and I'm wondering if shadows like in the first generation of Strike Fighters games would work in SF2 as well. Here's an example:

[Shadow]
CastShadow=TRUE
ShadowLOD=A-4B_shadow.shd
ShadowType=1

ShadowCastDist=10000
MaxVisibleDistance=400

If those statements work in SF2, it means we could develop our own .shd files to act as a LOD for the shadows of a cockpit. It's a big if and I honestly have very low expectations it would still work but, if it does, no need to worry about editing existing LODs.

Edited by Menrva
  • Like 1

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

  • Similar Content

    • By JamesWilson
      Hi,
      after seeing the TMF F-14 has wrong and inaccurate speed and fuel indicators, i found out the default Third Wire F-14 has working and accurate ones, but i dont wanna use it cause the TMF Tomcat is better and the cockpit too more realistic too, so can you switch the speed and fuel indicators on the TMF F-14 with the default Third Wire F-14? And for fuel too? Do you need to 3D model and/or do something else other than edit some text files?
       And is it or it's not possible to do?
      Down here are 2 pictures from the correct cockpit in the default Third Wire F-14:


      And 2 from the TMF F-14 (the inaccurate one):


       
      Thanks for helping.
    • By JamesWilson
      Hi everyone,
      I just noticed that the speed indicator in the F-14 Tomcat by TMF (TheMirageFactory) only shows up to 800 kts, and the Mach indicator does not move, not letting you know the speed of the aircraft if you have your HUD turned off.
      As you can see down here, i'm at Mach 2.23, but the indicator only shows 800 kts and doesn't go above. Obviously it adapts to my altitude, so if i'm higher, then the IAS is lower, but still should move, making it impossible flying at high speed without HUD turned on as i have it down here:

      Another issue, maybe even worse than the previous one, is that the fuel indicator shows wrong numbers, or as i may think, it shows "a number less". For example: if i have 20000 pounds of fuel left, it should show 20000, but it shows 02000. This is a theory on how it works, not confirmed, and i'm gonna explain you why i think it is like that:
      I hardly think i truly have 2000 pounds of fuel left, cause i choose Fuel 100% and tried climbing and flying for a long time with full afterburner, and the numbers slowly started going down, even reached the point of burning the engine at Mach 2.30and the fuel wasn't gone yet, it showed i had like 00700 left, so i presume it's 20000 in reality, otherwise i would have been out of fuel in no time, since it's a quantity even under the bingo quantity, but i flew for minutes and minutes in full afterburner, and at 8x speed, so. Speaking of Bingo, there's no bingo indicator.
      Here's a picture of the fuel indicator:

      I tried the default F-14 cockpit, and even if that one shows correctly both speed and fuel indicators and even if it's a great cockpit, i personally like more and find more realistic and immersive the TMF one.
      In the end, since these two indicators are crucial, especially for flying without HUD, and the fuel indicator especially, since there's no way to know how much fuel you have left even with HUD turned on other than the cockpit indicator.
      So, what i'm asking is:
      Is there a way to fix these? A mod that remakes the indicators? Or another cockpit that is not the default one that i can use to swap this one?
      Thanks in advance for helping me.
    • By LaoHu
      Would it be possible to put a photograph in your cockpit? Often pilots are shown to have a photo of a loved one inside their cockpit attached to the dashboard to remind them of home, give them inspiration, etc. Would it be possible to stick one in a cockpit through some kind of texture edit or something? 
    • By JaneyBananey
      Howdy y'all!
      So, I installed Wings Over Europe via Steam, promptly updated it to the October 2008 patch, and fixed the stuttering by using the ENB patch for Skyrim (of all things). I also cribbed the DDraw.dll from the DgVoodoo install, which prevented the game crashing when pressing escape at the end of a mission. A couple of things to note here:
      - The renderer indicated in the options menu is not ENB, but my GPU still. Despite this, the game runs perfectly fine.
      - I turned the shadows down from Unlimited to High as I read on a forum post that this could help with z-fighting, but this did not solve the issue. I will turn it back up to Unlimited if it is all the same.
      - There are absolutely no other graphical issues in the sim what so ever, no matter the aircraft, time of day, or weather.
      The issue I am describing in the title appears like so in sim. I took three screenshots so you could see the way the dark boxes flicker on surfaces. It is not just aircraft, either, but also terrain. It seems to get culled in a circle as I turn my head with TrackIR:



      As you can see, my wingman gets periodically eaten by this weird black blob. I am at a loss as to how to fix it, and if it cannot be fixed, that's completely understandable given the Biblical age of the engine. Thanks in advance!
    • By MrMaxterX


      View File Simple Cockpit - Fly the unflyable aircrafts
      This mods allows you to fly the following aircraft (doesn't include all the variants);
      Many thanks to Trevisol for making the mod and sending me the file with his permission to download
      A-1 A-6 AN-12 B-57 F-104 E-2C EA-6B F-84F IL-28 J-6 MIG-15 MIG-17 MIG-19 MIG-21 MIG-23 MIG-27 Mirage 5 Spitfire SU-7 TU-16 TU-22 TU-95 Vampire Vautour YAK-23 YAK-38 This mod is just a simple addon that adds a few pre existing cockpit into a lot of aircraft that was not allowed for the player to use, only the AI.
      Since it's lightweight, it use the already included cockpits of the F-8, P-51, Mirage and a few other aircraft, with a couple of changes here and there;
      Submitter MrMaxterX Submitted 12/14/2022 Category Jet Cockpits  
×

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..