Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm using VS2010 with XNA 4.0 and I'm trying to load an FBX model with texture on the screen. The problem I'm having is this error:

Missing Asset: C:\Users\ChocoMan\Documents\Visual Studio 2010\Projects\XNAGame\Documents\Visual Studio\Projects\XNAGame\XNAGameContent\Textures\texture.bmp

but the actual path to the texture is

C:\Users\ChocoMan\Documents\Visual Studio\Projects\XNAGame\XNAGameContent\Textures\texture.bmp

Also, when I linked the texture in Maya, I used the above address.

Does anyone know why VS is looking for an incorrect address that doesnt exist?

share|improve this question
    
Your model probably has relative path. –  Kikaimaru Aug 28 '12 at 16:08
    
When you modeled your file, was the texture located in a different folder than the model? If so, you need to keep that relation. –  Mungoid Aug 28 '12 at 16:54
    
@kikaimaru can you give me an idea of a relative path? –  ChocoMan Aug 28 '12 at 21:25

1 Answer 1

up vote 0 down vote accepted

Figured it out. In Maya (since I didnt create the model myself), I had to import the model, save it as an *.mb file, delete all but the default materials, apply the default lambert materials back to the model (because removing the texture made the model green), apply a new texture (phong in my case) and attach the UV map back on it, then export it again like normal into XNA. Now the model loads plus it's textured.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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