FBX import from memory

Started by
0 comments, last by Kjell Andersson 8 years, 7 months ago

I'm trying to import an FBX file that is stored in memory with the Autodesk FBX SDK but with no luck.

I have subclassed the FbxStream class to create a memory reader and is passing it into the importer's Initialize method, but I only get a fail result with the error message "Unexpected file type".

It seems to be reading a lot before it fails since I get may calls to my overloaded Read method so that seems to be working.

Anyone here that have successfully loaded FBX files from a memory stream using the SDK?

Advertisement

I finally got this... I forgot to reset the stream pointer in the overloaded Open() call even though it explicitly told me to do so in the doxygen comments for the method...

A good night's sleep was the solution blink.png

This topic is closed to new replies.

Advertisement