All-Aircraft-Simulations
Controlling TGA transparency with .mat file - Printable Version

+- All-Aircraft-Simulations (https://allaircraftsimulations.com)
+-- Forum: IL2 MODS Download & Discussion (https://allaircraftsimulations.com/forumdisplay.php?fid=267)
+--- Forum: IL-2 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=348)
+---- Forum: IL2 MODS Discussion Section 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=292)
+---- Thread: Controlling TGA transparency with .mat file (/showthread.php?tid=53582)



Controlling TGA transparency with .mat file - taurus - 17.04.2008

The texture files I load in game dont seem to have detailed transparency alpha levels that were created in the texture file aka photoshop CS2. It is either full transparent or solid at the 50% threshold, no subtle transitions.

Could someone enlighten me on how to acheive transparency transitions with tga's in game please? That is if someone has even come across this issue before anyway.

Thanks.

P.S.

I found this in the relevant .mat file. Is it a Black/White threshold level of the alpha channel?

AlphaTestVal 0.5 // of [0.1, 0.5, 0.9]


- Guest - 17.04.2008

Maybe this:

viewtopic.php?t=2548&highlight=

AlphaTest is threshold for intensity of alpha textures, you can test it by changing values. But don’t expect miracle with il2.


- taurus - 17.04.2008

Avala Wrote:Maybe this:

viewtopic.php?t=2548&highlight=

AlphaTest is threshold for intensity of alpha textures, you can test it by changing values. But don


- taurus - 18.04.2008

It worked!

I changed the .mat from

tfBlend 0
tfBlendAdd 0

to

tfBlend 1
tfBlendAdd 1

and got

(The link is inoperative)p47_08a_workinprogress.jpg

Exactly what I needed. It will make my work in getting the panel layout correct so much easier!

Thanks again.