IES 190's shadow bug

IL-2 Modding help (not 3D modding):
Forum rules
IL-2 Modding help (not 3D and mapping help).
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

IES 190's shadow bug

Post by dr strangelove » Fri Oct 11, 2019 9:15 pm

Just a call out to IES crew.
I see there is a CF shadow issue throughout 190's while in cockpit,
i can fix this issue , i have had to do this with another project some time back
will post back here when finished
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

Re: IES 190's shadow bug

Post by dr strangelove » Sun Oct 13, 2019 6:51 am

good news
ive now fixed this issue,
that is
all Shadows display correctly in & out the cockpit at all times + the ejectable canopy still functions correctly
the only thing now is that i have to adjust the code for all the 190's
User avatar
Mick
Posts: 835
Joined: Fri Jun 10, 2016 8:48 am

Re: IES 190's shadow bug

Post by Mick » Sun Oct 13, 2019 8:37 am

... nice fix ...! ;)

What was the issue like ...? ... missing parts in the external shaddow of the central part of the plane (cockpit), seen from inside the cockpit ...?

If this is the case, the 190 is not the only one plagued with this graphic bug, several 109s are in the same situation (not talking about IES 109s as I don't use them)

This is a very old bug, and I remeber the only cure was to pause the game once, and then return to the mission, and the shaddow would be OK ...

I'll check, but not sure I ever noticed this with Barnesy's 109s ... ;)
User avatar
Barnesy
Site Admin/FM Team
Posts: 1520
Joined: Wed Jun 08, 2016 10:40 pm

Re: IES 190's shadow bug

Post by Barnesy » Sun Oct 13, 2019 11:07 am

there is a shadow bug :shock: where shadow bug ? i see no shadow bug how come ?
Image
Image
User avatar
Mick
Posts: 835
Joined: Fri Jun 10, 2016 8:48 am

Re: IES 190's shadow bug

Post by Mick » Sun Oct 13, 2019 1:05 pm

... I believe the shaddow bug mentioned by Doc only shows when you are landing for ex, and from cockpit view, can see the shaddow of your plane on the ground, the cockpit part (CF.msh) is missing, if I remember well ... ;)

Will check it and post screens if it is still there in my game ... ;)
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

Re: IES 190's shadow bug

Post by dr strangelove » Sun Oct 13, 2019 4:03 pm

Get inside the cockpit & look outside
Then you will see the CF shadow Is missing

It is missing at any point , not just landing, this is due to programming, due to blister & CF on / off internal / external

Easiest way in IES to see this is to set time to 17:00 and start, look outside
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

Re: IES 190's shadow bug

Post by dr strangelove » Sun Oct 13, 2019 4:31 pm

Image
Image

All 190's
Actually it is not the shadow but the CF mesh entirely that vanishes , it only appears like its just the shadow because you only see this from inside , not outside

I have fixed this issue , i hope some are happy
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

Re: IES 190's shadow bug

Post by dr strangelove » Sun Oct 13, 2019 4:48 pm

Image

FIXED
looking from the cockpit
...& remember to look in front of you at where the 2 mg's are mounted , there too you will see missing CF, again this is now Fixed

it will take me a few days to create a patch for all 190's

Please Note: this thread refers to an IES bug only, not stock
User avatar
Mick
Posts: 835
Joined: Fri Jun 10, 2016 8:48 am

Re: IES 190's shadow bug

Post by Mick » Sun Oct 13, 2019 5:31 pm

dr strangelove wrote:
Sun Oct 13, 2019 4:31 pm
Image

... the weird thing is that we can see the shaddow of the small U shaped ladder that goes down when the canopy slides back and vice versa ...! :shock:

.
User avatar
dr strangelove
FM Modding Expert
Posts: 3479
Joined: Sun Dec 18, 2016 10:07 am

Re: IES 190's shadow bug

Post by dr strangelove » Sun Oct 13, 2019 7:24 pm

possibly because that object (stirrup ladder) is a separate object to CF,
the reason the CF vanishes in cockpit is due to coding , so everything else is as normal.

you may know similar issue/scenario Mick , when in cockpit there is code implemented to make certain objects vanish or appear once you're in cockpit ,

this is an exmple you would find in cokcpit.java or gunner.java or aircraft.java for aircraft for hiding & or displaying an object / mesh

So this example for a gun-station e.g. CockpitB17_TGunner.java
this first part makes Turret4B_D0.msh hidden once you are in the Gun station

Code: Select all

    
    protected boolean doFocusEnter() {
	if (super.doFocusEnter()) {
	    aircraft().hierMesh().chunkVisible("Turret4B_D0", false);
	    return true;
	}
	return false;
    }

then this second part makes Turret4B_D0.msh it appear again on outside / external of the aircraft

Code: Select all

    protected void doFocusLeave() {
	aircraft().hierMesh().chunkVisible("Turret4B_D0", true);
	super.doFocusLeave();
    }
Both these code parts go into the same CockpitB17_TGunner.java,


you can do this anyway round

but for the FW 190's in IES it is more complex as it using breakable / ejectable blister (& at a set speed) , this makes the coding more complicated to get right because there are more variables
Post Reply

Return to “Modding Help (not 3D)”

Who is online

Users browsing this forum: No registered users and 16 guests