Jump to content

  • Log In with Google      Sign In   
  • Create Account


We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.

Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Member Since 22 Jun 2012
Offline Last Active Jul 16 2012 07:17 AM

Topics I've Started

[Dx8] Texture & Blending

22 June 2012 - 03:12 PM

Hi all, (and sorry if my english is bad).

I develop a game in Vb6 with directx8, now I'm stuck on a problem and I don't know if it's correctable.
To explain my problem, I create textures in format A8R8G8B8 (32bits) and filled this with preloaded textures (png).

The problem is that the generated texture doesn't display a correct rendering. For example, if I draw something with transparent pixels, DirectX blending what I draw with the background color (transparent black) and so the texture rendered is darker than it should be.

I can't desactivate alphablending. So I tried different operation of blending (also srcblend and destblend) and I haven't found solutions..

You can download here the source who reproduce my problem and see here an image of the problem.

Thank for any help.

Edit : You can see here exactly le same problem, but he hasn't found a real solution.