I'm making this:
I want to make the black area transparent, and I need help. What I'm doing is drawing the 3D red cylinder in a texture, using setRenderTarget. The texture is created this way:
To draw on it I use:
D3DXCreateTexture(_scene.device, _width, _height, 1,
D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, _texture);
The I use a ID3DXSprite instance to draw the texture in the screen, so it is placed in the right level of the graphical interface.
_device.Clear(0, nil, D3DCLEAR_TARGET or D3DCLEAR_ZBUFFER, _backColor,
Setting the back color's alpha = 0 doesn't make the background transparent, as I supposed. Is there a way to make the rendering texture's background transparent? I have no clue what to do.
I would really appreciate any help on this.