Animated texture: fades to invisible and back

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Animated texture: fades to invisible and back

Post by Swaffy »

I have messed with animated textures before. I made a seizure-inducing texture for my Stg 44.

Do the animated textures (".bik" format) allow transparency? I want to make a vehicle texture that fades from visible, to transparent, then fades back to visible.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Animated texture: fades to invisible and back

Post by Apache Thunder »

Currently the only way to get alpha working for BIK textures ingame is to use the destblend commands in the RS shader for the material using the BIK texture. You may either try and keep the alpha layer on export to BIK or replace it with black. Either way I think the end effect of the blend commands are the same. ;)

Code: Select all

transparent true;
blendSrc DestAlpha;
blendDest one;
This may present some issues with larger meshes depending on your fog settings and view distance. But for smaller scale things like perhaps animated displays, it should work just fine. though note that there may be a slight alteration of the color/appearance of the texture as a result of using this mode of transparency.
ImageImageImage
I have cameras in your head!
Post Reply