Transparency Effects??

Darc

Regular
Joined
Apr 18, 2003
Messages
89
I'm trying to make a partially transparent image with Direct3d 9, just basic transparency. No alpha-blending etc. Any help? I've tried searching (no luck) but I need it for a Science Project ASAP...
 
oh, and I'm also looking at how to billboard images (these are going hand in hand) the MS DX SDK is useless...
 
try this

device.RenderState.AlphaBlendEnable = True
device.RenderState.SourceBlend = Blend.SourceAlpha
device.RenderState.DestinationBlend = Blend.InvSourceAlpha
device.TextureState(0).AlphaArgument1 = TextureArgument.TFactor
device.RenderState.TextureFactor = Color.FromArgb(alpha, 255, 255, 255).ToArgb

set the parameter alpha from 0 to 255 to set trasparency
hovever the best method remain pixel shader
 
just put output register channel alpha at 0 or 1.
I think that you must use alphatest and disable when alpha=0 or 1.
trasparent requires alphatest or alphablend to
 
to use pixel shader there are a lot of things to know before.
Do you know how use pixel shader and alphatest?
 
I'd like to give you link to my website but forums administrator don't want that I put my link explicit in the forum.
bye
 
dont worry about it,

in my opinion they just dont want you giving links at the wrong place and at the wrong time,, they dont want you going around saying "visit my website",

but in this particular case, you're helping me out by giving the link, so (in my perspective) i believe that they wont get mad at you for giving the link :)


either way, its in your signature :-D

admins/moderators: please tell me if what i said above was wrong
 
Posting a link in response to a valid question is not and never has been a problem or something that the board moderators have attempted to prevent.
The issue was posting a link as the 1st post in a new thread.
 
Back
Top