Amerio.Stephane Posted September 21, 2022 Share Posted September 21, 2022 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
silent Posted September 22, 2022 Share Posted September 22, 2022 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: https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_cpp_ref_file_stream_2main_8cxx_example_html 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts