Can we render sprites with 3d world coordinates?

Dows it work now (in beta 2) to render sprites in 3d world coordinates and not only 2d screen coordinates


Answer this question

Can we render sprites with 3d world coordinates?

  • Nordsee

    Sorry, wasn't clear enough. I was talking about the SpriteBatch class, I know a can write my own :-)
  • Mike L Hayes

    Sure it does, all you need is a sprite class (rendering quads) in 3D space.

    The only real difference between 2D and 3D is that you can set depth on the object, and rotate it around the third axis.



  • nira

    SpriteBatch does in fact use VertexPositionColorTexture vertices internally, so you'd assume it could easily support 3d sprites. But no. They don't expose any draw methods that take 3d coordinates, and they have an intermediate internal data format that doesn't support 3d coordinates.

    If they wanted to support it, they certainly could, and you can ask for it. But if you are capable of understanding 3d concepts enough to NEED 3d sprites, then you are capable of just writing your own. It should take you about 5 minutes to write your own SpriteBatch. Couple more minutes to make it use Indexed drawing.

  • Can we render sprites with 3d world coordinates?