Sprites, Come see the amaising invisible Sprites

rifter1818

Well-known member
Joined
Sep 11, 2003
Messages
255
Location
A cold dark place
Im having trouble rendering with sprites

device.clear(....)
device.beginscene()
sprite.begin(SpriteFlags.AlphaBlend)
sprite.draw2d(Texture,Rectangle.Empty,new Rectangle(0,0,100,100),new Point(),Color.Black)
sprite.end()
device.endscene()
device.present()

Simple enough render sequence but the sprite is no where to be found. (What i want is to render a texture with Black Transparant) Help please?
Edit Directx 9.0C
 
My Bad

The Sprites do work its just that the color supplied is more like Lighting than Transparancy, So i guess the next question is how to apply transparancy to a texture, as far as i can tell the way to do it is to get the surface of the texture make a copy the use UpdateSurface to update the texture surface using the copy while applying a color key, but my attempt to do so failed to make the color transparant i will post code shortly but im without internet right now so it may take a while.
 
Back
Top