Controlling TGA transparency with .mat file
#1

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]
Reply
#2

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.
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: