Thread: 3D Studio Max with .X files

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    33

    3D Studio Max with .X files

    I've tried the pandasoft exporter, and the SDK exporter, but both of them give me the same error.

    I created a box, added a gradient texture, then exported it, but when I try to load it in the game, I get an error:

    Code:
    //Loads the cube.x file into the meshbuilder.
    	if (FAILED(MeshBuilder->Load(cubename, NULL, D3DRMLOAD_FROMFILE, NULL, NULL))){
    		MessageBox(NULL, "Error: Could not load the cube. Maybe the file could not be found.",
    		"Error!", MB_OK);
    		return NULL;
    	}
    Thats a little function I made, it works fine for other models that came with the SDK, but when I try and load a model from 3DS Max, it gives me the MessageBox.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Make sure the X file version is compatible with DX9 or with the version of the DX SDK you are using. The X file format changes from time to time which unfortunately breaks past versions - even though it's not supposed to.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    33
    http://www.andytather.co.uk/Panda/directxmax.aspx

    I use that, and it says it supports DX 9, which is the sdk I'm using.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Templates and Macros plus more...
    By Monkeymagic in forum C++ Programming
    Replies: 8
    Last Post: 01-20-2007, 05:53 PM
  2. using classes
    By krazykrisi in forum C++ Programming
    Replies: 9
    Last Post: 11-22-2006, 10:41 AM
  3. 3D Studio Max
    By Liger86 in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 03-07-2003, 03:21 PM
  4. 3D Studio Max Problems... Again...
    By CumQuaT in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-05-2002, 08:27 PM
  5. Header files in visual studio
    By Shadow12345 in forum C++ Programming
    Replies: 1
    Last Post: 03-18-2002, 11:20 AM