XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

Having trouble with Maya models

Last post 08-26-2008 6:47 PM by jwatte. 3 replies.
  • 08-24-2008 3:55 PM

    Having trouble with Maya models

    Whenever I export something I made in Maya and then add it as a link in my game, I lose all the details when I start up the game, like the toon effects I added and stuff I painted on it.
  • 08-24-2008 5:35 PM In reply to

    Re: Having trouble with Maya models

    XNA doesn't support those kinds of things with it's 3D model importer. It only imports polygonal geometry, and the textures associated with the model. You'll have to use a DirectX shader to get toon shading, and figure out another way to do paint effects.
  • 08-26-2008 1:59 PM In reply to

    Re: Having trouble with Maya models

    As Erglegrue has mentioned, the toon effects you applied do not export with your model. You will have to get or code your own shader and use it with XNA. As for your texture you painted, correct me if I'm wrong, but I do believe you need to add the texture you applied on it to the Content directory where you model is so it can read it. If that doesn't work it's also possible you didn't project your texture properly onto your model.
  • 08-26-2008 6:47 PM In reply to

    Re: Having trouble with Maya models

    I do believe you need to add the texture you applied on it to the Content directory where you model is so it can read it

    That's not necessary (the importer will follow an absolute path to find the texture), but the problem is that paint effects in Maya need to be baked to texture and added as a plain vanilla diffuse map before the Maya FBX export to XNA will recognize it.

    The Maya .X exporter can also be used, but it doesn't support DirectX shaders, so it, too, is limited to a single diffuse color map.

    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
Page 1 of 1 (4 items) Previous Next