I want to draw text and an image on a specific position in 3D Space. The scene is rendered in 3D and I want to display a rendered 2D Text and an image on a XYZ-Coordinate.
I have the World, View, Projection Matrices from the scene and the ViewPort. I don't want to render a real 3D-Font and I also don't want to display the image with texture vertices.
I've tried some matrix multiplications with the transformation matrix and I also tried to use the basic effect as parameter for the begin-method. But non of them worked for me.
eff.World = Graph3DGame.Current.currentWorld;
eff.View = Graph3DGame.Current.currentView;
eff.Projection = Graph3DGame.Current.currentPerspective;
spriteBatch.Begin(0, null, null, null, null, eff);
spriteBatch.DrawString(Fonts.Math, "hello, world!", new Vector2(100,100), Color.Blue);
Hope anyone could help.