3D Studio Max with .X files

This is a discussion on 3D Studio Max with .X files within the Game Programming forums, part of the General Programming Boards category; I've tried the pandasoft exporter, and the SDK exporter, but both of them give me the same error. I created ...

  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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    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, 04:53 PM
  2. using classes
    By krazykrisi in forum C++ Programming
    Replies: 9
    Last Post: 11-22-2006, 09:41 AM
  3. 3D Studio Max
    By Liger86 in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 03-07-2003, 02: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, 10:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21