Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got this, when I tried to load a model during runtime

XNA Framework Reach profile requires mipmapped Texture2D sizes to be powers of two, but this Texture2D is 800x800. Resize it to a power of two, or remove the mipmaps.

What does it mean? What do I have to do?

share|improve this question

closed as too localized by 21st Century Moose, Anko, John McDonald, Trevor Powell, ClassicThunder Apr 25 '13 at 4:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The error means what it says. What is says is what the problem is. It also tells you what to do to fix it: "Resize it to a power of two, or remove the mipmaps.". Voting to close. – 21st Century Moose Apr 24 '13 at 20:42
Like @mh01 already mentioned, the error message already explicitly gives you two options about what you can do. – Christian Apr 25 '13 at 13:32

XNA Framework Reach profile

You are using the XNA Reach profile. This is a profile designed to make your game run on as many computers as possible. It is a pared-down subset of XNA's full functionality. The alternative is the HiDef profile, which exposes all of XNA's functionality, but has stricter hardware requirements.

requires mipmapped Texture2D sizes to be powers of two

One of the requirements imposed by the Reach profile is that textures with mipmaps have to have dimensions that are powers of two.

but this Texture2D is 800x800.

Your model is using a texture. The texture is 800x800 and has mipmaps (as is usually the case). 800 is not a power of two. The closest acceptable size would be 1024 (2 to the 10th power).

Resize it to a power of two, or remove the mipmaps.

Do one of these two things.

share|improve this answer
I resized the texture to 512x512, but I still get the same error – IMX Apr 23 '13 at 19:54
That would lead me to conclude that the texture that you're resizing is not the texture which is being loaded by XNA. What file format is your model? Some models can have their textures embedded within the model file, and I've also seen models exported with absolute texture paths. Try to confirm that you and XNA are talking about the same texture data. – Cole Campbell Apr 23 '13 at 20:01
its funny because all you had to do was read the error message back. – GameDev-er Apr 23 '13 at 23:21
Be sure to re-add the texture to your project after you resize it. The texture in your content folder is a copy of the file you select to add to your project, so editing the original will not correct the problem. (Or edit the one in your project's content folder.) – Seth Battin Apr 25 '13 at 1:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.