Jump to content
  • Advertisement
Sign in to follow this  
Kjell Andersson

FBX import from memory

This topic is 1187 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!