• Create Account

### #ActualSolid_Spy

Posted 08 December 2012 - 10:32 AM

This is Directx9, sorry, don't know why it won't let me edit the topic to change the tag -.-

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

http://i1298.photobu...ha_blending.png

This is the stretchrect code:

d3ddev->StretchRect(tilesurface1, &destrect, backbuffer, &rect, D3DTEXF_NONE);

And this is the LoadSurfaceFromFile code:

d3ddev->CreateOffscreenPlainSurface(1024, 1024, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &tilesurface1, NULL);
D3DXLoadSurfaceFromFile(tilesurface1, NULL, NULL, "Title_Screen_text1.png", NULL, D3DX_DEFAULT, 0, NULL);

I have the backbuffer format set to A8R8G8B8, and also the surface as well, but it still isn't working...

Is there something i am missing? I'm using stretchrect to draw the surface ontop of the backbuffer, is that a bad thing? please help!

### #5Solid_Spy

Posted 08 December 2012 - 10:28 AM

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

http://i1298.photobu...ha_blending.png

This is the stretchrect code:

d3ddev->StretchRect(tilesurface1, &destrect, backbuffer, &rect, D3DTEXF_NONE);

And this is the LoadSurfaceFromFile code:

d3ddev->CreateOffscreenPlainSurface(1024, 1024, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &tilesurface1, NULL);
D3DXLoadSurfaceFromFile(tilesurface1, NULL, NULL, "Title_Screen_text1.png", NULL, D3DX_DEFAULT, 0, NULL);

I have the backbuffer format set to A8R8G8B8, and also the surface as well, but it still isn't working...

Is there something i am missing? I'm using stretchrect to draw the surface ontop of the backbuffer, is that a bad thing? please help!

### #4Solid_Spy

Posted 08 December 2012 - 10:27 AM

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

http://i1298.photobu...ha_blending.png

This is the stretchrect code:

d3ddev->StretchRect(tilesurface1, &destrect, backbuffer, &rect, D3DTEXF_NONE);

And this is the LoadSurfaceFromFile code:

d3ddev->CreateOffscreenPlainSurface(1024, 1024, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &tilesurface1, NULL);
D3DXLoadSurfaceFromFile(tilesurface1, NULL, NULL, "Title_Screen_text1.png", NULL, D3DX_DEFAULT, 0, NULL);

I have the backbuffer format set to A8R8G8B8, and also the surface as well, but it still isn't working...

Is there something i am missing? I'm using stretchrect to draw the surface ontop of the backbuffer, is that a bad thing? please help!

### #3Solid_Spy

Posted 08 December 2012 - 10:24 AM

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

http://i1298.photobu...ha_blending.png

I have the backbuffer format set to A8R8G8B8, and also the surface as well, but it still isn't working...

Is there something i am missing? I'm using stretchrect to draw the surface ontop of the backbuffer, is that a bad thing? please help!

### #2Solid_Spy

Posted 08 December 2012 - 10:22 AM

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

http://i1298.photobucket.com/albums/ag46/Solid_spy/alpha_blending.png

I have the backbuffer format set to A8R8G8B8, and also the surface as well, but it still isn't working, please help!

### #1Solid_Spy

Posted 08 December 2012 - 10:21 AM

I'm trying to add a surface to another surface, however the alpha doesn't blend, it just shows as white pixels.

For example:

<a href="http://s1298.beta.photobucket.com/user/Solid_spy/media/alpha_blending.png.html" target="_blank"><img src="http://i1298.photobucket.com/albums/ag46/Solid_spy/alpha_blending.png" border="0" alt="Photobucket"/></a>