I am making a simulation with XNA 4.0.
We can display fonts but only with 2D coordinates, I need to display fonts with 3D coordinates. Please Help any technique how can i accomplish this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In XNA 4.0,
SpriteBatch.Begincan take anyEffect. You can pass in aBasicEffectwith an arbitrary set of transformation matrices (World,View,Projection) that will be used to transform your sprites, allowing you to “place” them in 3D space.The “models” that
SpriteBatchcreates (basically a quad each sprite/letter) are the same size in units as the associated bitmap is in pixels.Typically you’d treat the sprite plane as a model, and move it around using the
Worldmatrix.The blog posts here and here explain it in more detail.