Jump to content

FBX importer change input path from .FBX to .NODE


photo

Recommended Posts

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

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:

Link to comment
×
×
  • Create New...