Jump to content

Getting rid of milky canopy reflections?


Go to solution Solved by Hotdognz,

Recommended Posts

Posted (edited)

EDIT: I've marked Hotdognz post as a solution but to fix it completely see my following posts.

 

Is there any way to get rid of those milky reflections? To make those 3 windows look the same as all the other, e.g. the side ones or the small CPG one?

I know it might be realistic and whatever, I don't really care. I want to have fun with the bird and those constant reflections are really bothering me. They make the world look washed out too much to my liking. I've tried cleaning the cockpit glass textures and I've managed to do so, but it didn't help. It seems to be related to a reflective properties of a material and I don't know how to change that.

Anyone? Some mod? Some setting? Some guideline/tips even for how to even approach changing the material properties of the glass.

Would really appreciate it.

 

ah64d-milky-reflections.png

Edited by Havner
solution
  • Like 1

[sIGPIC][/sIGPIC]

Posted
9 hours ago, Hotdognz said:

Search for Taz 1004 clear glass, he has a fix for it

Thanks for this, it's still not 100% but it's already MUCH better. I've set the "transparency" in line 101 to 0.

Now I'll try with the canopy textures again and will play with the shader some more as there are some things that might help me still.

 

ah64d-canopy-less-milk.png

  • Like 1

[sIGPIC][/sIGPIC]

Posted (edited)

Ok, got it fully. The taz1004 mod is still required plus a small additional change in the shader file described here.

It seems to be related to some fresnel factor calculations that have been introduced in DCS at some point. There is still the older code with simple calculations. And it removes this effect completely.

--- DCS/Bazar/shaders/model/functions/glass.hlsl        2023-03-10 23:24:10.010616200 +0100
+++ DCS.mods/Taz1004_ClearGlass_v2/Bazar/shaders/model/functions/glass.hlsl     2023-11-17 15:27:04.075284600 +0100
@@ -40,7 +40,7 @@
        float4 colorMul : SV_TARGET1;
 };

-#define CALC_GLASS_FRESHEN                     1
+#define CALC_GLASS_FRESHEN                     0
 #define CALC_GLASS_TRANSMITTANCE       0 //for the future

 #include "functions/shading.hlsl"

Set CALC_GLASS_FRESHEN to 0, line 43.

IMO there should be an in-game option for that.

ah64d-canopy-no-milk.png

Edited by Havner
  • Like 3

[sIGPIC][/sIGPIC]

Posted

Well, looking through plexi from a shallow angle does have this effect. One could argue if the amount of milking is too much, but you basically removed any (plexi-)glass from the cockpit.

Which is equally wrong (at least).

  • Like 1

"Muß ich denn jedes Mal, wenn ich sauge oder saugblase den Schlauchstecker in die Schlauchnut schieben?"

Posted
9 minutes ago, Hiob said:

Well, looking through plexi from a shallow angle does have this effect. One could argue if the amount of milking is too much, but you basically removed any (plexi-)glass from the cockpit.

Which is equally wrong (at least).

Thank you for this remark, but I'd like to point at my original post, you know, in case you didn't notice.

18 hours ago, Havner said:

I know it might be realistic and whatever, I don't really care. I want to have fun with the bird and those constant reflections are really bothering me. They make the world look washed out too much to my liking.

 

  • Like 3

[sIGPIC][/sIGPIC]

Posted
1 hour ago, Havner said:

Thank you for this remark, but I'd like to point at my original post, you know, in case you didn't notice.

 

You can do whatever you like to make adjust your personal experience. No problem with this. The asking for an ingame option triggered my remark.

  • Like 1

"Muß ich denn jedes Mal, wenn ich sauge oder saugblase den Schlauchstecker in die Schlauchnut schieben?"

Posted

Here is a little bit more modified file that doesn't break external canopy rendering.

  • removes canopy shadows (as in taz1004 mod)
  • removes canopy shades (as in taz1004 mod, like transparency == 0.0)
  • removes the FRESHEN calculations (FresnelFactor, inScatterFactor) for in cockpit rendering
     

glass.hlsl

  • Like 1

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...