MDX: Cant get Sprites on top!

Last post 02-21-2008, 4:59 PM by Haimoimoi. 1 replies.
Sort Posts: Previous Next
  •  02-14-2008, 2:19 AM

    MDX: Cant get Sprites on top!

    im using managed directx 9.0, and it seems that no matter what i do, i cannot get sprites to appear on top of any type of primitive that my game draws. im using direct3D's sprite with .Begin, .Draw, .End and everything i need for the sprites (not using directdraw), and TransformedColored vertices in a VertexBuffer (they use Vector4 for position). I have done anything i could with Z values on both primitives and sprites without making them disappear, and no matter which is a higher value than the other, my primitives will always cover my sprites.

    do i have to resport to using TransformedTextured VertexBuffers instead of sprites?

    (this is all in the context of a user interface, by the way)
  •  02-21-2008, 4:59 PM

    Re: MDX: Cant get Sprites on top!

    Have you tried disabling the z buffer renderstates altogether while rendering your sprites?
    Rick Hoskinson
    Microsoft XNA Developer Connection
View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback