I'm using Windows 7 64 bit and the 64 bit version of 3dMax 2009. I downloaded the correct version of Pandasoft.
I can't get anything but a white, untextured, material-less object by using the Pandasoft interface. Nothing I set there exports the textures to the directory where it exports the .x files.
I did eventually get the textures to work by using 3dMax's "Rendering -> Render to Texture" feature, which correctly exports a texture image file.
Then I use these lines in my program:
dbLoadObject("structure.x",1);
dbLoadImage("structure.jpg",1);
dbTextureObject(1,1);
And the object appears, complete with texture. Seems like there should be a better way though... there are all those options in the Pandasoft exporter for textures and materials and none of them, as far as I can tell, do a thing.
But I still can't get materials to export properly at all. Simple, raw textures and colors are the best I am able to do -- reflections, transparency, and so on just aren't working.
Any ideas? I'm fairly good with C++, but extremely new to 3d modeling. There's probably something I'm overlooking.
As an aside, has anybody written importers to get DirectX to import Max files as-is? Without converting them to .x? A library along those lines would be nice. Just thought of that...