Jump to content
  • Advertisement
Sign in to follow this  

[XnA] Need help sorting out some things with 3D

This topic is 2698 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I followed this tutorial and it worked great. But when im starting to play around with the code the first thing that hit me was that the size of the cube is 1 in all direction. I can't seem to find anything that gives it a larger size, but still a 256x256 texture can be added to it...
For me this wasnt all clear... I've tried to see where the size get's so big all of a sudden.

And another thing, i wanted to draw a string onto the screen so i called on Spritebatch.Begin(); and DrawString.
But when i tested the project the cubes was transparent on some sides and on some sides not. And when i removed the Spritebatch it went away, how do i fix this? (Is it some methods or how do you draw a string on a 3d enviroment?)

Short story
How did the cube go from size "1" to "256"? (The textures dimenisions.)
How do you draw a string in a 3D enviroment? (Without getting transparent textures)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!