XNA: draw a sprite in 3d, is that possible?
- by Heisenbug
since now I always used sprited to draw in 2D:
spriteBatch.Draw(myTexture, rectangle, color);
(I suppose the texture is binded internally to 2 triangles and then scaled.)
Now, I'm porting my game in 3D and I have to draw several planes (walls, floor, roof,..). Do I need to manually binding a texture to a geometry (for example using VertexPositionColorTexture with VertexBuffer and IndexBuffer), or is there any simpler way to do that?
I'm looking for something like spriteBatch.Draw with the rectangle clip specified in 3d space:
spriteBatch.Draw(myTexture, rectangleIn3D, color);