Jump to content
Xtreme .Net Talk

Recommended Posts

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

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

Posted

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

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...