I had my share of problems with the official 3d studio max Egg-exporter, so after checking out the syntax, i thought i’d give it a try making my own exporter. Voilá, here it is. The exporter is in a very alpha stage, but it’s sorta stable, so for small projects it should suffice. I tested it only under 3dsmax 2009 and i have the feeling it won’t work in lower version, use at own risk!
EGG-File: The filename. You can past in a filepath. (TODO: needs security query, might crash if given awkward filenames)
Export EGG as: Asks for a filename and exports an EGG of the selected geometry.
Export EGG: Exports selected geometry in current filepath.
Export Materials: adds the material definitions to the EGG-file.
Export Textures: ditto for textures.
Filenames with path: Sets wether Filenames incorporate the full path or not.
Absolute Coordinates: Not doing anything so far. (TODO)
Preview EGG: Launches the Viewer after successful export.
EGG Viewer: The filepath to the panda-viewer.
Export with Definition: Export object and store Filename in User Properties.
Export All Defined: Exports all objects with User Propertie Filename. (Useful for full level exports. Careful: This is not well tested yet… )
The focus is more on material/texture support aswell as scriptability, as these are handled rather lousy by the current exporter. Values from materials are exported as precise as possible, including uv-wrapping. It also exports multimaterial objects (with a little drawback, that it breaks them up in several objects with one material each).
The hook is: My exporter only exports static geometry. No skin weights, no animation, no modifiers (modifiers will be temporarily applied before export). Only plain geometry. The project is merely meant as an alternative, not as a replacement of the offical exporter. I would suggest it is best used for background geometry (like f. e. level geometry), as these are usually not animated.
Updated a little bug when exporting a collection of single objects.
Here my test example in 3D Studio Max 2009:
And in the panda3d viewer: