Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 Dec 2011
Offline Last Active Mar 14 2014 06:11 PM

#4912258 Color key'ing automatically and... sprite creating lines?

Posted by on 12 February 2012 - 07:35 AM

1) The IDirect3DSurface9::Clear is a strange problem... Be sure to call it before to render everything and in every frame (put it on your DBeginScene) and call it for every surface that you use.
2) There isn't a way to determinate what is the key color. Some images has in their header the color that will be bypassed, other images simply set that color to 0% of alpha. I'm working on a 2D engine too, and I advise you to set on every texture the background color 0xFF00FF (light purple) and uses key color 0xFFFF00FF as param in D3DXCreateTextureFromFileEx.

Good luck!