honya Posted June 22, 2019 Share Posted June 22, 2019 Hi, I have this code: Unigine::Importer * importer = Unigine::Import::get()->createImporterByFileName("test.fbx"); importer->init("D:/New Endor/ESQgame/data/merge/simplygon/input/SM_well.FBX", Unigine::Importer::IMPORT_MESHES); and get this error: 16:03:32 FbxImporter::init(): can't initialize "D:/New Endor/ESQgame/data/.runtimes/de/defd8e787fcaff778e26566a2b2992c152dd4d2c.node" 16:03:32 Fbx: Unexpected file type 16:03:32 Importer::init: Can't init importer. Why is path changed from fbx file to node file? Thanks Honya Link to comment
silent Posted June 24, 2019 Share Posted June 24, 2019 More likely, you need to init importer differently: importer->init("asset://D:/New Endor/ESQgame/data/merge/simplygon/input/SM_well.FBX", Unigine::Importer::IMPORT_MESHES); By default filesystem resolve paths to runtimes assets. More information you can find here: https://developer.unigine.com/en/docs/2.8/principles/filesystem/#access_path 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