Using undocumented sample code classes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The Gamebryo exporter that I’m converting to be used in Max2013 relies heavily on sample code from the 3DS Max SDK. And by that, I mean they had an amalgamated file of sample headers from various sample code files (about 29 of them). For example, wm3.h, StdMtl2.cpp, Parray.cpp, Rgbmult.cpp, and ACubic.cpp. I’ve successfully recreated this dependency from the current 3DS Max SDK, so it no longer crashes when exporting, though I have no way to prove that what I’ve done is correct. This pattern of API usage (using sample code as the API for undocumented internal classes) is very unconventional, but it looks like it’s the way things are done in Max.
I’d like to get more information on how sample code relates to Max internals. For example, when the Gamebryo exporter sees a Texmap with a ClassID() of ACUBIC_CLASS_ID, it casts it to a ACubic from the sample code. From what I can find online, there is absolutely no documentation on this relationship.
Can I assume this to be a correct cast? From inspecting the memory, it doesn’t appear so (lots of garbage looking values). In addition, I have a warning window that comes up from deep inside of BitmapManagerImp::GetImageInfo() which says "no driver to handle given file".
Is there documentation on what ClassIDs correspond to sample code classes and proper practices on using them?
Thanks,
Sean