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

Problem with 3D Max textures to XNA

Last post 05-13-2008 11:16 AM by Steve Hazen. 4 replies.
  • 05-12-2008 10:46 PM

    Problem with 3D Max textures to XNA

    I'm having problems bringing material textures assigned in 3DS Max to XNA.

    I've assigned a standard material to a simple box with a UVW map set to fit. I then select the diffuse color map channel and assign a Bitmap using a jpg image. I then export the scene to FBX 200611.

    Then I load the FBX file using the LoadContent() method in Game1 class and draw the ModelMesh using the Basic Effect. However, the model shows up without the textures. If I change the diffuse colors in Max, these colors are updated in XNA, but still no textures....

    I've checked to make sure the relative paths are maintained. Also, when I look at the ASCII file, the only place where the textures show up are under Type: "TextureVideoClip". Is this read by the Content Processor? Should the texture names appear under the "Material" section of the FBX file?

  • 05-13-2008 12:14 AM In reply to

    Re: Problem with 3D Max textures to XNA

    The nice way to check is to use Autodesk Motionbuilder (which loads FBX files).  If MotionBuilder doesn't see it, niether will XNA.
  • 05-13-2008 12:29 AM In reply to

    Re: Problem with 3D Max textures to XNA

    I go from 3ds Max to XNA GS using the kW X-port exporter. It's available on Sourceforge. Materials and shaders make it through just fine, and it's great to be able to write a shader to use in both 3ds Max and XNA, using the 3ds Max DirectX Material.

    http://kwxport.sourceforge.net/

    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
  • 05-13-2008 6:01 AM In reply to

    Re: Problem with 3D Max textures to XNA

    Thanks Jon, the kW X-port works. However, this exports to .X format (which is fine), but I'm wondering why the FBX format doesn't work. Since XNA supports both formats, it seems they should both work equally well with something as basic as texture assignments in 3ds Max. I've seen XNA samples that use FBX files with texture maps, so it must work....
  • 05-13-2008 11:16 AM In reply to

    Re: Problem with 3D Max textures to XNA

    I've have no trouble bringing textures from 3ds to xna using the same fbx exporter you are.

    in the ascii fbx file, you should find an address(file path) to the jpg. it usually assigns a relative path & a full path. if it's not there, my guess would be that is your prob. I wish I knew where to point you, possibly a setting in 3ds.
    Steve H
Page 1 of 1 (5 items) Previous Next