Jump to content
Sign in to follow this  
Menrva

Unused Blending Operations

Recommended Posts

These are unused but working BlendOp options as found inside the GraphicsEngineDX10.dll:
MODULATE_AND_ADD_SRC
MODULATE_AND_ADD_DST
MODULATE_MUL_2
MODULATE_INV_SRC
MODULATE_INV_DST

My discovery was dictated by my hunger of finding a proper solution to the DTV filter which does not work properly in-game with night environments, especially with the much darker nights of my realSKY mod. Below you'll find a comparison between stock filter material data and the custom one using another BlendOp:

Stock MODULATE, day

img00003.thumb.JPG.3158018eb2b409617c2287a09aca4c3d.JPG

Stock MODULATE, night

img00004.thumb.JPG.0ecf1514a72b40196db3d56dfb79ebc2.JPG

 

Unused MODULATE_MUL_2, day

img00006.thumb.JPG.a5588d78bdd5bcb4c2c360195e5d741d.JPG

Unused MODULATE_MUL_2, night

img00007.thumb.JPG.75db368044d7bdda1e2da2b913b1edca.JPG

 

The main drawback of MODULATE_MUL_2 is that it doubles the MODULATE option, so at day the image is lightened too much than the stock MODULATE. Mind you, the screenshots were taken with the realSKY mod on Unlimited settings, so the post processing effect adds bloom to already bright areas. However, at night MODULATE_MUL_2 brings a big improvement as you can finally see the ground and its objects more easily.

PS: Please admins, pin this topic. The unused BlendOps I found work just fine, and may be useful to other modders willing to experiment with them. 

  • Like 4
  • Thanks 2

Share this post


Link to post
Share on other sites

those were there since day one IIRC, just modulation options built in, I was fiddling with those for some different trees graphics blending options for soem test treemods back when, never found them usable, nice to see those actually do have some use on certain materials/textures

  • Like 1

Share this post


Link to post
Share on other sites
9 hours ago, Stary said:

nice to see those actually do have some use on certain materials/textures

Though it's not perfect, at least it seems it's an improvement for night missions. I wonder if the DTV could be improved via shader. By default TW makes use of twColor1.FX. However, it seems in the game files there is an unused FltDTVFilter.FX shader. It doesn't work but I wonder if the code was a work in progress by TK. The game does not feature true IR images so black and white FLIR still is not a thing.

  • Like 1

Share this post


Link to post
Share on other sites

MODULATE_INV_DST has cool potential ;-)

img00003.thumb.JPG.28b2f92cbff485528d926eee577a626a.JPG

img00004.thumb.JPG.3e00390c4f7a41667d0ee548842fa02d.JPG

img00007.thumb.JPG.d298f2576c9e6fc4434ed62ecf5acb95.JPG

img00008.thumb.JPG.0acf64e9e2291cf9beddc71f0aec62d8.JPG

img00009.thumb.JPG.495d89a4e03703dd4b19507ee3c3b528.JPG

img00010.thumb.JPG.88ee74ba56e4c0f0118e3e8278a30738.JPG

  • Like 4

Share this post


Link to post
Share on other sites

And finally MODULATE_AND_ADD_DST. Also interesting ...

img00011.thumb.JPG.6aa97c51ba5cb254c2ac2e0f5344d438.JPG

img00012.thumb.JPG.5ea167d2e798135ccdf583b1c8295a23.JPG

Share this post


Link to post
Share on other sites

And grey filter ...

img00006.thumb.JPG.209394b38632972fa0a8427bf080015c.JPG

img00007.thumb.JPG.04517be160379c7b038c9c3178ba0e46.JPG

img00020.thumb.JPG.2815c43946ba9d08d984973443e45292.JPG

img00023.thumb.JPG.87a7c43c7ad8c01d0ca96922d0f2387e.JPG

img00024.thumb.JPG.4422469eb8884a3d16b5ea652062c645.JPG

 

  • Like 9

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

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