XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

MDX: Cant get Sprites on top!

Last post 02-21-2008 4:59 PM by Haimoimoi. 1 replies.
  • 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 In reply to

    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
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG