Jump to content

Importing at runtime an object stored inside a zip


photo

Recommended Posts

Hi, I need to import *at runtime* an object stored inside a zip file.

More specifically, the zip file will contain one or multiple FBX and some custom data. How can I *at runtime* read the FBX from the zip ? Can I do this without first extracting the FBX from the zip and writing it to disk ? (ie can I call the regular FbxImporter for the file stored in memory). How do I call the default importer for the FBX on memory mapped files?

Would you have some sample code maybe?

Thanks!

Link to comment

Hi Stephane,

In theory it can be done, but you would need to modify FBXImporter sources so it would work with stream instead of file directly. So you need to get the content of the FBX file in memory first and then use FBXStream to read it.

Here's an example in FBX SDK:

And FBXImporter you can modify starting with FbxImporter::onInit(const String &filepath) method.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...