Texture2d in 3d

I’m trying to display 2d sprites in 3 dimensions. For this I use view, projection and world matrix. I finally do this, using BasicEffect and setting it to spriteBatch effect. All work correctly, but sprite reflected horizontally and vertically. Up vector on view matrix is equal to Vector3.Up, scale is Vector3.One, Rotation – Vector3.Zero. What I should try to solve this?

Sorry for my English, please.

Are you using billboarding or do you want the sprites to be 3D objects which maintain their perspective?

This would help clarify your intention.

3D Object || Billboarding


Oh and hi @Kushanov, Welcome to the Community!

Happy Coding!

Hi, thanks.

I want the sprites to be real 3d object, that can rotate and scale, but texture for some reason reflected in two axes at the same time

SpriteBatch billboards in a 3D world - Shawn Hargreaves Blog - Site Home - MSDN Blogs (archive.org)

This might be what you are looking for, I did not check the code but the title fits. it even includes billboarding examples too.

1 Like

I am very grateful to you, it describes a problem very similar to mine and everything is detailed and clear.

1 Like