Justin573416

I hope I'm in the right forum, and I apologize if this question has been asked before. I've tried searching for an answer to this question but so far have turned up nothing. Here's my problem: I've downloaded XNA and tried to do a tutorial. The tutorial starts with creating SpaceWar from a template. When I run it without any modifications I get the error

The graphics card does not support mipmap textures. Specify 1 for the number of levels.\r\nParameter name: numberLevels

Here's my two problems

1. I can't for the life of me find where the numberLevels parameter is specified, so I can't change it to 1.

2. My graphics card is a Radeon 9250, which has controls for how to handle mipmaps, so I have to assume that it actually does support mipmaps.

So I'm not sure how to get around this issue that as far as I can tell I shouldn't be getting in the first place. Has anybody else run into this or have any ideas I'm new to XNA, and game programming in general but not to programming (I've been coding professionally for a few years). The exception happens on Line 402 of EvolvedShape.cs (and if I try to bypass the line it happens again on line 406). Below is the stack trace.

System.ArgumentException was unhandled
Message="The graphics card does not support mipmap textures. Specify 1 for the number of levels.\r\nParameter name: numberLevels"
Source="Microsoft.Xna.Framework"
ParamName="numberLevels"
StackTrace:
at Microsoft.Xna.Framework.Graphics.TextureCube.CreateTexture(GraphicsDevice graphicsDevice, Int32 edgeLength, Int32 numberLevels, ResourceUsage usage, SurfaceFormat format, ResourceManagementMode resourceManagementMode)
at Microsoft.Xna.Framework.Graphics.TextureCube..ctor(GraphicsDevice graphicsDevice, Int32 edgeLength, Int32 numberLevels, ResourceUsage usage, SurfaceFormat format, ResourceManagementMode resourceManagementMode)
at Microsoft.Xna.Framework.Content.TextureCubeReader.Read(ContentReader input, TextureCube existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
at Spacewar.EvolvedShape.Render() in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\Evolved\EvolvedShape.cs:line 402
at Spacewar.SceneItem.Render() in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\SceneGraph\SceneItem.cs:line 325
at Spacewar.SceneItem.Render() in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\SceneGraph\SceneItem.cs:line 331
at Spacewar.Screen.Render() in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\SceneGraph\Screen.cs:line 82
at Spacewar.SelectionScreen.Render() in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\SelectionScreen.cs:line 265
at Spacewar.SpacewarGame.Draw(GameTime gameTime) in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\SpacewarGame.cs:line 294
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.Run()
at Spacewar.Program.Main(String[] args) in C:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\MySpacewarWin2\MySpacewarWin2\Program.cs:line 16

TIA, Justin



Re: XNA Game Studio Express Error: The graphics card does not support mipmap textures

Shawn Hargreaves - MSFT

It looks like your card doesn't support mipmaps specifically for cubemap textures, although it will for other kinds of texture. That's really odd - I've never heard of a card with this limitation before!

Unfortunately, I think updating the SpaceWar game to avoid this problem might be quite a major job especially if you're just getting going learning game development. You'd have to find which source asset it is trying to load, and edit that (most likely it will be a .dds file) to not include mipmaps.

I don't suppose you have any way of getting access to a machine with a different card that might not have this limitation Also make sure you're running the latest drivers, just in case this is a driver issue rather than a real hardware problem.






Re: XNA Game Studio Express Error: The graphics card does not support mipmap textures

Justin

Thanks. That's kindof frustrating. Unfortunately I had the lack of foresight to buy a Dell with, as far as I can tell, no AGP or PCI Express slot (they all look like PCI to me) so my choice of video cards is a bit limited. This card was the best I could find at the time, which was about a year ago and was miles ahead of what came in it. I did make sure the video drivers were up to date.

I've been looking for an excuse to build a new machine anyway. No more Dells. Aside from the wacky hardware I'm not impressed with their support. Thanks again.