Re: Question of Transparent Textures..



Set the pixels' alpha to 0 and enable alpha blending and the relevant TSS
setup (for FFP pixel pipeline). If you don't know some of these concepts,
then please refer to the SDK docs, they contain all the required explanation
(read on Alpha Blending).

--
Wessam Bahnassi
Microsoft DirectX MVP,
Programmer
Electronic Arts
--
In|Structurez Arabic Gamedev Community
www.instructurez.com


"JTapio" <JariTapio@xxxxxxxxxx> wrote in message
news:0KSqg.242$Ae1.205@xxxxxxxxxxxxxxxx
Hei!

I have a very good texture in my 3d space with an bordering RGB 0:0:0..
how do i set my black pixels or any other color of my own choise to "OFF"
state so that theyr not drawn when i render my program..

Please help, thank you..

PS: if you kindly know any good sites for JAVA3D or D3DX9, I would love to
receive them too..



.



Relevant Pages

  • Re: Wierd problem when alpha blitting image with text in it
    ... When the shadow is faded out, ... constant alpha is applied to the whole window. ... windows can have per-pixel but cannot have any child windows. ... So this leaves me with the image pixels being however opaque they ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Alpha Channel from mask
    ... I am not familiar with the Flash API. ... Use CreateDIBSection with a BITMAPV5HEADER as you can specify an alpha ... For all other pixels set the alpha channel to 255. ... When Flash draws itself into my buffer, it takes the pixels in my buffer ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How to deal with fully transparent ARGB pixels?
    ... GDI+ solves this by using pre-multiplied alpha images. ... resulting in final partialy red pixels. ...
    (microsoft.public.dotnet.framework.drawing)
  • RE: How to do this with fixed pipeline
    ... Try using alpha testing: set the alpha of bright pink pixels to zero, ... set up the fixed pipeline to get the texure alpha. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Unknown transparency mask color -- how to?
    ... You said anything that GDI touches gives an Alpha of 100, ... pixels GDI left untouched, and thus should be transparent, now have an alpha value of 0x0, and any pixels GDI drew will ...
    (microsoft.public.vb.winapi.graphics)