Darc Posted February 15, 2004 Posted February 15, 2004 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... Quote
Darc Posted February 15, 2004 Author Posted February 15, 2004 oh, and I'm also looking at how to billboard images (these are going hand in hand) the MS DX SDK is useless... Quote
RobyDx Posted February 17, 2004 Posted February 17, 2004 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 Quote Come to visit
ThePentiumGuy Posted February 17, 2004 Posted February 17, 2004 No alpha-blending etc. robyDx: I believe that the code you posted is alphablending, however, im interested in the Pixel Shading method you mentioned :) Quote 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
RobyDx Posted February 17, 2004 Posted February 17, 2004 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 Quote Come to visit
ThePentiumGuy Posted February 17, 2004 Posted February 17, 2004 lol.. could u explain that a little more please? im new to directX thanks Quote 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
RobyDx Posted February 17, 2004 Posted February 17, 2004 to use pixel shader there are a lot of things to know before. Do you know how use pixel shader and alphatest? Quote Come to visit
ThePentiumGuy Posted February 17, 2004 Posted February 17, 2004 nope lol i started directx like last week edit: (i meant direct3d) Quote 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
RobyDx Posted February 17, 2004 Posted February 17, 2004 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 Quote Come to visit
ThePentiumGuy Posted February 17, 2004 Posted February 17, 2004 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 Quote 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
RobyDx Posted February 17, 2004 Posted February 17, 2004 the only problems that I'm italian and so my website. I must go out good bye Quote Come to visit
ThePentiumGuy Posted February 18, 2004 Posted February 18, 2004 thats not a problem :-), there's always online translators to translate web pages Quote 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
Administrators PlausiblyDamp Posted February 18, 2004 Administrators Posted February 18, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.